SUMMARY On my fresh install of Solus 4.3 `polkit-kde` stopped working at all, no matter what I do. It did stop working around the time I updated to latest Plasma, but I updated my laptop with a year old installation and nothing broke. How can I gather more logs? I really want to fix it! STEPS TO REPRODUCE 1. Last thing I did is I went to Startup -> SDDM settings and I changed automatic login from X11 to Wayland. It was after I updated Plasma but not rebooted yet. (probably it is not what caused it) 2. Reboot, it still booted into X11, not Wayland 3. See the error in journalctl, try to run `polkit-kde-authentication-agent-1` manually with the same results. OBSERVED RESULT The box to input root password doesn't appear at any point, when using software centre or trying to change options in Plasma Settings that should require root privilidges. This is the output of `sudo journalctl -b | grep polkit`: ``` lip 16 09:41:39 duzepudlo polkitd[761]: Started polkitd version 0.114 lip 16 09:41:39 duzepudlo polkitd[761]: Loading rules from directory /etc/polkit-1/rules.d lip 16 09:41:39 duzepudlo polkitd[761]: Loading rules from directory /usr/share/polkit-1/rules.d lip 16 09:41:39 duzepudlo polkitd[761]: Finished loading 4 rules lip 16 09:41:39 duzepudlo polkitd[761]: Acquired the name org.freedesktop.PolicyKit1 on the system bus lip 16 09:41:42 duzepudlo polkit-kde-authentication-agent-1[1290]: New PolkitAgentListener 0x55f14038eac0 lip 16 09:41:42 duzepudlo polkit-kde-authentication-agent-1[1290]: Adding new listener PolkitQt1::Agent::Listener(0x55f1403c3870) for 0x55f14038eac0 lip 16 09:41:42 duzepudlo polkit-kde-authentication-agent-1[1290]: Listener online lip 16 09:41:42 duzepudlo polkit-kde-authentication-agent-1[1290]: "Cannot create unix session: No session for pid 1290" lip 16 09:41:42 duzepudlo polkit-kde-auth[1290]: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed lip 16 09:41:42 duzepudlo polkit-kde-authentication-agent-1[1290]: "Cannot register authentication agent!" lip 16 09:41:42 duzepudlo polkit-kde-authentication-agent-1[1290]: Authentication agent result: false lip 16 09:41:42 duzepudlo polkit-kde-authentication-agent-1[1290]: Couldn't register listener! ``` EXPECTED RESULT polkit-kde should launch without errors, and password box just appear. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Solus 4.3 KDE Plasma Version: 5.25.3 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5
When I run `sudo gdb /usr/lib64/kf5/polkit-kde-authentication-agent-1` I get ``` Starting program: /usr/lib64/kf5/polkit-kde-authentication-agent-1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". [New Thread 0x7fffe55e1640 (LWP 6844)] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' [New Thread 0x7fffe4dad640 (LWP 6845)] [Detaching after fork from child process 6846] New PolkitAgentListener 0x7fffe0003da0 Adding new listener PolkitQt1::Agent::Listener(0x555555654050) for 0x7fffe0003da0 Listener online "Cannot create unix session: No session for pid 6840" ** (process:6840): CRITICAL **: 10:27:53.358: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed "Cannot register authentication agent!" Authentication agent result: false Couldn't register listener! [Thread 0x7fffe4dad640 (LWP 6845) exited] [Thread 0x7ffff2de08c0 (LWP 6840) exited] [Inferior 1 (process 6840) exited with code 01] ``` So nothing suspicious, apart from `XDG_RUNTIME_DIR`. Could that be a problem?
But when I run it without without sudo I get a lot of access denied: ``` Starting program: /usr/lib64/kf5/polkit-kde-authentication-agent-1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. [New Thread 0x7fffe3c3e640 (LWP 7563)] [New Thread 0x7fffe343d640 (LWP 7564)] Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. Error while mapping shared library sections: /proc/7414/ns/mnt: Brak dostępu. [New Thread 0x7fffe2b4b640 (LWP 7565)] New PolkitAgentListener 0x5555555bbac0 Adding new listener PolkitQt1::Agent::Listener(0x5555555ef650) for 0x5555555bbac0 Listener online "Cannot create unix session: No session for pid 7414" ** (process:7414): CRITICAL **: 10:33:25.684: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed "Cannot register authentication agent!" Authentication agent result: false Couldn't register listener! [Thread 0x7fffe2b4b640 (LWP 7565) exited] [Thread 0x7fffe343d640 (LWP 7564) exited] [Thread 0x7ffff2de08c0 (LWP 7414) exited] [Inferior 1 (process 7414) exited with code 01] ```
Honestly I would recommend that you contact the Solus folks about this. I strongly suspect it's an upgrade/configuration/packaging issue rather than a code issue, as no code has changed here in a long time.
That is correct, Solus was using a fork of Polkit that had all of JavaScript ripped out. https://dev.getsol.us/D13356 It will take a lot of time to get fixed, but people are working on it.