Network interface not coming up due to missing /etc/rcS.d/*networking
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | ifupdown (Ubuntu) |
High
|
Martin Pitt | ||
Bug Description
This used to work fine; now when I start my container there's no network inside. Manually bringing the interface up (ifup eth0 or systemctl start ifup@eth0) works.
What information would be useful for you?
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: systemd 219-5ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-10-generic x86_64
ApportVersion: 2.17-0ubuntu1
Architecture: amd64
Date: Wed Apr 1 11:35:28 2015
Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize libusb: -99
MachineType: System manufacturer System Product Name
ProcEnviron:
TERM=linux
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_GB.UTF-8
SHELL=/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/17/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1201
dmi.board.
dmi.board.name: P8Z77-V LX
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
| Iain Lane (laney) wrote : | #1 |
| Iain Lane (laney) wrote : | #2 |
| Iain Lane (laney) wrote : | #3 |
Still happening with 6ubuntu1
● ifup-wait-
laney@vivid> systemctl status <email address hidden>
● <email address hidden> - ifup for eth0
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
laney@vivid> cat /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
| Iain Lane (laney) wrote : | #4 |
Also I noticed that in this state there's no /run/network/
| Iain Lane (laney) wrote : | #5 |
I guess that could be fixed with "f /run/network/
| Iain Lane (laney) wrote : | #6 |
laney@vivid> systemctl status -l networking
● networking.service - LSB: Raise network interfaces.
Loaded: loaded (/etc/init.
Drop-In: /run/systemd/
Active: inactive (dead)
Docs: man:systemd-
| Martin Pitt (pitti) wrote : | #7 |
I suppose this is the reason:
Apr 01 11:33:03 hostname systemd[1]: Failed to start LSB: AppArmor initialization.
Apr 01 11:33:03 hostname systemd[1]: apparmor.service failed.
apparmor blocks quite a lot, so we need to fix that in a container.
| Iain Lane (laney) wrote : | #8 |
| Martin Pitt (pitti) wrote : | #9 |
Debugged on IRC. For the record, the link in /etc/rcS.
I just created a fresh vivid container and the link does exist, and network is coming up fine for me. Can you reproduce this somehow?
| Changed in systemd (Ubuntu): | |
| status: | New → Incomplete |
| Iain Lane (laney) wrote : | #10 |
laney@vivid> /usr/lib/
insserv: warning: current start runlevel(s) (empty) of script `networking' overrides LSB defaults (S).
insserv: warning: current start runlevel(s) (empty) of script `networking' overrides LSB defaults (S).
I think it comes down to this
| Martin Pitt (pitti) wrote : | #11 |
Shouldn't this rather be "sudo update-rc.d networking defaults"? That won't actually put back a removed symlink as this counts as user change that needs to be preserved. So the question is still what made this disappear?
| no longer affects: | systemd (Ubuntu) |
| tags: | added: systemd-boot |
| Martin Pitt (pitti) wrote : | #12 |
For the record, this is how to clean up:
sudo update-r.cd networking remove
sudo update-r.cd networking defaults
Vincent has the same problem, and he mentioned that he has an /etc/init.
| summary: |
- Network interface not coming up automatically inside lxc container + Network interface not coming up due to missing /etc/rcS.d/*networking |
| affects: | insserv (Ubuntu) → ifupdown (Ubuntu) |
| Iain Lane (laney) wrote : | #13 |
I don't have a dpkg-old there, looking at dpkg.log* doesn't show any failed configures.
Indeed I already did restore it using this trick.
Isn't insserv responsible for creating the symlinks? Although maybe it considers the removed symlink to be a preservable change too.
| Changed in ifupdown (Ubuntu): | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| Changed in ifupdown (Ubuntu): | |
| status: | Confirmed → In Progress |
| assignee: | nobody → Martin Pitt (pitti) |
| Martin Pitt (pitti) wrote : | #14 |
I uploaded a new ifupdown which cleans this up on upgrades, needs release team review.
| Changed in ifupdown (Ubuntu): | |
| status: | In Progress → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package ifupdown - 0.7.48.1ubuntu8
---------------
ifupdown (0.7.48.1ubuntu8) vivid; urgency=medium
* debian/postinst: Bring back missing /etc/rcS.
clean up after old broken upgrades. (LP: #1439109)
-- Martin Pitt <email address hidden> Wed, 08 Apr 2015 12:02:39 +0200
| Changed in ifupdown (Ubuntu): | |
| status: | Fix Committed → Fix Released |
| Timo Aaltonen (tjaalton) wrote : | #16 |
fixed it for me, thanks!
| Rustom (rustompmody) wrote : | #17 |
Firstly note that this is more like bug #1432173.
Adding this comment here since that is a duplicate of this one
I get :
$ systemctl status -l ifup-wait-
● ifup-wait-
Loaded: loaded (/lib/systemd/
Active: active (exited) since Mon 2015-11-16 07:33:22 IST; 27s ago
Docs: man:interfaces(5)
Process: 514 ExecStart=/bin/sh -ec for i in $(ifquery --list --exclude lo --allow auto); do INTERFACES=
Main PID: 514 (code=exited, status=0/SUCCESS)
CGroup: /system.
Nov 16 07:32:53 xxx systemd[1]: Starting Wait for all "auto" /etc/network/
Nov 16 07:32:54 xxx sh[514]: Segmentation fault
Nov 16 07:33:22 xxx systemd[1]: Started Wait for all "auto" /etc/network/
$ sudo vi /etc/resolv.conf
I tried what looked like solutions offered here:
1.
$ sudo update-rc.d networking remove
$ sudo update-rc.d networking defaults
[I am assuming that r.cd is a misspelling of rc.d]
No change
2. Reinstalled ifupdown
I believe I used to see two segfaults. Now I see one
Ubuntu wily
ifupdown 0.7.54ubuntu1
systemd 225-1ubuntu9
$ cat /etc/network/
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto enp7s0
iface enp7s0 inet dhcp


I tried downgrading to -4ubuntu7 inside the container - no change.