I'm trying to figure out why on an older debian LXC (now version 12, but it has had atleast 2 major updates) the network.service comes back failed after bootup
It's configured to use dhcp for ipv4 and dhcp for ipv6 (both of which are available on my network)
Restarting networking.service fixes this issue, but a reboot later it's back.
A newly installed Debian 12 LXC does not face this issue. Once upgraded to 13 it shows up.
I'm really curious what exactly is causing this issue.
Code:
ug 08 10:34:24 metricsbox systemd[1]: Starting networking.service - Raise network interfaces...
Aug 08 10:34:24 metricsbox dhclient[106]: Internet Systems Consortium DHCP Client 4.4.3-P1
Aug 08 10:34:24 metricsbox ifup[106]: Internet Systems Consortium DHCP Client 4.4.3-P1
Aug 08 10:34:24 metricsbox dhclient[106]: Copyright 2004-2022 Internet Systems Consortium.
Aug 08 10:34:24 metricsbox ifup[106]: Copyright 2004-2022 Internet Systems Consortium.
Aug 08 10:34:24 metricsbox dhclient[106]: All rights reserved.
Aug 08 10:34:24 metricsbox ifup[106]: All rights reserved.
Aug 08 10:34:24 metricsbox dhclient[106]: For info, please visit https://www.isc.org/software/dhcp/
Aug 08 10:34:24 metricsbox ifup[106]: For info, please visit https://www.isc.org/software/dhcp/
Aug 08 10:34:24 metricsbox dhclient[106]:
Aug 08 10:34:24 metricsbox dhclient[106]: Listening on LPF/eth0/12:44:5b:cc:ac:12
Aug 08 10:34:24 metricsbox ifup[106]: Listening on LPF/eth0/12:44:5b:cc:ac:12
Aug 08 10:34:24 metricsbox ifup[106]: Sending on LPF/eth0/12:44:5b:cc:ac:12
Aug 08 10:34:24 metricsbox ifup[106]: Sending on Socket/fallback
Aug 08 10:34:24 metricsbox ifup[106]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Aug 08 10:34:24 metricsbox dhclient[106]: Sending on LPF/eth0/12:44:5b:cc:ac:12
Aug 08 10:34:24 metricsbox dhclient[106]: Sending on Socket/fallback
Aug 08 10:34:24 metricsbox dhclient[106]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Aug 08 10:34:24 metricsbox dhclient[106]: DHCPOFFER of 192.168.34.47 from 192.168.34.1
Aug 08 10:34:24 metricsbox ifup[106]: DHCPOFFER of 192.168.34.47 from 192.168.34.1
Aug 08 10:34:24 metricsbox ifup[106]: DHCPREQUEST for 192.168.34.47 on eth0 to 255.255.255.255 port 67
Aug 08 10:34:24 metricsbox dhclient[106]: DHCPREQUEST for 192.168.34.47 on eth0 to 255.255.255.255 port 67
Aug 08 10:34:24 metricsbox dhclient[106]: DHCPACK of 192.168.34.47 from 192.168.34.1
Aug 08 10:34:24 metricsbox ifup[106]: DHCPACK of 192.168.34.47 from 192.168.34.1
Aug 08 10:34:24 metricsbox dhclient[106]: bound to 192.168.34.47 -- renewal in 2947 seconds.
Aug 08 10:34:24 metricsbox ifup[106]: bound to 192.168.34.47 -- renewal in 2947 seconds.
Aug 08 10:34:25 metricsbox dhclient[156]: Internet Systems Consortium DHCP Client 4.4.3-P1
Aug 08 10:34:25 metricsbox ifup[156]: Internet Systems Consortium DHCP Client 4.4.3-P1
Aug 08 10:34:25 metricsbox ifup[156]: Copyright 2004-2022 Internet Systems Consortium.
Aug 08 10:34:25 metricsbox ifup[156]: All rights reserved.
Aug 08 10:34:25 metricsbox ifup[156]: For info, please visit https://www.isc.org/software/dhcp/
Aug 08 10:34:25 metricsbox dhclient[156]: Copyright 2004-2022 Internet Systems Consortium.
Aug 08 10:34:25 metricsbox dhclient[156]: All rights reserved.
Aug 08 10:34:25 metricsbox dhclient[156]: For info, please visit https://www.isc.org/software/dhcp/
Aug 08 10:34:25 metricsbox dhclient[156]:
Aug 08 10:34:25 metricsbox dhclient[156]: Can't bind to dhcp address: Cannot assign requested address
Aug 08 10:34:25 metricsbox ifup[156]: Can't bind to dhcp address: Cannot assign requested address
Aug 08 10:34:25 metricsbox ifup[156]: Please make sure there is no other dhcp server
Aug 08 10:34:25 metricsbox ifup[156]: running and that there's no entry for dhcp or
Aug 08 10:34:25 metricsbox ifup[156]: bootp in /etc/inetd.conf. Also make sure you
Aug 08 10:34:25 metricsbox ifup[156]: are not running HP JetAdmin software, which
Aug 08 10:34:25 metricsbox ifup[156]: includes a bootp server.
Aug 08 10:34:25 metricsbox ifup[156]: If you think you have received this message due to a bug rather
Aug 08 10:34:25 metricsbox ifup[156]: than a configuration issue please read the section on submitting
Aug 08 10:34:25 metricsbox ifup[156]: bugs on either our web page at www.isc.org or in the README file
Aug 08 10:34:25 metricsbox ifup[156]: before submitting a bug. These pages explain the proper
Aug 08 10:34:25 metricsbox ifup[156]: process and the information we find helpful for debugging.
Aug 08 10:34:25 metricsbox ifup[156]: exiting.
Aug 08 10:34:25 metricsbox dhclient[156]: Please make sure there is no other dhcp server
Aug 08 10:34:25 metricsbox dhclient[156]: running and that there's no entry for dhcp or
Aug 08 10:34:25 metricsbox dhclient[156]: bootp in /etc/inetd.conf. Also make sure you
Aug 08 10:34:25 metricsbox dhclient[156]: are not running HP JetAdmin software, which
Aug 08 10:34:25 metricsbox dhclient[156]: includes a bootp server.
Aug 08 10:34:25 metricsbox dhclient[156]:
Aug 08 10:34:25 metricsbox dhclient[156]: If you think you have received this message due to a bug rather
Aug 08 10:34:25 metricsbox dhclient[156]: than a configuration issue please read the section on submitting
Aug 08 10:34:25 metricsbox dhclient[156]: bugs on either our web page at www.isc.org or in the README file
Aug 08 10:34:25 metricsbox dhclient[156]: before submitting a bug. These pages explain the proper
Aug 08 10:34:25 metricsbox dhclient[156]: process and the information we find helpful for debugging.
Aug 08 10:34:25 metricsbox dhclient[156]:
Aug 08 10:34:25 metricsbox dhclient[156]: exiting.
Aug 08 10:34:25 metricsbox ifup[83]: ifup: failed to bring up eth0
Aug 08 10:34:25 metricsbox systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Aug 08 10:34:25 metricsbox systemd[1]: networking.service: Failed with result 'exit-code'.
Aug 08 10:34:25 metricsbox systemd[1]: Failed to start networking.service - Raise network interfaces.
It's configured to use dhcp for ipv4 and dhcp for ipv6 (both of which are available on my network)
Restarting networking.service fixes this issue, but a reboot later it's back.
A newly installed Debian 12 LXC does not face this issue. Once upgraded to 13 it shows up.
I'm really curious what exactly is causing this issue.
Last edited: