I have a problem with my network manager not loading at boot. The tray icon is often completely missing or it hangs for ages waiting to get a wifi connection. This would cause all my smb mounts to fail in quite odd ways, even in .automount mode.
I used to be quite happy using fstab but something happened (i cant remember now) but i had to switch over and learn as best i could to use systemd mounts/automounts. Now they seem to be causing a problem at boot
I found in the logs that there were a lot of ordering cycle errors for service dependencies. I would get a lot of these types of error Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
The first thing i started to do was to see if disabling the services mentioned in the logs one at at time would solve it and then i could focus on that closer. I was informed that i could disable, try a reboot and then safely re-enable the NetworkManager-wait-online.service, so i tried that just to see if i could narrow it down a bit.
i tried a reboot a checked if the system was going to load the networkmanager after a boot and all the errors would be gone (which it didn’t). But when i re-enabled the NetworkManager-wait-online.service it would no longer start at boot.
These logs were of the wifi being delayed by a long time, but i think they are much the same errors when the network does not start at all.
❱journalctl -b -p 3
Sep 02 15:54:08 greg-venusseries kernel: pci 0000:00:07.2: DPC: RP PIO log size 0 is invalid
Sep 02 15:54:09 greg-venusseries systemd[1]: sockets.target: Job systemd-sysext.socket/start deleted to break ordering cycle starting with sockets.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job systemd-update-done.service/start deleted to break ordering cycle starting wit>
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting >
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job plymouth-read-write.service/start deleted to break ordering cycle starting wit>
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job ldconfig.service/start deleted to break ordering cycle starting with gpg-agent>
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job systemd-boot-random-seed.service/start deleted to break ordering cycle startin>
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job systemd-binfmt.service/start deleted to break ordering cycle starting with gpg>
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job systemd-journal-catalog-update.service/start deleted to break ordering cycle s>
Sep 02 15:54:09 greg-venusseries systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Job local-fs.target/start deleted to break ordering cycle starting with gpg-agent->
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job plymouth-read-write.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job ldconfig.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-boot-random-seed.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-binfmt.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-journal-catalog-update.service/start deleted to break ordering cycle starting with sysinit.target>
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: systemd-update-done.service: Job local-fs.target/start deleted to break ordering cycle starting with systemd-update-done.serv>
Sep 02 15:54:09 greg-venusseries systemd[1]: basic.target: Job sysinit.target/start deleted to break ordering cycle starting with basic.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: network-online.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with network-online.tar>
Sep 02 15:54:09 greg-venusseries systemd[1]: network-online.target: Job local-fs.target/start deleted to break ordering cycle starting with network-online.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: basic.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with basic.target/start
Sep 02 15:54:09 greg-venusseries systemd[1]: basic.target: Job local-fs.target/start deleted to break ordering cycle starting with basic.target/start
Sep 02 15:54:31 greg-venusseries wpa_supplicant[894]: bgscan simple: Failed to enable signal strength monitoring
Sep 02 15:54:40 greg-venusseries kernel: Bluetooth: hci0: command 0x0405 tx timeout
Sep 02 15:54:42 greg-venusseries kernel: Bluetooth: hci0: command 0x0405 tx timeout
Sep 02 15:55:18 greg-venusseries bluetoothd[799]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Connection timed out
Sep 02 15:55:19 greg-venusseries bluetoothd[799]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Connection timed out
Sep 02 15:55:24 greg-venusseries bluetoothd[799]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to B0:38:E2:51:B0:B4: Host is down (112)
❱sudo dmesg | grep -i network
[ 0.680841] drop_monitor: Initializing network drop monitor service
[ 2.741380] systemd[1]: sockets.target: Found dependency on network-online.target/start
[ 2.741381] systemd[1]: sockets.target: Found dependency on NetworkManager-wait-online.service/start
[ 2.741519] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.741519] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
[ 2.741644] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.741645] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
[ 2.741894] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.741894] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
[ 2.742033] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.742034] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
[ 2.742243] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.742244] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
[ 2.742453] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.742454] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
[ 2.742689] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.742690] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
[ 2.742827] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on network-online.target/start
[ 2.742828] systemd[1]: gpg-agent-extra@etc-pacman.d-gnupg.socket: Found dependency on NetworkManager-wait-online.service/start
❱sudo journalctl -b -p 3
Sep 03 00:44:45 greg-venusseries kernel: pci 0000:00:07.2: DPC: RP PIO log size 0 is invalid
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sockets.target: Job systemd-bootctl.socket/start deleted to break ordering cycle starting with sockets.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job local-fs.target/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: systemd-update-done.service: Job local-fs.target/start deleted to break ordering cycle starting with systemd-update-done.serv>
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: NetworkManager.service: Job systemd-firstboot.service/start deleted to break ordering cycle starting with NetworkManager.serv>
Sep 03 00:44:46 greg-venusseries systemd[1]: NetworkManager.service: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with NetworkManager.se>
Sep 03 00:44:46 greg-venusseries systemd[1]: NetworkManager.service: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with NetworkManager>
Sep 03 00:44:46 greg-venusseries systemd[1]: NetworkManager.service: Job systemd-update-done.service/start deleted to break ordering cycle starting with NetworkManager.se>
Sep 03 00:44:46 greg-venusseries systemd[1]: NetworkManager.service: Job local-fs.target/start deleted to break ordering cycle starting with NetworkManager.service/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: systemd-update-done.service: Job local-fs.target/start deleted to break ordering cycle starting with systemd-update-done.serv>
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: local-fs.target: Job local-fs.target/start deleted to break ordering cycle starting with local-fs.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-firstboot.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-utmp.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: systemd-update-done.service: Job local-fs.target/start deleted to break ordering cycle starting with systemd-update-done.serv>
Sep 03 00:44:46 greg-venusseries systemd[1]: systemd-firstboot.service: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with systemd-fir>
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
Sep 03 00:44:46 greg-venusseries NetworkManager[719]: <error> [1725320686.7512] session-monitor: failed to create systemd-logind monitor: -2
Sep 03 00:45:17 greg-venusseries kernel: Bluetooth: hci0: command 0x0405 tx timeout
Sep 03 00:45:19 greg-venusseries kernel: Bluetooth: hci0: command 0x0405 tx timeout
Sep 03 00:45:55 greg-venusseries bluetoothd[720]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Connection timed out
Sep 03 00:45:56 greg-venusseries bluetoothd[720]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Connection timed out
Sep 03 00:45:56 greg-venusseries bluetoothd[720]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to B0:38:E2:51:B0:B4: Connection reset by peer (104)
Sep 03 00:46:02 greg-venusseries bluetoothd[720]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to B0:38:E2:51:B0:B4: Host is down (112)
Sep 03 00:46:13 greg-venusseries wpa_supplicant[861]: bgscan simple: Failed to enable signal strength monitoring
This is what all my smb mounts looked like at the time:
❱sudo systemctl cat mnt-TRUENAS_home.mount
# /etc/systemd/system/mnt-TRUENAS_home.mount
[Unit]
Description=Mount SMB Share - TRUENAS home
After=network-online.target
Wants=network-online.target
[Mount]
What=//192.168.1.100/home
Where=/mnt/TRUENAS_home
Type=cifs
Options=vers=2.0,user,nofail,cache=loose,credentials=/home/greg/.smbcredentials-nas,iocharset=utf8,uid=1000,gid=1000,noperm,_netdev
[Install]
WantedBy=multi-user.target
⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼ /home/greg ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
❱sudo systemctl cat mnt-TRUENAS_home.automount
# /etc/systemd/system/mnt-TRUENAS_home.automount
[Unit]
Description=Automount SMB Share - TRUENAS Home
After=network-online.target
Wants=network-online.target
[Automount]
Where=/mnt/TRUENAS_home
TimeoutIdleSec=30
[Install]
WantedBy=multi-user.target
I could manually start the networkmanager service (if it had completely failed to start) after the system had loaded and it would start the network up, but it was random if it would start with the desktop automatically at boot.
I also found that it would seem to work more often from a cold boot rather than just a “reboot” but im not sure if that was just my bias.