You are not logged in.

#1 2023-10-20 22:01:08

ajpikul
Member
Registered: 2023-10-20
Posts: 3

Which .network files are holding up systemd-networkd-wait-online

So `systemd-networkd-wait-online.service` says in `man`... after going through several pages... that basically it tries to load "known links" and will wait until all known links come up (I'm assuming meaning until interfaces are "online" whatever that means).

That service is holding up my boot indefinitely, I had to add a timeout to the service file in a recovery mode, thinking of adding the `--any` flag to get it finish.

Also don't know why this problems started.

Logs give me absolutely no information. Maybe I should check logs for different service file. Any thoughts?

Offline

#2 2023-10-20 22:56:20

jonno2002
Member
Registered: 2016-11-21
Posts: 688

Re: Which .network files are holding up systemd-networkd-wait-online

systemctl status systemd-networkd-wait-online

how have you configured your network ? what config files do you have in '/etc/systemd/network' ? does the network actually work ?

Offline

#3 2023-10-21 01:30:03

ajpikul
Member
Registered: 2023-10-20
Posts: 3

Re: Which .network files are holding up systemd-networkd-wait-online

Yeah the networks configured, the service just hangs until eventually I just time it out.

I was always hibernating the system so I never booted, have no idea why this change occured.

Is `/etc/systemd/network` where the active links are? It's empty.


```$ networkctl
IDX LINK    TYPE     OPERATIONAL SETUP
  1 lo      loopback carrier     unmanaged
  2 wlo1    wlan     routable    unmanaged
  3 virbr0  bridge   no-carrier  unmanaged
  4 docker0 bridge   no-carrier  unmanaged
```

Last edited by ajpikul (2023-10-21 01:31:57)

Offline

#4 2023-10-21 02:05:59

jonno2002
Member
Registered: 2016-11-21
Posts: 688

Re: Which .network files are holding up systemd-networkd-wait-online

ajpikul wrote:

Yeah the networks configured

jonno2002 wrote:

how have you configured your network ?

your clearly not using systemd-networkd to manage your network, so why do you have 'systemd-networkd-wait-online.service' enabled ?

EDIT: also why do you even have systemd-networkd enabled if you arent using it ?

Last edited by jonno2002 (2023-10-21 02:07:22)

Offline

#5 2023-10-21 02:08:33

ajpikul
Member
Registered: 2023-10-20
Posts: 3

Re: Which .network files are holding up systemd-networkd-wait-online

you're right, and i realized that just now.

i just find the whole ecosystem a bit confusing tbh.

still curious why it functioned without error for so long.

shouldn't the service quit succesfully as long as all the links are online. (there are no links, nothing is online, should it exit correctly?)

corner case! who cares! thank you!

Offline

#6 2023-10-21 02:26:22

jonno2002
Member
Registered: 2016-11-21
Posts: 688

Re: Which .network files are holding up systemd-networkd-wait-online

i just tried it on a machine using network-manager:

systemctl enable systemd-networkd systemd-networkd-wait-online
reboot

machine booted fine, systemd-networkd-wait-online failed silently in the background, so i guess it requires systemd-networkd to be configured and managing interfaces for it to suceed.
so pretty much:

systemctl disable systemd-networkd systemd-networkd-wait-online

and use whatever else your using which is obviously working.

Offline

#7 2023-10-21 06:55:47

seth
Member
Registered: 2012-09-03
Posts: 53,303

Re: Which .network files are holding up systemd-networkd-wait-online

That service is holding up my boot indefinitely, I had to add a timeout to the service file in a recovery mode, thinking of adding the `--any` flag to get it finish.

Logs give me absolutely no information.

Please post the outputs of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
systemd-analyze critical-chain

And please use [code][/code] tags.

Also please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

Board footer

Powered by FluxBB