ypbind not able to socket activate rpcbind under systemd, fails at boot unless something else starts rpcbind
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nis (Debian) |
Fix Released
|
Unknown
|
|||
nis (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
rpcbind (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Sergio Durigan Junior |
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:
$ 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/
Drop-In: /run/systemd/
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/
Related branches
- Bryce Harrington (community): Approve
- Canonical Server: Pending requested
-
Diff: 39 lines (+11/-1)3 files modifieddebian/changelog (+8/-0)
debian/control (+2/-1)
debian/rpcbind.service (+1/-0)
summary: |
- rpcbind does not start on boot under systemd + ypbind not able to socket activate rpcbind under systemd, fails at boot + unless something else starts rpcbind |
Changed in nis (Ubuntu): | |
status: | New → Triaged |
Changed in rpcbind (Ubuntu): | |
status: | New → Triaged |
Changed in nis (Debian): | |
status: | Unknown → Fix Released |
Changed in rpcbind (Ubuntu Xenial): | |
status: | Triaged → Incomplete |
Changed in rpcbind (Ubuntu Xenial): | |
assignee: | nobody → Sergio Durigan Junior (sergiodj) |
description: | updated |
Changed in rpcbind (Ubuntu Xenial): | |
status: | Triaged → Fix Committed |
Do you have anything on your system that depends on rpcbind running? The current version of the rpcbind package is socket-activated; perhaps the service isn't started because you have nothing installed that actually uses it?