You are not logged in.

#1 2016-02-03 01:26:50

samuelrey
Member
Registered: 2015-10-06
Posts: 10

Failed to reboot system via logind

It started like this.
edit: I have no idea what was going on or what exactly I did to fix it. Thanks Arch for keeping me on my toes.

$ reboot 
Failed to set wall message, ignoring: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to reboot system via logind: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to start reboot.target: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Failed to talk to init daemon.

Did a little bit of reading, decided to try installing polkit. https://bbs.archlinux.org/viewtopic.php … 1#p1327530

$ reboot 
Failed to set wall message, ignoring: Connection timed out
Failed to reboot system via logind: Connection timed out
Failed to start reboot.target: Connection timed out
Failed to talk to init daemon.

$ systemctl reboot
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.PolicyKit1': timed out (g-dbus-error-quark, 20)
Failed to set wall message, ignoring: Method call timed out
Failed to reboot system via logind: Connection timed out
Failed to start reboot.target: Connection timed out

So that wasn't it. Did a little bit more reading https://bbs.archlinux.org/viewtopic.php?id=152830.

$ cat /etc/systemd/logind.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#UserTasksMax=4096

$ systemctl status systemd-logind.service
● systemd-logind.service - Login Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static; vendor preset: disabled)
   Active: active (running) since Tue 2016-02-02 16:15:45 PST; 49min ago
     Docs: man:systemd-logind.service(8)
           man:logind.conf(5)
           http://www.freedesktop.org/wiki/Software/systemd/logind
           http://www.freedesktop.org/wiki/Software/systemd/multiseat
 Main PID: 286 (systemd-logind)
   Status: "Processing requests..."
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/systemd-logind.service
           └─286 /usr/lib/systemd/systemd-logind

Feb 02 16:15:45 constance systemd[1]: Starting Login Service...
Feb 02 16:15:45 constance systemd-logind[286]: Watching system buttons on /dev/input/event3 (Power Button)
Feb 02 16:15:45 constance systemd-logind[286]: Watching system buttons on /dev/input/event1 (Power Button)
Feb 02 16:15:45 constance systemd-logind[286]: Watching system buttons on /dev/input/event2 (Lid Switch)
Feb 02 16:15:45 constance systemd-logind[286]: New seat seat0.
Feb 02 16:15:45 constance systemd[1]: Started Login Service.
Feb 02 16:15:45 constance systemd-logind[286]: Watching system buttons on /dev/input/event11 (Video Bus)
Feb 02 16:15:52 constance systemd-logind[286]: New session c1 of user psycho.

journalctl
Feb 02 17:06:12 constance dbus[276]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Feb 02 17:06:12 constance systemd[1]: Starting Authorization Manager...
Feb 02 17:06:12 constance polkitd[3063]: Started polkitd version 0.113
Feb 02 17:06:12 constance polkitd[3063]: Loading rules from directory /etc/polkit-1/rules.d
Feb 02 17:06:12 constance polkitd[3063]: Loading rules from directory /usr/share/polkit-1/rules.d
Feb 02 17:06:12 constance polkitd[3063]: Finished loading, compiling and executing 1 rules
Feb 02 17:06:12 constance polkitd[3063]: Lost the name org.freedesktop.PolicyKit1 - exiting
Feb 02 17:06:12 constance systemd[1]: Started Authorization Manager.
Feb 02 17:06:37 constance dbus[276]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out
Feb 02 17:06:37 constance dbus[276]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Feb 02 17:06:37 constance systemd[1]: Starting Authorization Manager...
Feb 02 17:06:37 constance polkitd[3072]: Started polkitd version 0.113
Feb 02 17:06:37 constance polkitd[3072]: Loading rules from directory /etc/polkit-1/rules.d
Feb 02 17:06:37 constance polkitd[3072]: Loading rules from directory /usr/share/polkit-1/rules.d
Feb 02 17:06:37 constance polkitd[3072]: Finished loading, compiling and executing 1 rules
Feb 02 17:06:37 constance polkitd[3072]: Lost the name org.freedesktop.PolicyKit1 - exiting
Feb 02 17:06:37 constance systemd[1]: Started Authorization Manager.
Feb 02 17:07:02 constance dbus[276]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out
Feb 02 17:07:02 constance dbus[276]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Feb 02 17:07:02 constance systemd[1]: Starting Authorization Manager...
Feb 02 17:07:02 constance polkitd[3081]: Started polkitd version 0.113
Feb 02 17:07:02 constance polkitd[3081]: Loading rules from directory /etc/polkit-1/rules.d
Feb 02 17:07:02 constance polkitd[3081]: Loading rules from directory /usr/share/polkit-1/rules.d
Feb 02 17:07:02 constance polkitd[3081]: Finished loading, compiling and executing 1 rules
Feb 02 17:07:02 constance polkitd[3081]: Lost the name org.freedesktop.PolicyKit1 - exiting
Feb 02 17:07:02 constance systemd[1]: Started Authorization Manager.
Feb 02 17:07:27 constance dbus[276]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out

Thought that maybe it was a similar issue with the dbus in /run and not /var/run.

lrwxrwxrwx  1 root root     6 Sep 30 12:17 run -> ../run

The only other thing I was configuring is my .xinitrc. I will revert, try a hard reboot and be right back.

Last edited by samuelrey (2016-02-03 01:37:47)

Offline

#2 2016-02-23 00:03:29

eximus
Member
Registered: 2016-02-23
Posts: 3

Re: Failed to reboot system via logind

I had the exact same problem, it fixed itself after i installed firefox. Maybe it has to do with polkit, since it's one of firefox's dependencies...

Offline

#3 2017-04-21 20:04:36

thevoidwithinyou
Member
From: .de
Registered: 2017-04-16
Posts: 2

Re: Failed to reboot system via logind

I just had the same issue with my normal user account. Logged in as root let me shut down the PC. I don't know what the problem as normal user is though.

Offline

#4 2017-04-21 21:03:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Failed to reboot system via logind


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB