Portmap Error: Unable to receive; errno = Connection reset by peer

By: Published: Jan 9th, 2013 Category: Linux Tips

_

While setting and configuring NFS share on a server when you try to restart portmap service you get following error

[root@server mounted]# service portmap restart
pmap_getmaps rpc problem: RPC: Unable to receive; errno = Connection reset by peer
Stopping portmap:                                          [FAILED]
Starting portmap:                                          [  OK  ]
[root@server mounted]#

Logs (tail -f /var/log/message) shows that portmap port is conflicting with some other service.

Dec 29 06:39:46 server portmap[32452]: cannot bind udp: Address already in use
Dec 29 06:39:46 server portmap[32452]: cannot bind udp: Address already in use
Dec 29 06:39:46 server portmap[32452]: cannot bind udp: Address already in use
Dec 29 06:39:46 server portmap[32452]: cannot bind udp: Address already in use

 

I have searched on internet and found following commands which fixed the issue.

1) Stop portsentry service

[root@server mounted]# /etc/init.d/portsentry stop

2) Restart portmap service

[root@server mounted]# /etc/init.d/portmap restart

3) Start portsentry service

[root@server mounted]# /etc/init.d/portsentry start

Try to configure NFS now :)

_

 Portmap Error: Unable to receive; errno = Connection reset by peer

About 

Milind Koyande is a Project Manager and his job is to work with new technologies, specially Cloud Computing / Virtualization Technology. His past projects include Government Sector initiatives, Backup and Disaster Recovery Solutions.

Tags: , , , ,

Leave a Reply

Subscribe to eITWebguru

© 2012 eITWebguru. All Rights Reserved.