You are not logged in.

#1 2014-02-26 08:52:17

steabert
Member
Registered: 2011-04-18
Posts: 78

systemctl poweroff stopped working

Recently, the command "systemctl poweroff" stopped working:

$ systemctl poweroff
Failed to issue method call: Access denied
Failed to issue method call: Access denied

polkit is installed, and the command worked till about 2-3 days ago,
so I'm thinking it has to do with some update or some new package(s)...

I would be happy if someone could just point me on the way how to
investigate the issue. Most of the relevant explanations I found point to
not having polkit installed, but that's not the case.

Offline

#2 2014-02-26 08:54:45

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

Re: systemctl poweroff stopped working

You can start with posting the list of recently updated packages.
Does it work with sudo or as root?

Offline

#3 2014-02-26 09:34:08

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: systemctl poweroff stopped working

It works if i do it with sudo or as root.

recently installed package list: http://pastebin.com/r6trvuGJ

Offline

#4 2014-02-26 11:57:53

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: systemctl poweroff stopped working

Is your session being registered correctly (aka check this)?


Burninate!

Offline

#5 2014-02-26 12:06:28

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: systemctl poweroff stopped working

Gcool wrote:

Is your session being registered correctly (aka check this)?

Thank you for that link, I checked that I have the proper session registration and dbus is running:

$ loginctl show-session $XDG_SESSION_ID
Id=1
Timestamp=Wed 2014-02-26 10:26:46 CET
TimestampMonotonic=1421918437
VTNr=7
Display=:0.0
Remote=no
RemoteUser=root
Service=slim
Scope=session-1.scope
Leader=293
Audit=1
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=stevenv
$ ps ax | grep dbus
  275 ?        Ss     0:03 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  800 ?        S      0:00 dbus-launch --sh-syntax --exit-with-session
  801 ?        Ss     0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
10309 pts/1    S+     0:00 grep dbus

Offline

#6 2014-02-26 18:17:03

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: systemctl poweroff stopped working

I think I isolated the problem.

The error only happens when I try to run the command from urxvtc. The urxvtd daemon is started by following the instructions on the wiki page, i.e. I have the following file:

/etc/systemd/system/urxvtd@.service
-------------------------------------------------------
[Unit]
Description=RXVT-Unicode Daemon

[Service]
Type=oneshot
RemainAfterExit=yes
User=%i
ExecStart=/usr/bin/urxvtd -q -f -o

[Install]
WantedBy=multi-user.target

Activated with:

systemctl enable urxvtd@stevenv.service
systemctl start urxvtd@stevenv.service

Then, any

systemctl poweroff

command issued from within an urxvtc process fails. I can only guess it has to do with how urxvtd is managed by systemd.

Last edited by steabert (2014-02-26 18:17:54)

Offline

#7 2014-03-31 20:27:36

Sathors
Member
Registered: 2011-02-23
Posts: 56

Re: systemctl poweroff stopped working

Well I've been investigating this very problem for quite a long time now...

So have you found a solution to launch urxvtd but still being able to use systemctl along with it ?

Thanks for the help.

Offline

#8 2014-08-07 09:22:42

steabert
Member
Registered: 2011-04-18
Posts: 78

Re: systemctl poweroff stopped working

Sathors wrote:

Well I've been investigating this very problem for quite a long time now...

So have you found a solution to launch urxvtd but still being able to use systemctl along with it ?

Thanks for the help.

I reverted to starting urxvtd from within .xinitrc instead of with systemd, in which case I can use the systemctl poweroff command from within an urxvtc process.

Offline

Board footer

Powered by FluxBB