[Bug 924593] Re: rpcbind silently breaks when restarted

Launchpad Bug Tracker 924593 at bugs.launchpad.net
Mon Aug 1 04:17:28 UTC 2016


[Expired for rpcbind (Ubuntu) because there has been no activity for 60
days.]

** Changed in: rpcbind (Ubuntu)
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rpcbind in Ubuntu.
https://bugs.launchpad.net/bugs/924593

Title:
  rpcbind silently breaks when restarted

Status in rpcbind package in Ubuntu:
  Expired

Bug description:
  Under certain conditions, a restart of rpcbind can prevent it from
  listening on the ports it's supposed to listen on.

  If there are open connections to rpcbind when it shuts down, those
  connections will end up in TIME_WAIT.  Because rpcbind doesn't use the
  SO_REUSEADDR socket option, those TIME_WAIT connections prevent it
  from binding to the same port before those connections have timed out.

  To reproduce:

  root at satwelltest1:~# nc localhost sunrpc &
  [1] 12244
  root at satwelltest1:~# stop portmap
  portmap stop/waiting
  [1]+  Done                    nc localhost sunrpc
  root at satwelltest1:~# start portmap
  portmap start/running, process 12252
  root at satwelltest1:~# rpcinfo -p localhost
  rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused

  /var/log/daemon.log contains:

  Jan 31 16:03:53 satwelltest1 rpcbind: cannot bind tcp: Address already
  in use

  And notice that rpcbind is actually running, but is only bound to the
  TCP sunrpc port on IPv6, not IPv4:

  root at satwelltest1:~# lsof -p 12252 | grep :sunrpc
  rpcbind 12252 root    6u  IPv4              32182      0t0     UDP *:sunrpc 
  rpcbind 12252 root   10u  IPv6              32190      0t0     UDP *:sunrpc 
  rpcbind 12252 root   12u  IPv6              32194      0t0     TCP *:sunrpc (LISTEN)

  This is on Precise with rpcbind 0.2.0-7ubuntu1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rpcbind/+bug/924593/+subscriptions



More information about the foundations-bugs mailing list