I am having similar issues concerning nis after upgrading to ubuntu 12.04
ypbind does not start on boot.
The status command does not show a running process
service ypbind status
ypbind start/running
nor
ps -A | grep ypbind
I inserted
exec > /var/log/nis-debug.log 2>&1
in /etc/init/ypbind.conf after script line
and the output in nis-debug.log was
No NIS server and no -broadcast option specified.
Add a NIS server to the /etc/yp.conf configuration file,
or start ypbind with the -broadcast option.
my /etc/yp.conf is
ypserver nisserver
(nisserver is resolved by dns ok, tried to use the ip but the problems seems elsewhere)
I dont use network-manager (purged) and my /etc/network/interfaces file is the following
allow-hotplug lo eth0
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
The problem seems to be that when ypbind is initially started networking is not up yet
For now I execute manually after each boot the following command (I will probably add it at /etc/rc.local although this is ugly)
service ypbind restart
Some lines from /var/log/syslog showing that ypbind is started before networking and although it is respawning it does not succeed
Jun 4 16:47:48 ubuntutestclient ypbind: Host name lookup failure
..
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPREQUEST of 192.168.10.53 on eth0 to 255.255.255.255 port 67
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPOFFER of 192.168.10.53 from 192.168.10.165
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPACK of 192.168.10.53 from 192.168.10.165
Jun 4 16:47:48 ubuntutestclient rpcbind: Cannot open '/run/rpcbind/rpcbind.xdr' file for reading, errno 2 (No such file or directory)
Jun 4 16:47:48 ubuntutestclient rpcbind: Cannot open '/run/rpcbind/portmap.xdr' file for reading, errno 2 (No such file or directory)
Jun 4 16:47:48 ubuntutestclient kernel: [ 8.984711] init: portmap-wait (statd) main process (531) killed by TERM signal
..
Jun 4 16:47:48 ubuntutestclient kernel: [ 9.448250] init: ypbind main process (583) terminated with status 1
Jun 4 16:47:48 ubuntutestclient kernel: [ 9.448372] init: ypbind main process ended, respawning
..
Jun 4 16:47:54 ubuntutestclient kernel: [ 15.403354] init: wait-for-state (atdypbind) main process (1071) killed by TERM signal
Jun 4 16:47:54 ubuntutestclient kernel: [ 15.423670] init: wait-for-state (gdmypbind) main process (1076) killed by TERM signal
Jun 4 16:47:54 ubuntutestclient kernel: [ 15.429334] init: wait-for-state (lightdmypbind) main process (1084) killed by TERM signal
I have 30 client machines with about 300 users in a school and this is a serious issue that prevents me from upgrading yet.
Please look into it and I will try to help as much as I can
I am having similar issues concerning nis after upgrading to ubuntu 12.04
ypbind does not start on boot.
The status command does not show a running process
service ypbind status
ypbind start/running
nor
ps -A | grep ypbind
I inserted nis-debug. log 2>&1 ypbind. conf after script line
exec > /var/log/
in /etc/init/
and the output in nis-debug.log was
No NIS server and no -broadcast option specified.
Add a NIS server to the /etc/yp.conf configuration file,
or start ypbind with the -broadcast option.
my /etc/yp.conf is
ypserver nisserver
(nisserver is resolved by dns ok, tried to use the ip but the problems seems elsewhere)
I dont use network-manager (purged) and my /etc/network/ interfaces file is the following
allow-hotplug lo eth0
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
The problem seems to be that when ypbind is initially started networking is not up yet
For now I execute manually after each boot the following command (I will probably add it at /etc/rc.local although this is ugly)
service ypbind restart
Some lines from /var/log/syslog showing that ypbind is started before networking and although it is respawning it does not succeed
Jun 4 16:47:48 ubuntutestclient ypbind: Host name lookup failure rpcbind. xdr' file for reading, errno 2 (No such file or directory) portmap. xdr' file for reading, errno 2 (No such file or directory)
..
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPREQUEST of 192.168.10.53 on eth0 to 255.255.255.255 port 67
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPOFFER of 192.168.10.53 from 192.168.10.165
Jun 4 16:47:48 ubuntutestclient dhclient: DHCPACK of 192.168.10.53 from 192.168.10.165
Jun 4 16:47:48 ubuntutestclient rpcbind: Cannot open '/run/rpcbind/
Jun 4 16:47:48 ubuntutestclient rpcbind: Cannot open '/run/rpcbind/
Jun 4 16:47:48 ubuntutestclient kernel: [ 8.984711] init: portmap-wait (statd) main process (531) killed by TERM signal
..
Jun 4 16:47:48 ubuntutestclient kernel: [ 9.448250] init: ypbind main process (583) terminated with status 1
Jun 4 16:47:48 ubuntutestclient kernel: [ 9.448372] init: ypbind main process ended, respawning
..
Jun 4 16:47:54 ubuntutestclient kernel: [ 15.403354] init: wait-for-state (atdypbind) main process (1071) killed by TERM signal
Jun 4 16:47:54 ubuntutestclient kernel: [ 15.423670] init: wait-for-state (gdmypbind) main process (1076) killed by TERM signal
Jun 4 16:47:54 ubuntutestclient kernel: [ 15.429334] init: wait-for-state (lightdmypbind) main process (1084) killed by TERM signal
I have 30 client machines with about 300 users in a school and this is a serious issue that prevents me from upgrading yet.
Please look into it and I will try to help as much as I can