On 09.12.2023 22:30, Martin /Nightowl/ Byttebier wrote:
Op Sat, 9 Dec 2023 20:32:35 +0300 Andrei Borzenkov <arvidjaar@gmail.com> schreef:
On 09.12.2023 18:54, Martin /Nightowl/ Byttebier wrote:
Op Sat, 9 Dec 2023 17:53:17 +0300 Andrei Borzenkov <arvidjaar@gmail.com> schreef:
On 09.12.2023 17:40, Martin /Nightowl/ Byttebier wrote:
Hello,
After I did an update of my tumbleweed pc yesterday the pc refused to restart. I couldn't even go to console to execute the shutdown restart command. The only way was to hit the powerbuttom.
Below a part of the log which I think it's relevant.
Dec 08 16:10:44 dell dbus-daemon[1875]: [session uid=1000 pid=1875] Activating service name='org.kde.LogoutPrompt' requested by ': 1.14' (uid=1000 pid=2026 comm="/usr/bin/plasmashell --no-respawn") Dec 08 16:10:44 dell dbus-daemon[1089]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.0' (uid=0 pid=1225 comm="/usr/lib/systemd/systemd-log> Dec 08 16:10:44 dell systemd[1]: Starting Authorization Manager... Dec 08 16:10:44 dell systemd[1]: polkit.service: Main process exited, code=exited, status=1/FAILURE
...
How can I fix this?
To fix something you need to find the reason for the failure. Run polkitd manually without --no-debug option, may be it will provide more information in logs.
Dec 09 16:38:05 dell polkitd[8005]: Started polkitd version 123 Dec 09 16:38:05 dell polkitd[8005]: Loading rules from directory /etc/polkit-1/rules.d Dec 09 16:38:05 dell polkitd[8005]: Error opening rules directory: Error opening directory “/etc/polkit-1/rules.d”: Permission denied (g-file-error-quark, 2)
Are you running it as root?
Yes it did that as root
Dec 09 16:38:05 dell polkitd[8005]: Loading rules from directory /usr/share/polkit-1/rules.d Dec 09 16:38:05 dell polkitd[8005]: Finished loading, compiling and executing 3 rules Dec 09 16:38:05 dell polkitd[8005]: Acquired the name org.freedesktop.PolicyKit1 on the system bus Dec 09 16:38:08 dell systemd-udevd[758]: /etc/udev/rules.d/99-megasync-udev.rules:1 The line has no effect, ignoring. Dec 09 16:38:11 dell systemd-udevd[758]: /etc/udev/rules.d/99-megasync-udev.rules:1 The line has no effect, ignoring. Dec 09 16:38:12 dell plasmashell[1938]: kf.service.services: The desktop entry file "/usr/share/applications/org.freedesktop.Xwayland.desktop" has Type= "Application" but has no Exec field. Dec 09 16:38:14 dell plasma_waitforname[7959]: org.kde.knotifications: WaitForName: Service was not registered within timeout
martin@dell:/etc/polkit-1> ll totaal 8 drwxr-xr-x 2 root root 4096 5 dec 18:15 actions drwxr-x--- 2 root polkitd 4096 5 dec 18:15 rules.d
Hm, permission question?
The permissions are normal and expected. It is still unclear what you were doing so it is hard to interpret the result.
https://www.suse.com/support/kb/doc/?id=000021187
According to this doc the permission were wrong. That's why I got “/etc/polkit-1/rules.d”: Permission denied (g-file-error-quark, 2)
polkitd runs as user polkit, group polkit. The permissions are correct - group polkit has read access. Do not blindly trust anything you find on Net. Files inside this directory have permissions 644 and are readable by all.
That's gone now but still no polkit.
Modify polkit.service and remove --no-debug, (re-)start the service, check logs for any hints.
Forgive me my ignorance, but where can I find that file?
You can run "systemctl edit --full polkit.service"
I just updated Tumbleweed to 20231207 and polkit.service starts without any problems.
On the laptop running tumbleweed no problem at all with polkit.service
So this particular system has some issues and you need to investigate it.