Authorization not available. Check if polkit service is running or see debug message for more information.

Issues related to applications and software problems
sudheerp494
Posts: 32
Joined: 2019/04/01 17:29:22

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by sudheerp494 » 2019/04/02 17:41:26

Do you see any resolution on my issue.

sudheerp494
Posts: 32
Joined: 2019/04/01 17:29:22

Polkit service hasn't comeup

Post by sudheerp494 » 2019/04/02 19:03:23

Hi Team,

I am unable to run polkit service on centos7 & kernel info 3.10.0-957.10.1.el7.x86_64 .

In systemctl status i could see, "Lost the name org.freedesktop.PolicyKit1 - exiting".

Please help me in finding this.

User avatar
TrevorH
Forum Moderator
Posts: 26983
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by TrevorH » 2019/04/02 19:08:12

Please don't make duplicate posts. I have merged this into the existing topic.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

sudheerp494
Posts: 32
Joined: 2019/04/01 17:29:22

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by sudheerp494 » 2019/04/02 19:10:04

Sure.

Do you get chance to look at my issue.

pjsr2
Posts: 433
Joined: 2014/03/27 20:11:07

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by pjsr2 » 2019/04/02 20:12:52

You mention that the problem started after installing or configuring nscd.

I have seen an issue where polkit was not running and an error message that the Authorization Manager could not be started. By consequence several other services could not be started.
In our case, it turned out that this was caused by an incomplete/incorrect nis configuration. Nis had been added in /etc/nsswitch.conf. This was not a problem until named was installed. After named was installed, sealert showed messages and suggested to "setsebool -P nis_enabled 1" and this suggestion was followed. We did not see any problem immediately after setting nis_enabled in SELinux. However, after a reboot of the machine a couple of days later, we got a failing polkit.

You may have a number of error messages in /var/log/messages that relate to this issue, maybe already pre-dating the first time you got issues with polkit. Check this carefully for anything that relates to nis, ldap, dns or other things that are involved in authorization information or services provided by other hosts.

When you make changes to your system in order to solve these issues, the Authorization Manager service and by consequence polkit may not start to work properly until after you reboot the machine.
Also, note that the reboot command may fail when the Authorization Manager is not available, so you may have to power-cycle the machine in order to reboot.

sudheerp494
Posts: 32
Joined: 2019/04/01 17:29:22

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by sudheerp494 » 2019/04/02 20:26:22

I have below logs from /var/log/messages

Apr 2 13:24:01 winbindd[7046]: [2019/04/02 13:24:01.395542, 0] ../source3/librpc/crypto/gse.c:212(gse_context_init)
Apr 2 13:24:01 winbindd[7046]: Failed to initialize kerberos context! (Included profile directory could not be read)
Apr 2 13:24:01 winbindd[7046]: [2019/04/02 13:24:01.418592, 0] ../source3/librpc/crypto/gse.c:212(gse_context_init)
Apr 2 13:24:01 winbindd[7046]: Failed to initialize kerberos context! (Included profile directory could not be read)
Apr 2 13:24:01 winbindd[7046]: [2019/04/02 13:24:01.440237, 0] ../source3/librpc/crypto/gse.c:212(gse_context_init)
Apr 2 13:24:01 winbindd[7046]: Failed to initialize kerberos context! (Included profile directory could not be read)
Apr 2 13:24:03 NetworkManager[26918]: <info> [1554236643.7809] bus-manager: could not connect to the system bus (Could not connect: No such file or directory); only the private D-Bus socket will be available
Attachments
org 04022019.PNG
org 04022019.PNG (97.73 KiB) Viewed 4359 times

sudheerp494
Posts: 32
Joined: 2019/04/01 17:29:22

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by sudheerp494 » 2019/04/03 16:36:31

Hi,

Do you get chance to look into my logs.

User avatar
TrevorH
Forum Moderator
Posts: 26983
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by TrevorH » 2019/04/03 16:42:47

What's the output from systemctl status dbus
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

sudheerp494
Posts: 32
Joined: 2019/04/01 17:29:22

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by sudheerp494 » 2019/04/03 16:59:53

dbus is running. But i do see some failed status in brief.

Please look into attachment.
Attachments
org 04022019.PNG
org 04022019.PNG (4.58 KiB) Viewed 4303 times

User avatar
TrevorH
Forum Moderator
Posts: 26983
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Authorization not available. Check if polkit service is running or see debug message for more information.

Post by TrevorH » 2019/04/03 17:02:09

Should have been systemctl status dbus -l
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Software Support”