You are not logged in.

#1 2017-02-02 11:06:25

sevaho
Member
Registered: 2016-12-01
Posts: 24

Slow poweroff with nodm Failed to create session: Refusing activation

Hello,

I'm using i3 wm with nodm but I'm getting an issue that sometimes my laptop won't poweroff directly. this is the main error in journalctl: 'pam_systemd(nodm:session): Failed to create session: Refusing activation, D-Bus is shutting down.' So pam won't allow nodm to poweroff but I have made a file like on the wiki in /etc/pam.d.

I've followed the arch wiki:

/etc/nodm.conf:

NODM_USER='sevaho'

NODM_X_OPTIONS='vt7 -nolisten tcp'

NODM_MIN_SESSION_TIME=600

NODM_RESTART_SESSION=0

NODM_XINIT='/usr/bin/xinit'

NODM_XSESSION='/home/sevaho/.xinitrc'

.xinitrc:
(is executable: -rwxr-xr-x)

export XDG_CURRENT DESKTOP=i3
exec i3 -V >> ~/.i3logs/i3log-$(date +'%F-%k-%M-%S') 2>&1

I enabled nodm.service in systemd

/etc/pam.d/nodm

#%PAM-1.0

auth      include  system-login
account   include  system-login
password  include  system-login
session   include  system-login

Here is my journalctl (reverse order)

Feb 01 19:42:53 sevahoLittlePc systemd[1]: nodm.service: Failed with result 'timeout'.
Feb 01 19:42:53 sevahoLittlePc systemd[1]: nodm.service: Unit entered failed state.
Feb 01 19:42:53 sevahoLittlePc systemd[1]: Stopped nodm display manager.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Main process exited, code=killed, status=9/KILL
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 27034 (n/a) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 27032 (bandwidth) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 27031 (bandwidth) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 26887 (termite) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 26386 (i3blocks) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 26382 (i3bar) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 26374 (i3) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 26372 (nodm) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 26304 (Xorg) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: Killing process 259 (nodm) with signal SIGKILL.
Feb 01 19:42:51 sevahoLittlePc systemd[1]: nodm.service: State 'stop-sigterm' timed out. Killing.
Feb 01 19:41:26 sevahoLittlePc systemd[1]: Stopped D-Bus System Message Bus.
Feb 01 19:41:26 sevahoLittlePc systemd[1]: Stopped Authorization Manager.
Feb 01 19:41:26 sevahoLittlePc systemd[1]: Stopping Authorization Manager...
Feb 01 19:41:26 sevahoLittlePc systemd[1]: Stopping D-Bus System Message Bus...
Feb 01 19:41:26 sevahoLittlePc systemd[1]: Stopped firewalld - dynamic firewall daemon.
Feb 01 19:41:25 sevahoLittlePc kernel: Ebtables v2.0 unregistered
ERROR -> Feb 01 19:41:25 sevahoLittlePc nodm[26372]: pam_systemd(nodm:session): Failed to create session: Refusing activation, D-Bus is shutting down.
Feb 01 19:41:25 sevahoLittlePc dbus[253]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.login1.service': Refusing activation, D-Bus is shutting do
Feb 01 19:41:25 sevahoLittlePc dbus[253]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
Feb 01 19:41:25 sevahoLittlePc nodm[26372]: pam_unix(nodm:session): session opened for user sevaho by (uid=0)
Feb 01 19:41:25 sevahoLittlePc nodm[26372]: Successful su on ??? for sevaho by root
Feb 01 19:41:25 sevahoLittlePc nodm[26372]: Authentication failure (Ignored)
Feb 01 19:41:25 sevahoLittlePc nodm[259]: System is going down.
Feb 01 19:41:23 sevahoLittlePc nodm[259]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Feb 01 19:41:23 sevahoLittlePc nodm[259]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Feb 01 19:41:23 sevahoLittlePc nodm[259]: (==) Log file: "/var/log/Xorg.0.log", Time: Wed Feb  1 19:41:23 2017
Feb 01 19:41:23 sevahoLittlePc nodm[259]:         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Feb 01 19:41:23 sevahoLittlePc nodm[259]:         (++) from command line, (!!) notice, (II) informational,
Feb 01 19:41:23 sevahoLittlePc nodm[259]: Markers: (--) probed, (**) from config file, (==) default setting,
Feb 01 19:41:23 sevahoLittlePc nodm[259]:         to make sure that you have the latest version.
Feb 01 19:41:23 sevahoLittlePc nodm[259]:         Before reporting problems, check [url]http://wiki.x.org[/url]
Feb 01 19:41:23 sevahoLittlePc nodm[259]: Current version of pixman: 0.34.0
Feb 01 19:41:23 sevahoLittlePc nodm[259]:
Feb 01 19:41:23 sevahoLittlePc nodm[259]: Build Date: 12 January 2017  07:11:40AM
Feb 01 19:41:23 sevahoLittlePc nodm[259]: Kernel command line: initrd=\initramfs-linux.img initrd=\intel-ucode.img root=PARTUUID=9e7311d4-298b-4ee3-8df1-1abe4ddba00f rw
Feb 01 19:41:23 sevahoLittlePc nodm[259]: Current Operating System: Linux sevahoLittlePc 4.9.6-1-ARCH #1 SMP PREEMPT Thu Jan 26 09:22:26 CET 2017 x86_64
Feb 01 19:41:23 sevahoLittlePc nodm[259]: Build Operating System: Linux 4.8.14-1-ARCH x86_64
Feb 01 19:41:23 sevahoLittlePc nodm[259]: X Protocol Version 11, Revision 0
Feb 01 19:41:23 sevahoLittlePc nodm[259]: Release Date: 2017-01-11
Feb 01 19:41:23 sevahoLittlePc nodm[259]: X.Org X Server 1.19.1
Feb 01 19:41:23 sevahoLittlePc nodm[259]: restarting session
Feb 01 19:41:23 sevahoLittlePc systemd[1]: Stopping firewalld - dynamic firewall daemon...
Feb 01 19:41:23 sevahoLittlePc systemd[1]: Stopped target Network (Pre).
Feb 01 19:41:23 sevahoLittlePc systemd[1]: Removed slice system-netctl.slice.
Feb 01 19:41:23 sevahoLittlePc nodm[259]: (II) Server terminated successfully (0). Closing log file.

Anyone know how to fix this, or tell me if I did something wrong?

Last edited by sevaho (2017-02-02 11:07:51)

Offline

#2 2017-06-25 19:16:36

r-darwish
Member
Registered: 2013-12-16
Posts: 12

Re: Slow poweroff with nodm Failed to create session: Refusing activation

Offline

Board footer

Powered by FluxBB