You are not logged in.

#1 2013-08-04 09:39:35

sudoku
Member
Registered: 2012-10-31
Posts: 96

[SOLVED] polkit service fails

Hi archers,

After having damaged my system through running pacdiff rather too mindlessly, I have managed to repair my system so that at least it loads my DE.

However, one issue remains. XFCE takes way too long to login and logout from Slim, much longer than it used to before botching the pacdiff.

Logging in takes at least one minute, whereas when I click on the logout (Action) button from the panel, XFCE freezes for at least 20 seconds before presenting the Logout options.

Is there any way I can see a log file for Slim and XFCE login so that I can start to understand what's keeping my system busy?

Many thanks!

[EDIT: I've tracked it down to a polkit service failure. See last post!]

Last edited by sudoku (2013-08-04 21:12:19)

Offline

#2 2013-08-04 09:50:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] polkit service fails

Maybe the have dedicated log files in /var/log. Check the systemd journal too.

Try if https://wiki.archlinux.org/index.php/Sl … leshooting helps.

Offline

#3 2013-08-04 10:16:08

sudoku
Member
Registered: 2012-10-31
Posts: 96

Re: [SOLVED] polkit service fails

Thanks.

Nothing strange indeed in the slim.log file. But after all it might be XFCE-related.

When I launch

xfce4-session-logout

XFCE freezes for at least 10 seconds.

In errors.log I get:

Aug  4 22:02:53 robohobo systemd[1]: Failed to start Authorization Manager

Whereas in auth.log I get:

Aug  4 22:06:04 robohobo sudo: pam_unix(sudo:auth): conversation failed
Aug  4 22:06:04 robohobo sudo: pam_unix(sudo:auth): auth could not identify password for [sudoku]
Aug  4 22:06:04 robohobo slim: pam_unix(slim:session): session closed for user sudoku
Aug  4 22:06:24 robohobo slim: pam_loginuid(slim:session): set_loginuid failed

Might this be related?

Last edited by sudoku (2013-08-04 21:05:06)

Offline

#4 2013-08-04 10:28:02

sudoku
Member
Registered: 2012-10-31
Posts: 96

Re: [SOLVED] polkit service fails

# journalctl -f
Aug 04 22:24:44 robohobo sudo[547]: pam_unix(sudo:auth): conversation failed
Aug 04 22:24:44 robohobo sudo[547]: pam_unix(sudo:auth): auth could not identify password for [sudoku]

Also reinstalled pambase as per https://bbs.archlinux.org/viewtopic.php?id=144236 but no dice. Any hints?

Last edited by sudoku (2013-08-04 10:38:01)

Offline

#5 2013-08-04 21:01:37

sudoku
Member
Registered: 2012-10-31
Posts: 96

Re: [SOLVED] polkit service fails

This is what I have been finding, and it's probably a polkit issue:

# journalctl -xn
-- Unit polkit.service has begun starting up.
Aug 05 08:52:00 robohobo systemd[1]: polkit.service: main process exited, code=exited, status=1/FAILURE
Aug 05 08:52:00 robohobo systemd[1]: Failed to start Authorization Manager.
-- Subject: Unit polkit.service has failed

and

# systemctl status polkit.service 
polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: failed (Result: exit-code) since Mon 2013-08-05 08:55:09 NZST; 7s ago
     Docs: man:polkit(8)
  Process: 4772 ExecStart=/usr/lib/polkit-1/polkitd --no-debug (code=exited, status=1/FAILURE)

If I run /usr/lib/polkit-1/polkitd manually:

# /usr/lib/polkit-1/polkitd
Error switcing to user polkitd: Error calling getpwnam(): Success
Exiting with code 1

This makes me think that the /etc/passwd file might have been damaged and that the polkit user has been removed from there. This is my passwd file (excluding users):

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
uuidd:x:68:68:uuidd:/:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false

Can anyone offer insights?
Am I on the right track?
How do I restore the polkit user to /etc/passwd?

Last edited by sudoku (2013-08-04 21:04:37)

Offline

#6 2013-08-04 21:12:04

sudoku
Member
Registered: 2012-10-31
Posts: 96

Re: [SOLVED] polkit service fails

Answering myself:

# pacman -S polkit

did the trick!

Offline

Board footer

Powered by FluxBB