Package: rpcbind
Version: 0.2.1-6
Severity: important
Tags: jessie

Debian version: 8.1
Kernel version: 3.16.0-4-kirkwood #1 Debian 3.16.7-ckt11-1 (2015-05-24) armv5tel GNU/Linux
Possibly related bugs: #665338 #679716

Hi,
There seems to be a problem with rpcbind dependencies in order to run an NFS server. The server boot went fine up to Debian Wheezy, but not anymore with Debian Jessie. The problem does not seem to be on the NFS/rpcbind software side, because I can make NFS work again by running this command after the server has finished booting:

# systemctl restart nfs-kernel-server.service

Hence my conclusion that this is a dependencies issue.
Here is my init config:

$ find /{etc,lib}/{init.d,systemd} -iname '*rpc*' -o -iname '*nfs*'
/etc/init.d/rpcbind
/etc/init.d/mountkernfs.sh
/etc/init.d/mountnfs-bootclean.sh
/etc/init.d/umountnfs.sh
/etc/init.d/nfs-common
/etc/init.d/mountnfs.sh
/etc/init.d/nfs-kernel-server
/lib/systemd/system/mountkernfs.service
/lib/systemd/system/mountnfs.service
/lib/systemd/system/mountnfs-bootclean.service
/lib/systemd/system/rpcbind.target
/lib/systemd/system/umountnfs.service

So it seems to me that systemd is used instead of sysvinit, which
should ensure better handling of dependencies.
And yet, my logs show this:

# journalctl -b0     #search: rpc|nfs|dhcp|RPC|NFS|DHCP
juin 08 19:38:42 sphinx2 systemd[1]: Found ordering cycle on basic.target/start juin 08 19:38:42 sphinx2 systemd[1]: Found dependency on sysinit.target/start juin 08 19:38:42 sphinx2 systemd[1]: Found dependency on rpcbind.service/start juin 08 19:38:42 sphinx2 systemd[1]: Found dependency on network-online.target/start juin 08 19:38:42 sphinx2 systemd[1]: Found dependency on network.target/start juin 08 19:38:42 sphinx2 systemd[1]: Found dependency on [email protected]/start juin 08 19:38:42 sphinx2 systemd[1]: Found dependency on basic.target/start juin 08 19:38:42 sphinx2 systemd[1]: Breaking ordering cycle by deleting job rpcbind.service/start juin 08 19:38:42 sphinx2 systemd[1]: Job rpcbind.service/start deleted to break ordering cycle starting with basic.target/start juin 08 19:38:42 sphinx2 systemd[1]: Starting LSB: NFS support files common to client and server... juin 08 19:38:42 sphinx2 nfs-common[137]: Starting NFS common utilities: statd juin 08 19:38:42 sphinx2 nfs-common[137]: Not starting: portmapper is not running ... (warning). juin 08 19:38:42 sphinx2 systemd[1]: Started LSB: NFS support files common to client and server. juin 08 19:38:52 sphinx2 systemd[1]: Starting LSB: Kernel NFS server support... juin 08 19:38:52 sphinx2 dhclient[470]: Internet Systems Consortium DHCP Client 4.3.1 juin 08 19:38:52 sphinx2 dhclient[470]: For info, please visit https://www.isc.org/software/dhcp/ juin 08 19:38:52 sphinx2 ifup[462]: Internet Systems Consortium DHCP Client 4.3.1 juin 08 19:38:52 sphinx2 ifup[462]: For info, please visit https://www.isc.org/software/dhcp/ juin 08 19:38:52 sphinx2 dhclient[470]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 juin 08 19:38:53 sphinx2 dhclient[470]: DHCPREQUEST on eth1 to 255.255.255.255 port 67
juin 08 19:38:53 sphinx2 dhclient[470]: DHCPOFFER from 192.168.1.1
juin 08 19:38:53 sphinx2 dhclient[470]: DHCPACK from 192.168.1.1
juin 08 19:38:54 sphinx2 ifup[462]: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 juin 08 19:38:54 sphinx2 ifup[462]: DHCPREQUEST on eth1 to 255.255.255.255 port 67
juin 08 19:38:54 sphinx2 ifup[462]: DHCPOFFER from 192.168.1.1
juin 08 19:38:54 sphinx2 ifup[462]: DHCPACK from 192.168.1.1
juin 08 19:38:54 sphinx2 kernel: RPC: Registered named UNIX socket transport module.
juin 08 19:38:54 sphinx2 kernel: RPC: Registered udp transport module.
juin 08 19:38:54 sphinx2 kernel: RPC: Registered tcp transport module.
juin 08 19:38:54 sphinx2 kernel: RPC: Registered tcp NFSv4.1 backchannel transport module. juin 08 19:38:54 sphinx2 dhclient[470]: bound to 192.168.1.100 -- renewal in 39516 seconds. juin 08 19:38:55 sphinx2 kernel: Installing knfsd (copyright (C) 1996 [email protected]). juin 08 19:38:55 sphinx2 nfs-kernel-server[486]: Exporting directories for NFS kernel daemon... juin 08 19:38:56 sphinx2 nfs-kernel-server[486]: Starting NFS kernel daemon: nfsd juin 08 19:38:56 sphinx2 systemd[1]: Started LSB: Kernel NFS server support. juin 08 19:38:56 sphinx2 nfs-kernel-server[486]: Not starting: portmapper is not running ... (warning). juin 08 21:39:14 sphinx2 systemd[1]: Starting LSB: RPC portmapper replacement... juin 08 21:39:15 sphinx2 systemd[1]: Started LSB: RPC portmapper replacement.
juin 08 21:39:15 sphinx2 rpcbind[1665]: Starting rpcbind daemon....
juin 08 21:39:15 sphinx2 systemd[1]: Starting RPC Port Mapper.
juin 08 21:39:15 sphinx2 systemd[1]: Reached target RPC Port Mapper.

Two possible problems stand out:
- there seems to be a dependencies-loop involving rpcbind,
- rpcbind and nfs-kernel-server seem to be started too soon; they should start After network-online.target.

Yves.


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to