You are not logged in.

#1 2021-10-10 12:34:26

nyvs
Member
Registered: 2021-10-10
Posts: 3

[SOLVED] kernel blocking at random startups - system unusable

Hello.

Today I noticed, when I tried to log in into my gnome-session, that my system freezed for ca. 20 seconds
instead of the usual 3 seconds before entering the de.

Programs like chromium, firefox, vscodium didn't start,

hostnamectl

yielded the "failed to query system properties: Connection timed out" message.

sudo systemsctl --force --force reboot

did nothing, it didn't succeed, nor fail, something was blocking.

Several services didn't start, also NetworkManager.

I tried to reboot, the command worked, but then I had to wait for 2-5 stop jobs. I pressed the power button for 8 secs to circumvent this waiting time.

After multiple reboots, it didn't work, always the same thing, I decided to unplug my machine. Surprisingly this worked, and now everything works fine again.

I am not sure why this happens in the first place. I didn't change any configurationfiles prior to the problem and in the past it happend already, but back then a simple reboot (=one reboot without pulling the power) solved it.

Logs of journalctl here and systemctl here, maybe someone has a clue why this happend/happens.

Let me know if you need a more extensive log, I will provide smile

Thank you

Last edited by nyvs (2021-10-11 08:51:23)

Offline

#2 2021-10-10 17:39:14

seth
Member
Registered: 2012-09-03
Posts: 24,105

Re: [SOLVED] kernel blocking at random startups - system unusable

Full system journal (sudo journalctl -b) and the output of

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

At leaswt it looks like you've competing network services and the symptoms sound like a broken session bus.

Offline

#3 2021-10-10 18:24:46

nyvs
Member
Registered: 2021-10-10
Posts: 3

Re: [SOLVED] kernel blocking at random startups - system unusable

sudo journalctl -b and

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

yields

acpid.service                            | multi-user.target.wants
avahi-daemon.service                     | multi-user.target.wants
avahi-daemon.socket                      | sockets.target.wants
containerd.service                       | multi-user.target.wants
cups.path                                | multi-user.target.wants
cups.service                             | printer.target.wants
cups.socket                              | sockets.target.wants
dbus-fi.w1.wpa_supplicant1.service       | system
dbus-org.freedesktop.Avahi.service       | system
dbus-org.freedesktop.network1.service    | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.timesync1.service   | system
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
docker.service                           | multi-user.target.wants
fstrim.timer                             | timers.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
iwd.service                              | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-media-session.service           | pipewire.service.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
systemd-networkd.service                 | multi-user.target.wants
systemd-networkd.socket                  | sockets.target.wants
systemd-networkd-wait-online.service     | network-online.target.wants
systemd-timesyncd.service                | sysinit.target.wants
wpa_supplicant.service                   | multi-user.target.wants
xdg-user-dirs-update.service             | default.target.wants

Offline

#4 2021-10-10 18:28:27

seth
Member
Registered: 2012-09-03
Posts: 24,105

Re: [SOLVED] kernel blocking at random startups - system unusable

You've enabled

iwd.service                              | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
systemd-networkd.service                 | multi-user.target.wants
systemd-networkd.socket                  | sockets.target.wants
systemd-networkd-wait-online.service     | network-online.target.wants
wpa_supplicant.service                   | multi-user.target.wants

Pick one group (likely Networkmanager or systemd-networkd, but pick *ONE*) and disable the others. Reboot. If it's still a problem, post an updated list of the enabled services and system journal.

Offline

#5 2021-10-11 08:48:46

nyvs
Member
Registered: 2021-10-10
Posts: 3

Re: [SOLVED] kernel blocking at random startups - system unusable

Thank you so much for your help! The next restart I had the same problem, and this fixed it as you said!

systemctl disable systemd-networkd.service &&
systemctl disable systemd-networkd.socket &&
systemctl disable systemd-networkd-wait-online.service &&
systemctl disable wpa_supplicant.service &&
systemctl disable iwd.service

The Table now looks like this:

acpid.service                            | multi-user.target.wants
avahi-daemon.service                     | multi-user.target.wants
avahi-daemon.socket                      | sockets.target.wants
containerd.service                       | multi-user.target.wants
cups.path                                | multi-user.target.wants
cups.service                             | printer.target.wants
cups.socket                              | sockets.target.wants
dbus-org.freedesktop.Avahi.service       | system
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.timesync1.service   | system
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
docker.service                           | multi-user.target.wants
fstrim.timer                             | timers.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-media-session.service           | pipewire.service.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
systemd-timesyncd.service                | sysinit.target.wants
xdg-user-dirs-update.service             | default.target.wants

I will mark this thread as [SOLVED]

Last edited by nyvs (2021-10-16 13:21:28)

Offline

Board footer

Powered by FluxBB