polkit-org / polkit

polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
Other
48 stars 27 forks source link

Failed to start polkit.service #210

Closed polkit-github-migration-bot closed 8 months ago

polkit-github-migration-bot commented 8 months ago

In gitlab.freedesktop.org by ch-hanisch on Dec 9, 2023, 13:13

Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/209

Current behaviour, description of the problem

Desired behaviour

Reproducer

Detailed description

polkit-github-migration-bot commented 8 months ago

In gitlab.freedesktop.org by ch-hanisch on Dec 9, 2023, 13:24

Current behaviour, description of the problem

$ pkexec gparted
** (process:4059): WARNING **: 13:31:45.066: Error enumerating actions: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.
Error checking for authorization org.freedesktop.policykit.exec: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: startup job failed.

Desired behaviour

[What polkit should do, but doesn't]: # Version 123 don't start

Reproducer

sudo systemctl start polkit

Detailed description

[Version of polkit]: # 123 [Version of OS]: # OpenMandriva Rolling or Rock 5.0

Both in a VirtualBox

After Upgrade OpenMandriva Rock 4.3 to Rolling or 5.0 in VirtualBox Boot-Failure: [FAILED] Failed to start polkit.service Here the journalctl → https://pastebin.pl/view/19b1b02c

$ sudo systemctl start polkit
Job for polkit.service failed because the control process exited with error code.
See "systemctl status polkit.service" and "journalctl -xeu polkit.service" for details.

https://pastebin.pl/view/55acfc07

$ sudo systemctl status polkit
× polkit.service - Authorization Manager
     Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: exit-code) since Sat 2023-12-09 13:20:22 CET; 1min 18s ago
       Docs: man:polkit(8)
    Process: 3610 ExecStart=/usr/lib/polkit-1/polkitd --no-debug (code=exited, status=1/FAILURE)
   Main PID: 3610 (code=exited, status=1/FAILURE)
        CPU: 65ms

Dez 09 13:20:21 VM-OpenMandriva systemd[1]: Starting polkit.service - Authorization Manager...
Dez 09 13:20:22 VM-OpenMandriva systemd[1]: polkit.service: Main process exited, code=exited, status=1/FAILURE
Dez 09 13:20:22 VM-OpenMandriva systemd[1]: polkit.service: Failed with result 'exit-code'.
Dez 09 13:20:22 VM-OpenMandriva systemd[1]: Failed to start polkit.service - Authorization Manager.