You are not logged in.

#1 2013-02-03 21:26:22

pgrond
Member
Registered: 2011-06-27
Posts: 10

[Solved]No active session with systemd-logind

I've read all the posts on the forum about sytemd and active sessions but I can't seem to get it working.

I'm on a up to date Arch, complete systemd. I'm using GDM as DM and latest version of Gnome.

Output of loginctl show-session $XDG_SESSION_ID

 1 Id=2
      2 Timestamp=Sun 2013-02-03 21:53:16 CET
      3 TimestampMonotonic=14881075
      4 DefaultControlGroup=name=systemd:/user/peter/2
      5 VTNr=0
      6 Display=:0
      7 Remote=no
      8 Service=gdm-password
      9 Leader=2712
     10 Audit=2
     11 Type=x11
     12 Class=user
     13 Active=no
     14 State=online
     15 KillProcesses=no
     16 IdleHint=no
     17 IdleSinceHint=0
     18 IdleSinceHintMonotonic=0
     19 Name=peter

Output of systemctl list-unit-files |grep enabled

cups.path                                   enabled 
acpid.service                               enabled 
chrony.service                              enabled 
cronie.service                              enabled 
cups.service                                enabled 
dbus-org.freedesktop.NetworkManager.service enabled 
display-manager.service                     enabled 
dkms.service                                enabled 
gdm.service                                 enabled 
getty@.service                              enabled 
httpd.service                               enabled 
lm_sensors.service                          enabled 
mysqld.service                              enabled 
NetworkManager.service                      enabled 
postfix.service                             enabled 
preload.service                             enabled 
rsyslog.service                             enabled 
syslog.service                              enabled 
systemd-readahead-collect.service           enabled 
systemd-readahead-drop.service              enabled 
systemd-readahead-replay.service            enabled 
thinkfan.service                            enabled 
tlp-init.service                            enabled 
tomcat6.service                             enabled 
truecrypt@.service                          enabled 
unload.service                              enabled 
upower.service                              enabled 
acpid.socket                                enabled 
cups.socket                                 enabled 
remote-fs.target                            enabled

Output of ls -lR /etc/systemd/system

/etc/systemd/system:
total 52K
drwxr-xr-x 2 root root 4.0K Nov  1 22:52 cryptsetup.target.wants/
lrwxrwxrwx 1 root root   46 Sep 24 22:02 dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
drwxr-xr-x 2 root root 4.0K Feb  3 21:42 default.target.wants/
lrwxrwxrwx 1 root root   35 Jan 28 23:33 display-manager.service -> /usr/lib/systemd/system/gdm.service
drwxr-xr-x 2 root root 4.0K Nov  8 09:10 getty.target.wants/
drwxr-xr-x 2 root root 4.0K Nov  3 20:36 graphical.target.wants/
drwxr-xr-x 2 root root 4.0K Jan 13 16:58 local-fs.target.wants/
drwxr-xr-x 2 root root 4.0K Feb  3 21:42 multi-user.target.wants/
drwxr-xr-x 2 root root 4.0K Oct  9 09:49 printer.target.wants/
-rw-r--r-- 1 root root  216 Feb  3 21:09 rc-local.service
drwxr-xr-x 2 root root 4.0K Nov  7 23:28 shutdown.target.wants/
drwxr-xr-x 2 root root 4.0K Nov  3 20:43 sockets.target.wants/
drwxr-xr-x 2 root root 4.0K Jan 13 16:58 sysinit.target.wants/
lrwxrwxrwx 1 root root   39 Nov  3 20:39 syslog.service -> /usr/lib/systemd/system/rsyslog.service
drwxr-xr-x 2 root root 4.0K Feb  3 21:42 system-update.target.wants/
-rw-r--r-- 1 root root  166 Nov  7 23:28 unload.service

/etc/systemd/system/cryptsetup.target.wants:
total 0
lrwxrwxrwx 1 root root 42 Nov  1 22:52 truecrypt@dev-sdb1.service -> /usr/lib/systemd/system/truecrypt@.service

/etc/systemd/system/default.target.wants:
total 0
lrwxrwxrwx 1 root root 57 Feb  3 21:42 systemd-readahead-collect.service -> /usr/lib/systemd/system/systemd-readahead-collect.service
lrwxrwxrwx 1 root root 56 Feb  3 21:42 systemd-readahead-replay.service -> /usr/lib/systemd/system/systemd-readahead-replay.service

/etc/systemd/system/getty.target.wants:
total 0
lrwxrwxrwx 1 root root 38 Nov  8 09:10 getty@tty1.service -> /usr/lib/systemd/system/getty@.service

/etc/systemd/system/graphical.target.wants:
total 0
lrwxrwxrwx 1 root root 40 Sep 26 22:31 tlp-init.service -> /usr/lib/systemd/system/tlp-init.service
lrwxrwxrwx 1 root root 38 Nov  3 20:36 upower.service -> /usr/lib/systemd/system/upower.service

/etc/systemd/system/local-fs.target.wants:
total 0

/etc/systemd/system/multi-user.target.wants:
total 0
lrwxrwxrwx 1 root root 37 Nov  3 20:43 acpid.service -> /usr/lib/systemd/system/acpid.service
lrwxrwxrwx 1 root root 38 Nov  7 23:10 chrony.service -> /usr/lib/systemd/system/chrony.service
lrwxrwxrwx 1 root root 38 Sep 24 22:04 cronie.service -> /usr/lib/systemd/system/cronie.service
lrwxrwxrwx 1 root root 33 Oct  9 09:49 cups.path -> /usr/lib/systemd/system/cups.path
lrwxrwxrwx 1 root root 36 Oct 11 18:03 dkms.service -> /usr/lib/systemd/system/dkms.service
lrwxrwxrwx 1 root root 37 Sep 26 18:54 httpd.service -> /usr/lib/systemd/system/httpd.service
lrwxrwxrwx 1 root root 42 Jan 14 22:47 lm_sensors.service -> /usr/lib/systemd/system/lm_sensors.service
lrwxrwxrwx 1 root root 38 Nov  8 10:53 mysqld.service -> /usr/lib/systemd/system/mysqld.service
lrwxrwxrwx 1 root root 46 Sep 24 22:02 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root 39 Oct  3 12:00 postfix.service -> /usr/lib/systemd/system/postfix.service
lrwxrwxrwx 1 root root 39 Oct  1 23:21 preload.service -> /usr/lib/systemd/system/preload.service
lrwxrwxrwx 1 root root 40 Jan 13 16:58 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 39 Nov  3 20:39 rsyslog.service -> /usr/lib/systemd/system/rsyslog.service
lrwxrwxrwx 1 root root 40 Sep 24 22:21 thinkfan.service -> /usr/lib/systemd/system/thinkfan.service
lrwxrwxrwx 1 root root 39 Oct  5 16:27 tomcat6.service -> /usr/lib/systemd/system/tomcat6.service

/etc/systemd/system/printer.target.wants:
total 0
lrwxrwxrwx 1 root root 36 Oct  9 09:49 cups.service -> /usr/lib/systemd/system/cups.service

/etc/systemd/system/shutdown.target.wants:
total 0
lrwxrwxrwx 1 root root 34 Nov  7 23:28 unload.service -> /etc/systemd/system/unload.service

/etc/systemd/system/sockets.target.wants:
total 0
lrwxrwxrwx 1 root root 36 Nov  3 20:43 acpid.socket -> /usr/lib/systemd/system/acpid.socket
lrwxrwxrwx 1 root root 35 Oct  9 09:49 cups.socket -> /usr/lib/systemd/system/cups.socket

/etc/systemd/system/sysinit.target.wants:
total 0

/etc/systemd/system/system-update.target.wants:
total 0
lrwxrwxrwx 1 root root 54 Feb  3 21:42 systemd-readahead-drop.service -> /usr/lib/systemd/system/systemd-readahead-drop.service

The solution posted here https://bbs.archlinux.org/viewtopic.php … 0#p1186900 with the rc.local compatubility service does work in a way. I created an empty rc.local file and made it executable. Now GDM is not starting until I hit CTRL-C, and after that my session is active!

I use the latest version of Polkit and initscripts is not installed.

Any tip is welcome!

Last edited by pgrond (2013-02-24 17:55:31)

Offline

#2 2013-02-06 21:41:41

pgrond
Member
Registered: 2011-06-27
Posts: 10

Re: [Solved]No active session with systemd-logind

Bump

Offline

#3 2013-02-06 21:48:37

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

Re: [Solved]No active session with systemd-logind


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-02-06 22:06:31

pgrond
Member
Registered: 2011-06-27
Posts: 10

Re: [Solved]No active session with systemd-logind

I've read that post but I can't get it fixed. I don't need any rc-local compatibility. I'm on a complete systemd system, so I don't get why I would need this.

If I create a dummy rc-local service GDM won't start. But after a CTRL-C it will start and the session is active. Can it be some sort of race condition?

Or can it be a problem that my home partition is encrypted and mounted on login?

Offline

#5 2013-02-06 22:09:05

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

Re: [Solved]No active session with systemd-logind

You don't need the rc-local hack.

As someone points out in that thread, it should work with GDM/Gnome, so I would be trawling through any customizations to determine what has borked it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2013-02-22 21:57:00

pgrond
Member
Registered: 2011-06-27
Posts: 10

Re: [Solved]No active session with systemd-logind

Still haven't found what is causing this. The pam files for GDM are default, reinstalled GDM. The only thing that is custom is an encrypted home partition that gets mounted wit pam_mount.

Do you know what kind of customization could cause it?

Offline

#7 2013-02-24 17:57:12

pgrond
Member
Registered: 2011-06-27
Posts: 10

Re: [Solved]No active session with systemd-logind

Marking this as solved. There was a problem with the truecrypt service. That had StandardInput=tty-force in it. That was messing up stuff. Don't know why exactly, but disabling it solved this issue.
Mounting of encrypted volumes is done with pam, so I didn't needed that service anyway.

Offline

Board footer

Powered by FluxBB