Jaunty server 9.04 hangs on Configuring interfaces

Asked by Torsson

Hi i have 2 servers with the exacly same problem.. when my interfaces file looks like this it hangs at "Configuring interfaces" and does not continue ( i need to boot in falesafe). seems like there is no timeout time either

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 91.142.***.**
        network 91.142.***.**
        gateway 91.142.***.**
        netmask 255.255.255.248

auto eth1
iface eth1 inet static
        address 192.168.13.11
        netmask 255.255.255.0
        network 192.168.13.0

if i remove the eth1 part in interfaces it workes again (eth1 is a crossed-cable between my two servers).

System info: lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

Kernel & version: 2.6.24-16-xen

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Torsson
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

try adding:

broadcast 192.168.13.255
gateway 192.168.13.1

to eth1, just humour it, the config will change nothing logically but may make the boot continue.

btw, nice trial and error to diagnose what part of the config is causing the issue :D

Revision history for this message
Simon Bazley (sibaz) said :
#2

I've had similar problems. There is definitely a bug somewhere in the code which handles /etc/network/interfaces at boot up.

I've got the following setup:-

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.254

auto eth0:1
iface eth0:1 inet static
address 192.168.1.11
netmask 255.255.255.0

It get to 'Congifureing Interfaces' and just stays there for ever. If I comment out the eth0:1 alias, it boots up fine. I've tried adding network, broadcast and gateway parameters to the alias, but it just won't have it.

That said, I've found something which may be helpful. If I use /etc/init.d/networking stop to stop all my devices, it works fine, but ifconfig reports that lo is still present. With lo present I can type /etc/init.d/networking start and it works fine.
However if I use 'ifconfig lo down' to shut down all my loopback devices, then I call /etc/init.d/networking start, it hangs just like on boot up.
If I do the same, but instead type ifup -a (which is essentially what networking does), it hangs also.

Revision history for this message
Simon Bazley (sibaz) said :
#3

I've tracked my problem down to /etc/network/if-pre-up.d/dhclient3-apparmor. If I remove it, everything boots just fine.

Revision history for this message
Simon Bazley (sibaz) said :
#4

It looks like there is a line in dhclient3-apparmor which tests to see if apparmor is loaded and if not, it checks the runlevel. If that runlevel is either the first runlevel (ie booting up) or its in runlevel S, then it exits. If not, it sleeps for a second and tries again.

Problem is, in Ubuntu, the runlevel is 'unknown' so dhclient3-apparmor never gets out of that loop.

Changing the line in dhclient3-apparmor from:-

runlevel | grep -E -q '( [0-9]|[0-9] S)' && exit 0

to:-

runlevel | grep -E -q '( [0-9]|[0-9] S|unknown)' && exit 0

seems to fix it.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

If you suspect this is a bug then I'd report it. If it is unique to your setup then leave it

Glad you got the gold :D

Revision history for this message
Torsson (alexander-gaslampa) said :
#6

Simon Bazley: Your solutions solved my problem to.. after changing what you suggested it worked.. Im very happy, not funny to call the hosting operator to often and tell him to go and fix the problem :).

Thanks alot!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Thats why forums are great :D