Boot process hangs in Ubuntu 11.10 server after upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Boot process is delayed with the message on screen "ubuntu 11.10 booting system without full network configuration".
Some processes did not start (eg nmbd, mediatomb). They appear to be waiting for an event, in nmbd's case: start on (local-filesystems and net-device-up IFACE!=lo) .
Some status checks:
root@u01:~# status network-interface INTERFACE=lo
network-interface (lo) start/running
root@u01:~# status network-interface INTERFACE=eth0
network-interface (eth0) start/running
root@u01:~# status nmbd
nmbd stop/waiting
So, it seems that the prerequisites for nmbd are running, but nmbd seems to be waiting to start.
Looking at the code in network-
pre-start script
if [ "$INTERFACE" = lo ]; then
# bring this up even if /etc/network/
ifconfig lo 127.0.0.1 up || true
initctl emit -n net-device-up \
fi
mkdir -p /var/run/network
exec ifup --allow auto $INTERFACE
end script
It emits an event when lo starts, what emits an event to notify that eth0 started?
Owen
affects: | ubuntu → ifupdown (Ubuntu) |
In searching the net, it has become obvious that Ubuntu 11.10 is severely bug ridden, that the status of bugs that prevent the system fully starting is trivialised, and there doesn't look to be a fix anytime soon.
My system is 11.10 server, it has one external network interface, eth0 using on board hardware. There has never been any doubt that the network interface is actually starting and working fine. This cannot be an unusual configuration.
That said, I have looked at why failsafe.conf is delaying things. It looks like it provides a safety net for other failures:
rc-sysinit.conf contains start on (filesystem and static-network-up) or failsafe-boot
So, perhaps it is filesystem or static-network-up that are the problem?
network- interface. conf is the only job that contains emits static-network-up, but it doesn't seem to actually emit it.
Two things I discover, it appears that the pre start script exits ungracefully, and it doesn't seem to emit net-device-up (needed by nmbd for instance) or static-network-up (seemingly needed to allow the boot to complete).
If some of this seems uncertain, it is because upstart is totally new to me, and the system is short on documentation, and it is not my objective to be a Ubuntu sysprog.
But, this might help others to develop a fix to allow their system to boot fully.
Owen