Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Error calling StartServiceByName for org.freedesktop.PolicyKit1

  1. #11
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,856
    Blog Entries
    2

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    Pls post your repository list which can be displayed with the following command
    Code:
    zypper ls -d
    It's good that you reoinstalled your polkit authentication agents, but I wonder if the problem is not the agents themselves but authorizing policy kit functionality which is based on ordinary system authentication.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  2. #12

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    I have done a reinstall, both an upgrade as well as a full install, the issue has persisted.

  3. #13

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    Quote Originally Posted by tsu2 View Post
    Pls post your repository list which can be displayed with the following command
    Code:
    zypper ls -d
    It's good that you reoinstalled your polkit authentication agents, but I wonder if the problem is not the agents themselves but authorizing policy kit functionality which is based on ordinary system authentication.

    TSU
    The requested outputs:
    Code:
    # zypper ls -d
    #  | Alias                     | Name                               | Enabled | GPG Check | Refresh | Priority | Type   | URI
    ---+---------------------------+------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------------
    1  | download.nvidia.com-leap  | nVidia Graphics Drivers            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.2
    2  | openSUSE-Leap-15.2-1      | openSUSE-Leap-15.2-1               | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-SanDisk_Cruzer_Glide_4C530000200806115255-0:0-part2
    3  | opensuse-guide.org-repo   | Libdvdcss Repository               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.2/
    4  | packman.inode.at-suse     | Packman Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.2/
    5  | repo-debug                | Debug Repository                   | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/
    6  | repo-debug-non-oss        | Debug Repository (Non-OSS)         | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/
    7  | repo-debug-update         | Update Repository (Debug)          | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/oss/
    8  | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/non-oss/
    9  | repo-non-oss              | Non-OSS Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/
    10 | repo-non-oss_1            | Non-OSS Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/
    11 | repo-oss                  | Main Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/
    12 | repo-oss_1                | Main Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/
    13 | repo-source               | Source Repository                  | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/
    14 | repo-source-non-oss       | Source Repository (Non-OSS)        | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/
    15 | repo-update               | Main Update Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss
    16 | repo-update-non-oss       | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/
    17 | repo-update-non-oss_1     | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/
    18 | repo-update_1             | Main Update Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss
    I think that the *oss_1 and *non-oss_1 were inserted from the last reinstallation. I just now noticed they were there...

  4. #14

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    Cleaned up
    Code:
    # zypper ls -d
    #  | Alias                     | Name                               | Enabled | GPG Check | Refresh | Priority | Type   | URI
    ---+---------------------------+------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------------
    1  | download.nvidia.com-leap  | nVidia Graphics Drivers            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/15.2
    2  | openSUSE-Leap-15.2-1      | openSUSE-Leap-15.2-1               | No      | ----      | ----    |   99     | rpm-md | hd:/?device=/dev/disk/by-id/usb-SanDisk_Cruzer_Glide_4C530000200806115255-0:0-part2
    3  | opensuse-guide.org-repo   | Libdvdcss Repository               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/openSUSE_Leap_15.2/
    4  | packman.inode.at-suse     | Packman Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_Leap_15.2/
    5  | repo-debug                | Debug Repository                   | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/
    6  | repo-debug-non-oss        | Debug Repository (Non-OSS)         | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/
    7  | repo-debug-update         | Update Repository (Debug)          | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/oss/
    8  | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/debug/update/leap/15.2/non-oss/
    9  | repo-non-oss              | Non-OSS Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/
    10 | repo-oss                  | Main Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/
    11 | repo-source               | Source Repository                  | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/
    12 | repo-source-non-oss       | Source Repository (Non-OSS)        | No      | ----      | ----    |   99     | rpm-md | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/
    13 | repo-update               | Main Update Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss
    14 | repo-update-non-oss       | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss

  5. #15

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    With respect to a previous response about focusing on a single affected application, let's choose pkaction from the polkit package, which seems to be a root level requirement for everything else.

    The command fails with any command sequence:
    Code:
    # pkaction --verbose
    Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
    
    
    # pkaction |grep login
    Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
    it is from
    Code:
    # zypper if polkit
    Loading repository data...
    Reading installed packages...
    
    
    
    
    Information for package polkit:
    -------------------------------
    Repository     : Main Repository
    Name           : polkit
    Version        : 0.116-lp152.1.4
    Arch           : x86_64
    Vendor         : openSUSE
    Installed Size : 341.0 KiB
    Installed      : Yes
    Status         : up-to-date
    Source package : polkit-0.116-lp152.1.4.src
    Summary        : PolicyKit Authorization Framework
    Description    : 
        PolicyKit is a toolkit for defining and handling authorizations.
        It is used for allowing unprivileged processes to speak to privileged
        processes.

    Message from when this command is run
    Code:
    ct 21 10:56:20 linux-3wjh dbus-daemon[918]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
    Oct 21 10:56:20 linux-3wjh rtkit-daemon[2135]: Warning: PolicyKit call failed: Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
    Oct 21 10:56:20 linux-3wjh dbus-daemon[918]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.23' (uid=0 pid=2135 comm="/usr/lib/rtkit/rtkit-daemon ")
    Oct 21 10:56:20 linux-3wjh systemd[1]: Starting Authorization Manager...
    Oct 21 10:56:20 linux-3wjh polkitd[16879]: Started polkitd version 0.116
    Oct 21 10:56:20 linux-3wjh polkitd[16879]: Loading rules from directory /etc/polkit-1/rules.d
    Oct 21 10:56:20 linux-3wjh polkitd[16879]: Loading rules from directory /usr/share/polkit-1/rules.d
    Oct 21 10:56:20 linux-3wjh polkitd[16879]: Finished loading, compiling and executing 4 rules
    Oct 21 10:56:20 linux-3wjh polkitd[16879]: Lost the name org.freedesktop.PolicyKit1 - exiting
    from /var/run
    Code:
    drwxrwx---  2 polkituser polkituser   40 Oct 18 17:49 PolicyKit

  6. #16

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    I checked what should have been running with
    Code:
    ~> ps aux | grep polkit
    user  24368  0.0  0.0   8688   828 pts/4    S+   13:14   0:00 grep --color=auto polkit
    and see that I appear to not have polkitd nor polkit-*-authentication-agent-1 by same user of the session.

    I tried to manually start polkitd
    Code:
    # Exec=/usr/lib/polkit-1/polkitd
    Still no process and see in messages
    Code:
    Oct 21 13:15:03 linux-3wjh logrotate: ALERT exited abnormally with [1]
    Oct 21 13:15:03 linux-3wjh logrotate: logrotate_script: line 1: /etc/init.d/syslog: No such file or directory
    Oct 21 13:15:03 linux-3wjh logrotate: error: error running shared postrotate script for '/var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall /var/log/acpid /var/log/NetworkManager '
    Oct 21 13:15:03 linux-3wjh rtkit-daemon[2135]: Warning: PolicyKit call failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    Oct 21 13:15:03 linux-3wjh dbus-daemon[918]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
    Oct 21 13:15:03 linux-3wjh dbus-daemon[918]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.23' (uid=0 pid=2135 comm="/usr/lib/rtkit/rtkit-daemon ")
    Oct 21 13:15:03 linux-3wjh systemd[1]: Starting Authorization Manager...
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Started polkitd version 0.116
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Loading rules from directory /etc/polkit-1/rules.d
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Loading rules from directory /usr/share/polkit-1/rules.d
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Finished loading, compiling and executing 4 rules
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Lost the name org.freedesktop.PolicyKit1 - exiting
    Oct 21 13:15:03 linux-3wjh systemd[1]: Started Authorization Manager.
    I am guessing some king of permissions issue somewhere that needs to be corrected?

  7. #17

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    The polkit process keeps continually restarting, each of the below lines about 20 seconds apart
    Code:
    # ps aux |grep polkit
    root     16502  0.0  0.0   8688   864 pts/0    S+   16:10   0:00 grep --color=auto polkit
    
    # ps aux |grep polkit
    root     16519  0.0  0.0   8688   816 pts/0    S+   16:10   0:00 grep --color=auto polkit
    
    # ps aux |grep polkit
    root     16556  0.0  0.0   8688   916 pts/0    S+   16:11   0:00 grep --color=auto polkit
    How can I determine why polkit can not successfully start?

  8. #18
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,805
    Blog Entries
    15

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    Quote Originally Posted by wilkerjnc View Post
    The polkit process keeps continually restarting, each of the below lines about 20 seconds apart
    Code:
    # ps aux |grep polkit
    root     16502  0.0  0.0   8688   864 pts/0    S+   16:10   0:00 grep --color=auto polkit
    
    # ps aux |grep polkit
    root     16519  0.0  0.0   8688   816 pts/0    S+   16:10   0:00 grep --color=auto polkit
    
    # ps aux |grep polkit
    root     16556  0.0  0.0   8688   916 pts/0    S+   16:11   0:00 grep --color=auto polkit
    How can I determine why polkit can not successfully start?
    Hi
    That's just you running the ps aux command... polkitd isn't running...

    Code:
    systemctl status polkit.service
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #19

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    From the requested command:
    Code:
    # systemctl status polkit.service
    
    ● polkit.service - Authorization Manager
       Loaded: loaded (/usr/lib/systemd/system/polkit.service; static; vendor preset: disabled)
       Active: inactive (dead) since Sun 2020-10-25 22:41:07 EDT; 5s ago
         Docs: man:polkit(8)
      Process: 4940 ExecStart=/usr/lib/polkit-1/polkitd (code=exited, status=0/SUCCESS)
     Main PID: 4940 (code=exited, status=0/SUCCESS)
    
    
    Oct 25 22:41:07 linux polkitd[4940]: 22:41:07.227: Loading rules from directory /usr/share/polkit-1/rules.d
    Oct 25 22:41:07 linux polkitd[4940]: Finished loading, compiling and executing 4 rules
    Oct 25 22:41:07 linux polkitd[4940]: 22:41:07.228: Finished loading, compiling and executing 4 rules
    Oct 25 22:41:07 linux polkitd[4940]: Entering main event loop
    Oct 25 22:41:07 linux polkitd[4940]: Connected to the system bus
    Oct 25 22:41:07 linux polkitd[4940]: 22:41:07.229: Lost the name org.freedesktop.PolicyKit1 - exiting
    Oct 25 22:41:07 linux polkitd[4940]: Shutting down
    Oct 25 22:41:07 linux polkitd[4940]: Lost the name org.freedesktop.PolicyKit1 - exiting
    Oct 25 22:41:07 linux polkitd[4940]: Exiting with code 0
    Oct 25 22:41:07 linux systemd[1]: Started Authorization Manager.

  10. #20
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,856
    Blog Entries
    2

    Default Re: Error calling StartServiceByName for org.freedesktop.PolicyKit1

    Quote Originally Posted by wilkerjnc View Post
    I checked what should have been running with
    Code:
    ~> ps aux | grep polkit
    user  24368  0.0  0.0   8688   828 pts/4    S+   13:14   0:00 grep --color=auto polkit
    and see that I appear to not have polkitd nor polkit-*-authentication-agent-1 by same user of the session.

    I tried to manually start polkitd
    Code:
    # Exec=/usr/lib/polkit-1/polkitd
    Still no process and see in messages
    Code:
    Oct 21 13:15:03 linux-3wjh logrotate: ALERT exited abnormally with [1]
    Oct 21 13:15:03 linux-3wjh logrotate: logrotate_script: line 1: /etc/init.d/syslog: No such file or directory
    Oct 21 13:15:03 linux-3wjh logrotate: error: error running shared postrotate script for '/var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall /var/log/acpid /var/log/NetworkManager '
    Oct 21 13:15:03 linux-3wjh rtkit-daemon[2135]: Warning: PolicyKit call failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    Oct 21 13:15:03 linux-3wjh dbus-daemon[918]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
    Oct 21 13:15:03 linux-3wjh dbus-daemon[918]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.23' (uid=0 pid=2135 comm="/usr/lib/rtkit/rtkit-daemon ")
    Oct 21 13:15:03 linux-3wjh systemd[1]: Starting Authorization Manager...
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Started polkitd version 0.116
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Loading rules from directory 
    Code:
    /etc/polkit-1/rules.d
    Oct 21 13:15:03 linux-3wjh polkitd[24580]: Loading rules from directory /usr/share/polkit-1/rules.d Oct 21 13:15:03 linux-3wjh polkitd[24580]: Finished loading, compiling and executing 4 rules Oct 21 13:15:03 linux-3wjh polkitd[24580]: Lost the name org.freedesktop.PolicyKit1 - exiting Oct 21 13:15:03 linux-3wjh systemd[1]: Started Authorization Manager.
    I am guessing some king of permissions issue somewhere that needs to be corrected?
    Read an Internet post that the error you're throwing can be caused if the service name is invoked by a custom rule before the main rules are read and loaded.
    Did you do anything noteworthy around the time your error started appearing?
    Some tries...
    1. inspect the rules in the two locations described... Inspect timestamps and any reference to org.freedesktop.PolicyKit1
    Code:
    /etc/polkit-1/rules.d
    /usr/share/polkit-1/rules.d
    2. If you're installed on BTRFS, try rolling back to a day/time prior to when you noticed your error.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •