[Bug 1558196] Re: ypbind not able to socket activate rpcbind under systemd, fails at boot unless something else starts rpcbind

Dan Streetman 1558196 at bugs.launchpad.net
Mon Aug 10 15:35:01 UTC 2020


ubuntu at lp1558196-x:~$ dpkg -l|grep rpcbind
ii  rpcbind                          0.2.3-0.2                                  amd64        converts RPC program numbers into universal addresses
ubuntu at lp1558196-x:~$ sudo reboot
...(reboot)...
ubuntu at lp1558196-x:~$ sudo systemctl status rpcbind.service
● rpcbind.service - RPC bind portmap service
   Loaded: loaded (/lib/systemd/system/rpcbind.service; indirect; vendor preset: enabled)
  Drop-In: /run/systemd/generator/rpcbind.service.d
           └─50-rpcbind-$portmap.conf
   Active: inactive (dead)


ii  rpcbind                          0.2.3-0.2ubuntu0.1                         amd64        converts RPC program numbers into universal addresses
ubuntu at lp1558196-x:~$ sudo reboot
...(reboot)...
ubuntu at lp1558196-x:~$ sudo systemctl status rpcbind.service
● rpcbind.service - RPC bind portmap service
   Loaded: loaded (/lib/systemd/system/rpcbind.service; enabled; vendor preset: enabled)
  Drop-In: /run/systemd/generator/rpcbind.service.d
           └─50-rpcbind-$portmap.conf
   Active: active (running) since Mon 2020-08-10 15:19:02 UTC; 32s ago
 Main PID: 431 (rpcbind)
    Tasks: 1
   Memory: 836.0K
      CPU: 7ms
   CGroup: /system.slice/rpcbind.service
           └─431 /sbin/rpcbind -f -w

Aug 10 15:19:02 lp1558196-x systemd[1]: Starting RPC bind portmap service...
Aug 10 15:19:02 lp1558196-x rpcbind[431]: rpcbind: xdr_/run/rpcbind/rpcbind.xdr: failed
Aug 10 15:19:02 lp1558196-x rpcbind[431]: rpcbind: xdr_/run/rpcbind/portmap.xdr: failed
Aug 10 15:19:02 lp1558196-x systemd[1]: Started RPC bind portmap service.


extra verification note:
the 'xdr_/run/rpcbind/*.xdr: failed' messages logged on first start come from the read_warmstart() function, and since the 'warmstart' data is stored under /run it doesn't exist on bootup. The read_warmstart() function logs the 'error' that it can't find the file, but there is no impact to the functionality of rpcbind, since there is no 'warmstart' data to read in, the first rpcbind startup simply acts as a 'coldstart' which is the correct behavior.

** Tags removed: verification-needed verification-needed-xenial
** Tags added: verification-done verification-done-xenial

-- 
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/1558196

Title:
  ypbind not able to socket activate rpcbind under systemd, fails at
  boot unless something else starts rpcbind

Status in nis package in Ubuntu:
  Fix Released
Status in rpcbind package in Ubuntu:
  Fix Released
Status in nis source package in Xenial:
  Invalid
Status in rpcbind source package in Xenial:
  Fix Committed
Status in nis package in Debian:
  Fix Released

Bug description:
  [Impact]

  Due to a missing "WantedBy" directive in the .service file's [Install]
  section, rpcbind does not properly start when the system is booted,
  which can lead to problems if the user needs to mount some NFS
  locations on boot time.

  [Test Case]

  To reproduce the issue, one can do:

  $ lxc launch images:ubuntu/xenial bug1558196-rpcbind --vm
  $ lxc shell bug1558196-rpcbind
  # apt update
  # apt install rpcbind -y
  # systemctl enable rpcbind.service
  # reboot

  After the reboot, you can confirm that the service is not running:

  # systemctl status rpcbind.service
  ● rpcbind.service - RPC bind portmap service
     Loaded: loaded (/lib/systemd/system/rpcbind.service; indirect; vendor preset: enabled)
    Drop-In: /run/systemd/generator/rpcbind.service.d
             └─50-rpcbind-$portmap.conf
     Active: inactive (dead)

  [Regression Potential]

  There is virtually no regression potential with this bug, aside from
  the regular "we will rebuild this package against newer versions of
  dependencies, which can introduce unwanted bugs".  The fix is
  extremely simple and self-contained, and just guarantees that the
  package will start normally during boot time.

  [Original Description]

  did apt-get update/upgrade  March 16, 2016
  Description:    Ubuntu Xenial Xerus (development branch)
  Release:        16.04

  rpcbind does not start on boot, tried various systemd debugging steps
  with no clues. After boot systemctl start rpcbind works. There is  a
  /etc/init.d/rpcbind and a /lib/systemd/system/rpcbind.service config
  files which is confusing.

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



More information about the foundations-bugs mailing list