You are not logged in.

#1 2014-08-05 11:13:09

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Xorg.0.log: "failed to get session"

I am seeing this scary error message in Xorg.0.log:

# less /var/log/Xorg.0.log | grep EE
(...)
[     4.078] (EE) systemd-logind: failed to get session: PID 587 does not belong to any known session

Is there anything I can do about it?

Offline

#2 2014-08-05 18:05:47

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

Re: Xorg.0.log: "failed to get session"

Some more information?

What is PID 587? Does X start? How do you start X? etc.,
How To Ask Questions The Smart Way


Not a Sysadmin issue: moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-08-05 22:44:49

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: Xorg.0.log: "failed to get session"

I am starting X with kdm.service and it works.
lsof says PID 565 (after a restart) belongs to Xorg.bin and refers to 303 opened files.

I am curious as to why X is confused.

Offline

#4 2014-08-06 12:44:24

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 82

Re: Xorg.0.log: "failed to get session"

I get a similar error at startup

[    18.859] (EE) systemd-logind: failed to get session: PID 354 does not belong to any known session

That PID is attached to tty7, that is the terminal in which my Xsession runs:

354 tty7     Ss+    0:09 /usr/bin/Xorg.bin -nolisten tcp vt07 -auth /var/run/s

Offline

#5 2014-08-06 13:18:15

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 82

Re: Xorg.0.log: "failed to get session"

Maybe it has to do with my using SLIM as display manager (for my XFCE desktop environment). I just discovered that SLIM has not been maintained for quite a while. I will try LXDM and see if the error persists.

Offline

#6 2014-08-06 13:55:30

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 82

Re: Xorg.0.log: "failed to get session"

So it wasn't SLIM. I've installed LXDM and that works fine now, but the error is still there

[    17.293] (EE) systemd-logind: failed to get session: PID 287 does not belong to any known session

Just to be clear: despite the error XFCE was starting properly under SLIM as it does now under LXDM.

Last edited by zilverling (2014-08-06 14:08:20)

Offline

#7 2014-08-06 15:20:24

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Xorg.0.log: "failed to get session"

Possibly it is due to using a display manager with xorg-server 1.16.
Is the server running rootless?
It should not because 'Please note that launching X through a login-manager (gdm, kdm, ...) doesn't yet provide rootless access.' in the news message.

Offline

#8 2014-08-06 15:27:35

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: Xorg.0.log: "failed to get session"

zilverling wrote:

So it wasn't SLIM. I've installed LXDM and that works fine now, but the error is still there.

Interesting. This is obviously not a Newbie issue.

I am wondering if this is a bug in systemd. Also, my AMD video card, an ASUS_R9_270X_4GB, is kinda new, only(!) about 14 months old and the open-source driver is still lacking in its support for it. X, i.e. Xorg.0.log, does not list it as supported either.

Offline

#9 2014-08-06 16:10:25

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: Xorg.0.log: "failed to get session"

berbae wrote:

Possibly it is due to using a display manager with xorg-server 1.16.
Is the server running rootless? (...)

In my case, with kdm, X is running from root.

Offline

#10 2014-08-06 16:47:45

zilverling
Member
From: Bennekom, Netherlands
Registered: 2009-08-19
Posts: 82

Re: Xorg.0.log: "failed to get session"

I just saw that

X is now rootless with the help of systemd-logind, this also means that it must be launched from the same virtual terminal as was used to log in, redirecting stderr also breaks rootless login. The old root execution behavior can be restored through the Xorg.wrap config file (man xorg.wrap). Please note that launching X through a login-manager (gdm, kdm, ...) doesn't yet provide rootless access.

Source: xorg-server 1.16 is now available, 2014-07-28 - Laurent Carlier

A good chance that our error has to do with that somehow. As my XFCE desktop is properly starting, I'm not too worried about this error message, but I would like to know why it is generated as it might point to some fundamental issue.

Last edited by zilverling (2014-08-06 17:58:07)

Offline

#11 2014-08-06 18:01:36

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: Xorg.0.log: "failed to get session"

Hi zilverling, seeing that Xorg.0.log is referring to systemd-logind, I think you are on to something and that we probably just have to wait for support of the various login managers.

Offline

Board footer

Powered by FluxBB