You are not logged in.

#51 2021-12-12 09:22:02

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

Update:sudo pacman -Suy
No errors found
Reinstalled the 3 packages with -S option
Now finally startx open graphic with 3 xterm.
I tried to reinstall lxde lxdm but login doesn't appear and desktop appear with error No session for pid 326 briefly alternating with boot log
Moreover in the xorg.0.log 4 errors:
Failed to load modules nouveau, NV, fbdev, vesa

Last edited by Flavio (2021-12-12 09:50:52)

Offline

#52 2021-12-12 12:07:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,310

Re: lxdm.log Fatal server error:Server is already active for display 0

Post the actual log. These three modules failing to load is completely normal and expected.

Offline

#53 2021-12-12 12:16:22

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

So the Xorg.0.log is here:
http://ix.io/3HOB

Offline

#54 2021-12-12 12:38:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

Now finally startx open graphic with 3 xterm.

We fixed the mess that you made out of your driver installation. Do not try to use the pacman bypassing nvidia-install script again.

The server X11 server runs fine.

I tried to reinstall lxde lxdm but login doesn't appear and desktop appear with error No session for pid 326 briefly alternating with boot log

Post the complete system journal…

Offline

#55 2021-12-12 12:38:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,310

Re: lxdm.log Fatal server error:Server is already active for display 0

From a xorg perspective everything works correctly, what are you trying to start? Post a journal

sudo journalctl -b

Offline

#56 2021-12-12 13:53:43

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

@V1del i've tried to start GUI with lxde, but due the error i've uninstalled it to get console back.
sudo journalctl -b
http://ix.io/3HPV

Offline

#57 2021-12-12 13:56:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

dic 12 14:43:09 arch startx[309]: xinit: Unable to run program "/usr/bin/startlxde": No such file or directory

The interesting journal would oc. be the one covering the failed lxdm attempt…

You can access older journals w/ "… -b -1" for the previous one and increase the digit to go back in time.

Offline

#58 2021-12-12 14:39:26

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

searched in the journal history where lxdm fail, here the output:
http://ix.io/3HQq

Offline

#59 2021-12-12 14:50:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

dic 12 14:40:02 arch startx[282]: This is a pre-release version of the X server from The X.Org Foundation.
…
dic 12 14:40:10 arch lxsession[304]: main.vala:134: log directory: /root/.cache/lxsession/LXDE
…
dic 12 14:40:15 arch systemd[1]: lxdm.service: Main process exited, code=exited, status=1/FAILURE
dic 12 14:40:15 arch systemd[1]: lxdm.service: Failed with result 'exit-code'.

Why is there a "startx" that runs "lxsession" as root?
Remove that. If lxdm still fails to start, let it and check the service status afterwards. But I guess it just doesn't like the parallel X11 server.

Offline

#60 2021-12-12 15:25:53

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

I don't know why startx run lxsession ad root
How can i remove it?

Offline

#61 2021-12-12 16:17:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

Neither does any of us.
But I guess you're somehow (auto?) logging in as root and that .bashrc has a startx trigger?

How can i remove it?

How did you actually install archlinux?

Offline

#62 2021-12-12 17:52:22

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

Specifically i don't remember as i installed it.
However many configuration files are not be setted as bashrc that was empty.
So please help me to make right configurations

Interesting is /root/.cache/lxsession/LXDE/run.log reporting errors about:
http://ix.io/3HT6

Last edited by Flavio (2021-12-12 18:53:58)

Offline

#63 2021-12-12 20:47:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

iow you used some install script, youtube tutorial or a derivate…

My best guess is that you added some startx call to one of the lxdm scripts, https://wiki.archlinux.org/title/LXDM#Configuration but neither you nor any of use knows how you actually fucked up the setup.

In case it didn't occur to you over the past 60+ posts: you're using the wrong distribution.
You're completely unable to maintain the system yourself and will need a distribution that sets up a specific configuration for you that you then "just use" and whenever you've sufficiently screwed up that system, just re-install.

Offline

#64 2021-12-12 21:12:32

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

My aim was to have a  linux distribution rolling, debian have rolling but is unstable.
I'll try to solve the problem but never have been screwed by debian neither centos that was running on this laptop

Offline

#65 2021-12-12 21:17:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

You've screwed this system yourself by steamrolling incompatible nvidia drivers over it.
Did you check the lxdm scripts?

Offline

#66 2021-12-12 21:59:21

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

yes initially there was nouveau with kernel linux 5.13 but GUI not working.
So i have used nvidia-340xx patched to work with this kernel.
But after i need rolling i.e linux-lts and have installed it and worked with the proprietary driver until an upgrade destroy the GUI.
No, what script i have to check?
here my lxdm.conf: http://ix.io/3HUw
NB i want repair the system keeping the installed softwares if possible. Only one user without particolar configurations.

Last edited by Flavio (2021-12-13 07:32:34)

Offline

#67 2021-12-13 07:39:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

until an upgrade destroy the GUI.

Because https://wiki.archlinux.org/title/NVIDIA … ed_drivers

No, what script i have to check?

The ones pointed out in the wiki I linked, however

…
autologin=dgod

## uncomment and set timeout to enable timeout autologin,
## the value should >=5
# timeout=10

## default session or desktop used when no systemwide config
 session=/usr/bin/startlxde
…

D'ohh.

id dgod

Read the last sentence in https://wiki.archlinux.org/title/LXDM#Autologin

Again: You. Are. Using. The. Wrong. Distribution.

Offline

#68 2021-12-13 09:48:17

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

I'll post all the config files of lxdm
I'm new in arch please...

Offline

#69 2021-12-13 10:18:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,310

Re: lxdm.log Fatal server error:Server is already active for display 0

We have the config file, the config file is misconfigured unless you literally have the normal user dgod on your system.

While it's somewhat admirable that you haven't thrown in the towel yet, I'd have to agree with seth, you seem to have trouble with very basic troubleshooting steps or are not completely interpreting/reading the instructions given here or on the wiki. While you might be able to solve this in the shortterm you are more than likely to run into much different and more problematic issues down the line and Arch Linux is really not a good distribution to start with if you have this much trouble configuring basic aspects of your system.

Offline

#70 2021-12-13 21:43:34

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

excuse for mistake i don't want autologin so i've commented out it, here the lxdm.conf
http://ix.io/3Iif
yesterday I was out of mind,
below the scripts contained in /etc/lxdm/ as described in the wiki (not modified):
LoginReady= Postlogin=Postlogout=Prelogin=PreReboot= http://ix.io/3Iii
Xsession= http://ix.io/3Iij

The same problem as before: cannot get GUI login and error  "No session for pid 326" : I'll see this pid to which daemon is related....

Last edited by Flavio (2021-12-14 08:02:42)

Offline

#71 2021-12-14 08:08:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

Please post an updated system journal  covering a failed lxdm start…

Offline

#72 2021-12-14 18:37:02

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

This is the latest journal:
http://ix.io/3IpO
While the error "No session for pid" is related to lxpolkit
Doing ps -aux appear Xorg <defunct> ??????????? as reported here:
http://ix.io/3IpR

Offline

#73 2021-12-14 21:25:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

root         267  0.0  0.1   7348  3700 ?        Ss   19:17   0:00 /bin/sh /usr/bin/startx /usr/bin/startlxde
dbus         268  0.1  0.2  12300  5984 ?        Ss   19:17   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root         269  0.1  0.6 258152 18792 ?        Ssl  19:17   0:00 /usr/bin/NetworkManager --no-daemon
root         270  0.0  0.2  30820  6024 ?        Ss   19:17   0:00 /usr/lib/systemd/systemd-logind
root         287  0.0  0.0   3908  1180 ?        S    19:17   0:00 xinit /usr/bin/startlxde -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.oQcU4ETqRj
root         288  3.5  2.6 383024 76532 tty2     S<sl+ 19:17   0:04 /usr/lib/Xorg -nolisten tcp :0 -auth /tmp/serverauth.oQcU4ETqRj
dic 14 19:17:38 arch systemd[1]: Started User Login Management.
dic 14 19:17:38 arch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-logind comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
dic 14 19:17:39 arch NetworkManager[269]: <info>  [1639505859.3098] NetworkManager (version 1.32.12-1) is starting... (for the first time)
dic 14 19:17:39 arch NetworkManager[269]: <info>  [1639505859.3099] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 20-connectivity.conf)
dic 14 19:17:39 arch startx[288]: This is a pre-release version of the X server from The X.Org Foundation.
…
dic 14 19:17:39 arch systemd[1]: Started LXDE Display Manager.
…
dic 14 19:17:40 arch systemd[1]: Reached target Multi-User System.
…
dic 14 19:17:40 arch systemd[1]: Reached target Graphical Interface.
…
dic 14 19:17:47 arch lxsession[308]: main.vala:102: Session is LXDE
dic 14 19:17:47 arch lxsession[308]: main.vala:103: DE is LXDE
dic 14 19:17:48 arch lxsession[308]: main.vala:134: log directory: /root/.cache/lxsession/LXDE
dic 14 19:17:48 arch lxsession[308]: main.vala:135: log path: /root/.cache/lxsession/LXDE/run.log
dic 14 19:17:48 arch lxsession[308]: environement.vala:58: Exporting primary_variable
dic 14 19:17:48 arch lxsession[308]: environement.vala:59: desktop_environnement XDG_CURRENT_DESKTOP
…
dic 14 19:17:48 arch lxsession[308]: app.vala:76: Launching /usr/bin/ssh-agent 
dic 14 19:17:49 arch lxsession[308]: main.vala:507: Could not acquire name
dic 14 19:17:49 arch lxsession[308]: app.vala:130: /usr/bin/ssh-agent exit with this type of exit: 0
…
dic 14 19:17:52 arch systemd[1]: lxdm.service: Main process exited, code=exited, status=1/FAILURE
dic 14 19:17:52 arch systemd[1]: lxdm.service: Failed with result 'exit-code'.
dic 14 19:17:52 arch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lxdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
dic 14 19:17:52 arch kernel: audit: type=1131 audit(1639505872.406:37): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lxdm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
…
dic 14 19:17:52 arch systemd[1]: Stopped LXDE Display Manager.

You're most likely performing an autologin as root and as that "startx /usr/bin/startlxde", lxdm fails across - and I assume because of - that.

systemctl show getty@tty1.service
grep root /etc/passwd
sudo grep -r startx /root /etc

Offline

#74 2021-12-14 22:39:07

Flavio
Member
Registered: 2021-12-06
Posts: 41

Re: lxdm.log Fatal server error:Server is already active for display 0

systemctl show getty@tty1.service
http://ix.io/3Ir1

grep root /etc/passwd
root:x:0:0::/root:/bin/bash

sudo grep -r startx /root /etc
http://ix.io/3Ir3

Offline

#75 2021-12-14 22:48:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,376

Re: lxdm.log Fatal server error:Server is already active for display 0

/etc/systemd/system/boot_desktop.service:ExecStart=startx /usr/bin/startlxde

wtf is that?

Offline

Board footer

Powered by FluxBB