Categories
Linux Troubleshootings

pmap_getmaps rpc problem: RPC: Unable to receive; errno = Connection reset by peer

If you are setting up NFS and stuck with this error, portmap is conflicting with other service.

If you run this
/etc/init.d/portmap restart

It will throw this error,
pmap_getmaps rpc problem: RPC: Unable to receive; errno = Connection reset by peer
Stopping portmap: [FAILED]
Starting portmap: [ OK ]

If you do tail -f /var/log/message

Output

Oct 13 12:24:52 xx.abc.com portmap[31808]: cannot bind udp: Address already in use
Oct 13 12:24:54 xx.abc.com portmap[31838]: cannot bind udp: Address already in use
Oct 13 12:26:11 xx.abc.com portmap[1729]: cannot bind udp: Address already in use
Oct 13 12:26:12 xx.abc.com portmap[1752]: cannot bind udp: Address already in use

Quick solution below, run these commands in sequence;

/etc/init.d/portsentry stop
/etc/init.d/portmap restart
/etc/init.d/portsentry start

I will post the detail troubleshooting some other time. If you have any question, feel free to ask in comments.