Discussion:
Bug#922550: ifupdown: network hangs for 5 minutes at startup / Failed to start Wait for network to be configured by ifupdown
(too old to reply)
Vincent Lefevre
2019-02-17 23:00:01 UTC
Permalink
Package: ifupdown
Version: 0.8.35
Severity: important

After the ifupdown upgrade from 0.8.33 to 0.8.35, I now need to wait
for 5 minutes before eth0 is up.

I've attached the beginning of "journalctl -b -1" output. At the end
of these 5 minutes, one can see:

Feb 17 23:15:24 zira systemd[1]: ifupdown-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Feb 17 23:15:24 zira systemd[1]: ifupdown-wait-online.service: Failed with result 'exit-code'.
Feb 17 23:15:24 zira systemd[1]: Failed to start Wait for network to be configured by ifupdown.

Then everything can resume, and it is netplug that puts eth0 up.

With ifupdown 0.8.33, it was also netplug that put eth0 up, but it
did that 2 seconds after the start of the boot. Now, ifupdown 0.8.35
seems to block some units (including netplug).

-- Package-specific info:
--- /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# [VL] No longer use "allow-hotplug eth0" as it makes the boot hang for
# several dozens of seconds when no Ethernet cable is plugged in:
# a DHCP client is started and is waiting for a response. The eth0
# interface will automatically be brought up by netplugd (from the
# netplug package) when an Ethernet connection is detected.
#allow-hotplug eth0
iface eth0 inet dhcp

# USB tethering with my Samsung Galaxy Note 3.
# Configuration on 2015-12-22:
allow-hotplug enx02060b0e3333
iface enx02060b0e3333 inet dhcp
# Configuration on 2016-05-01:
allow-hotplug enp0s20u2
iface enp0s20u2 inet dhcp
# Configuration on 2016-12-23:
allow-hotplug enp0s20u9
iface enp0s20u9 inet dhcp
# Configuration on 2018-08-08:
allow-hotplug enp0s20u10
iface enp0s20u10 inet dhcp

# $Id: interfaces 110698 2018-08-08 12:36:44Z vinc17/zira $

--- /etc/network/interfaces.d/*:
cat: '/etc/network/interfaces.d/*': No such file or directory

--- up and down scripts installed:
/etc/network/if-down.d:
total 8
lrwxrwxrwx 1 vinc17 vinc17 12 2016-06-02 03:12:12 0ifupdown -> ../0ifupdown
-rwxr-xr-x 1 root root 1015 2015-04-13 22:26:48 avahi-autoipd
-rwxr-xr-x 1 root root 800 2017-01-09 15:25:22 postfix
lrwxrwxrwx 1 root root 32 2019-01-29 18:11:01 wpasupplicant -> ../../wpa_supplicant/ifupdown.sh

/etc/network/if-post-down.d:
total 4
lrwxrwxrwx 1 vinc17 vinc17 12 2016-06-02 03:12:12 0ifupdown -> ../0ifupdown
lrwxrwxrwx 1 root root 23 2018-10-10 10:17:36 avahi-daemon -> ../if-up.d/avahi-daemon
-rwxr-xr-x 1 root root 1409 2016-03-24 18:38:26 wireless-tools
lrwxrwxrwx 1 root root 32 2019-01-29 18:11:01 wpasupplicant -> ../../wpa_supplicant/ifupdown.sh

/etc/network/if-pre-up.d:
total 12
lrwxrwxrwx 1 vinc17 vinc17 12 2016-06-02 03:12:12 0ifupdown -> ../0ifupdown
-rwxr-xr-x 1 root root 344 2014-09-22 01:13:29 ethtool
-rwxr-xr-x 1 root root 4191 2018-09-15 16:13:34 wireless-tools
lrwxrwxrwx 1 root root 32 2019-01-29 18:11:01 wpasupplicant -> ../../wpa_supplicant/ifupdown.sh

/etc/network/if-up.d:
total 32
lrwxrwxrwx 1 vinc17 vinc17 12 2016-06-02 03:12:12 0ifupdown -> ../0ifupdown
-rwxr-xr-x 1 root root 923 2015-04-13 22:26:48 avahi-autoipd
-rwxr-xr-x 1 root root 484 2015-04-13 22:26:48 avahi-daemon
-rwxr-xr-x 1 root root 1685 2014-09-22 01:22:24 ethtool
-rwxr-xr-x 1 root root 4948 2019-01-05 12:21:53 mountnfs
-rwxr-xr-x 1 root root 278 2015-03-02 21:32:26 openntpd
-rwxr-xr-x 1 root root 1117 2017-01-09 15:25:22 postfix
lrwxrwxrwx 1 root root 32 2019-01-29 18:11:01 wpasupplicant -> ../../wpa_supplicant/ifupdown.sh
-rwxr-xr-x 1 root root 370 2016-06-02 03:25:26 z_home_net


-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-3-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ifupdown depends on:
ii adduser 3.118
ii iproute2 4.20.0-2
ii libc6 2.28-7
ii lsb-base 10.2018112800

Versions of packages ifupdown recommends:
ii isc-dhcp-client [dhcp-client] 4.4.1-2

Versions of packages ifupdown suggests:
pn ppp <none>
pn rdnssd <none>

-- Configuration Files:
/etc/default/networking changed:
VERBOSE=yes


-- no debconf information
Vincent Lefevre
2019-02-17 23:40:01 UTC
Permalink
Post by Vincent Lefevre
After the ifupdown upgrade from 0.8.33 to 0.8.35, I now need to wait
for 5 minutes before eth0 is up.
This problem occurs only when an Ethernet cable is already plugged in
before the boot.

Downgrading to 0.8.33 made the problem disappear.
--
Vincent Lefèvre <***@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Vincent Lefevre
2019-08-12 11:00:01 UTC
Permalink
Post by Vincent Lefevre
Post by Vincent Lefevre
After the ifupdown upgrade from 0.8.33 to 0.8.35, I now need to wait
for 5 minutes before eth0 is up.
This problem occurs only when an Ethernet cable is already plugged in
before the boot.
Downgrading to 0.8.33 made the problem disappear.
This problem still occurs with ifupdown 0.8.35+b1.
--
Vincent Lefèvre <***@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Quentin Caillard
2019-04-26 18:10:01 UTC
Permalink
***@debian:~$ sudo systemd-analyze blame
5min 804ms ifupdown-wait-online.service
5.515s sickrage.service
3.448s NetworkManager-wait-online.service
1.128s systemd-udev-settle.service
1.005s alsa-restore.service
Loading...