You are not logged in.

#1 2013-06-13 22:36:40

GameOver69
Member
Registered: 2013-01-20
Posts: 39

Problem starting X upon boot startup!

Hey guys... odd issue starting up... lately (and out of the blue)... i cant get into X to see LXDM follwed by XFCE4.

I initially now start off at the console and have to login in that way... when i start lxdm or xfce4 manually.. i see the following:

Fatal server error:
Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.

then if i then if i remove the lock file...and try again... this is what i see:

_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

Now if i use the following command as root:

pkill -9 X

then try logging in again... it works.... at least until the next reboot.

Any suggestions on firmly resolving this issue?

Regards,

Last edited by GameOver69 (2013-06-13 22:39:00)

Offline

#2 2013-06-14 00:50:06

sup
Member
From: Earth
Registered: 2010-09-11
Posts: 21

Re: Problem starting X upon boot startup!

I'm having trouble understanding the order in which things are occurring here. Do you have LXDM enabled in systemd but get thrown to a virtual console instead? If so, do you get error messages from journalctl? If systemd is trying to start LXDM at boot but something goes wrong, you could get error messages like the ones above if you then tried to start X manually.

Offline

#3 2013-06-14 02:18:05

GameOver69
Member
Registered: 2013-01-20
Posts: 39

Re: Problem starting X upon boot startup!

sup wrote:

I'm having trouble understanding the order in which things are occurring here. Do you have LXDM enabled in systemd but get thrown to a virtual console instead? If so, do you get error messages from journalctl? If systemd is trying to start LXDM at boot but something goes wrong, you could get error messages like the ones above if you then tried to start X manually.

Indeed it is enabled in systemd... and yes i get thrown to the console.

The odd part is it doesnt happen EVERY time.. just most of the time recently... very odd.

Offline

#4 2013-06-14 02:42:57

sup
Member
From: Earth
Registered: 2010-09-11
Posts: 21

Re: Problem starting X upon boot startup!

Then of course you are going to get error messages when you try to start X saying that X is already running. That's because X is already running. Reboot, and when you get thrown to the VC, run (as root)

journalctl -b

Which will give you systemd's output since last boot. Scroll down a lot until you see output about LXDM. You should see error messages.

Alternatively, you could skip the reboot and just do

sudo journalctl | grep lxdm

(Which will search through your ENTIRE journal) Or look through ArchWiki: Systemd#Journal to find something better.

Offline

Board footer

Powered by FluxBB