can't restart or reload networking.service (error: cannot add dependency job)

scyto

Active Member
Aug 8, 2023
476
86
28
As some are aware my networking was messy the last cfew days (through entirely my own contributions).

  • I moved back to the proxmox current repo version of ifupown2
  • I removed all SDN configuration and hit apply, all my VMs continue to work
  • the network seems stable
I have this error below on all nodes and it blocks systemctl restart and reload commands on networking.service, it doesn't seem to cause any issue and a reboot fixes. I was wondering if there was a way to fix without rebooting?

Code:
Apr 24 10:41:16 pve1 systemd[1]: networking.service: Cannot add dependency job, ignoring: Unit networking.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy
Apr 24 10:41:22 pve1 systemd[1]: networking.service: Cannot add dependency job, ignoring: Unit networking.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy
Apr 24 11:11:38 pve1 systemd[1]: networking.service: Cannot add dependency job, ignoring: Unit networking.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy
[root@pve1 11:12:30]$ systemctl reload networking.service
Failed to reload networking.service: Unit networking.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy
See system logs and 'systemctl status networking.service' for details.
[root@pve1 11:12:38]$ systemctl restart networking.service
Failed to restart networking.service: Unit networking.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy
See system logs and 'systemctl status networking.service' for details.

if the answer is 'shrug' i can just reboot al 3 nodes, but if anyones more analysis let me know (it would seem essential the service is never left in this state)
 
Last edited:
Oftentimes caused by issues with ifupdown2 reloading the network configuration. You can check the debug output of reloading via:

Code:
ifreload -avd

Also, as the error message says you might already find the issue in the systemlogs via journalctl.
 
Oftentimes caused by issues with ifupdown2 reloading the network configuration. You can check the debug output of reloading via:

Code:
ifreload -avd

Also, as the error message says you might already find the issue in the systemlogs via journalctl.
thanks output attached, notes:
  • pve1 is the node where networking.service won't reload
  • pve3 is the node i rebooted and networking service does reload
  • i note both nodes are still tying to do bgp things, i checked frr.conf and despite my SDN config being empty in the ui it seem it never cleanedup the bgp settings from within frr.conf... i can remove by hand so no biggie i suspect based on this i may have copied frr.conf > frr.conf.local and caused this, so likely unrelated note
this is the point in the joural on pve1 where the error was encountered

Code:
Apr 25 08:56:17 pve1 root[3584322]: Attempting to restart frr.service for lo
Apr 25 08:56:17 pve1 systemd[1]: networking.service: Cannot add dependency job, ignoring: Unit networking.service failed to load properly, please adjust/correct and reload service manager: Device or resource busy

there is no corresponding error after the lo restart (which is a script i wrote that calls frr restart when if-up is processed because lo was changed). The script is the same on both nodes.

I am ok to just reboot the two remaining nodes with the restart issue if thats easier, I will lave the repro up until you tell me to reboot :-)
 

Attachments

Last edited: