View previous topic :: View next topic |
Author |
Message |
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Mon Feb 23, 2015 9:12 am Post subject: rc-service xdm failing |
|
|
Hi,
the xdm service fails at start, there is no X server. However lightdm and startx (Xfce) as user are working fine.
Code: | # cat /etc/conf.d/xdm |grep -v "^#"
CHECKVT=7
DISPLAYMANAGER="lightdm" |
I checked the following logs after failing xdm but none of them was touched:
Code: | /var/log/Xorg.*
/var/log/lightdm* |
What else to check? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Mon Feb 23, 2015 9:32 am Post subject: Re: rc-service xdm failing |
|
|
What are the messages you receive on /etc/init.d/xdm start? |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Mon Feb 23, 2015 10:20 am Post subject: |
|
|
Weird, x11-apps/xdm was not installed and was never accoring to genlop logs... I can remember xdm was working some time ago.
Does xdm need to be added to world explicitly? Can't remember having ever added xdm.
Ok, installed xdm. But still the service does not start. Manually starting xdm brings some unconfigured xdm login, fine.
rc-service xdm restart says:
Code: | * Stopping lightdm ...
* start-stop-daemon: no matching processses found
* Setting up lighdm ... |
_________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Mon Feb 23, 2015 10:40 am Post subject: |
|
|
Massimo B. wrote: | Weird, x11-apps/xdm was not installed and was never accoring to genlop logs... I can remember xdm was working some time ago.
Does xdm need to be added to world explicitly? Can't remember having ever added xdm. | When you use lightdm there should be no need at all for installing xdm. Did you read http://wiki.gentoo.org/wiki/Lightdm? |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Mon Feb 23, 2015 10:52 am Post subject: |
|
|
lightdm does not depend on xdm and does not provide some xdm executable.
However I deinstalled xdm again, and re-installed lightdm. Yes, I read that guide. dbus is running and restarting fine. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Mon Feb 23, 2015 11:07 am Post subject: |
|
|
Starting up xdm manually as root, brings some unconfigured xdm, but login as user there also does not work, and using -debug 3 gives some pam_mount error in the logs:
Code: | Done dispatch :0
(pam_mount.c:262): could not get userxdm error (pid 15821): pam_authenticate failure: Error in service module
Unsecure display :0
Greet connection closed
(pam_mount.c:706): received order to close things
(pam_mount.c:709): No volumes to umount
-:0 : pam_mount.c:418: modify_pm_count: Assertion `user != ((void *)0)' failed.
Manager wait returns pid: 15821 sig 6 core 0 code 0
Display exited with unknown status 1536
xdm error (pid 15815): Unknown session exit code 1536 from process 15821
WaitForSomething
signals blocked
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 187 requests (184 known processed) with 0 events remaining.
(II) Server terminated successfully (0). Closing log file.
Manager wait returns pid: 15817 sig 0 core 0 code 0
Zombie server reaped, removing display :0
Nothing left to do, exiting
xdm info (pid 15815): Exiting
unlinking process ID file /var/run/xdm.pid |
rc-service does use lightm user for the lighdm, maybe some permission issue or pam issue there. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Mon Feb 23, 2015 11:14 am Post subject: |
|
|
Are you getting the same errors using x11-apps/xdm instead of lightdm? |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Mon Feb 23, 2015 11:35 am Post subject: |
|
|
Wait, I thought I need x11-apps/xdm in order to run rc-service xdm with lightdm?
Starting lightdm manually gives a different error, but maybe due to different debug level: "Failed during authentication"
Code: | [+0.22s] DEBUG: Activating ConsoleKit session 7bbe58a762a694c004c3223f0000270c-1424691071.989000-1225340051
[+0.22s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.DBus.GLib.UnmappedError.CkVtMonitorError.Code0: Session is already active
[+0.32s] DEBUG: Session pid=22082: Greeter connected version=1.12.2 resettable=false
[+0.47s] DEBUG: Session pid=22082: Greeter start authentication
[+0.47s] DEBUG: Session pid=22098: Started with service 'lightdm', username '(null)'
[+0.48s] DEBUG: Session pid=22098: Got 1 message(s) from PAM
[+0.48s] DEBUG: Session pid=22082: Prompt greeter with 1 message(s)
[+2.35s] DEBUG: Session pid=22082: Greeter start authentication for mb
[+2.35s] DEBUG: Session pid=22098: Sending SIGTERM
[+2.35s] DEBUG: Session pid=22100: Started with service 'lightdm', username 'mb'
[+2.35s] DEBUG: Session pid=22098: Terminated with signal 15
[+2.35s] DEBUG: Session: Failed during authentication
[+2.35s] DEBUG: Seat seat0: Session stopped
[+2.36s] DEBUG: Session pid=22100: Got 1 message(s) from PAM
[+2.36s] DEBUG: Session pid=22082: Prompt greeter with 1 message(s)
[+5.77s] DEBUG: Session pid=22082: Continue authentication
[+5.87s] DEBUG: Session pid=22100: Authentication complete with return value 0: Success
[+5.87s] DEBUG: Session pid=22082: Authenticate result for user mb: Success
[+5.87s] DEBUG: Session pid=22082: User mb authorized
[+5.87s] DEBUG: Session pid=22082: Greeter sets language de_DE.utf8
[+5.97s] DEBUG: Session pid=22082: Greeter requests session xfce
[+5.97s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+5.97s] DEBUG: Session pid=22082: Sending SIGTERM
[+6.02s] DEBUG: Session pid=22082: Greeter closed communication channel
[+6.02s] DEBUG: Session pid=22082: Exited with return value 0
[+6.02s] DEBUG: Seat seat0: Session stopped
[+6.02s] DEBUG: Seat seat0: Greeter stopped, running session
[+6.02s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+6.02s] DEBUG: Session pid=22100: Running command /etc/lightdm/Xsession startxfce4
[+6.02s] DEBUG: Creating shared data directory /var/lib/lightdm-data/mb
[+6.02s] DEBUG: Session pid=22100: Logging to .xsession-errors
[+9.12s] DEBUG: Activating VT 7 |
_________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Mon Feb 23, 2015 11:52 am Post subject: |
|
|
Massimo B. wrote: | Wait, I thought I need x11-apps/xdm in order to run rc-service xdm with lightdm? |
Some file names are confusing. In fact, /etc/init.d/xdm belongs to xorg-server, not to x11-apps/xdm: Quote: | $ equery f xorg-server | grep xdm
/etc/conf.d/xdm
/etc/init.d/xdm
/etc/init.d/xdm-setup |
|
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Fri Feb 27, 2015 4:37 pm Post subject: |
|
|
I thought this could be related, but it did not help... _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Sun Mar 01, 2015 10:19 am Post subject: |
|
|
The next host is damaged here by some recent updates.
Code: | $ genlop --list --date 8 days ago
!!! Section 'portage_vmgentoo-mb' in repos.conf has name different from repository name 'portage_mobalindesk' set inside repository
using logfile /var/log/emerge.log
using logfile /var/log/emerge.log.1.bz2
* packages merged:
Sun Feb 22 18:15:01 2015 >>> sys-kernel/linux-headers-3.19
Sun Feb 22 18:43:48 2015 >>> sys-libs/glibc-2.20-r2
Sun Feb 22 18:44:10 2015 >>> dev-libs/libltdl-2.4.6
Sun Feb 22 18:44:56 2015 >>> dev-libs/mpc-1.0.3
Sun Feb 22 18:45:08 2015 >>> sys-devel/binutils-config-4-r2
Sun Feb 22 18:45:24 2015 >>> dev-libs/vala-common-0.26.2
Sun Feb 22 18:45:41 2015 >>> sys-libs/timezone-data-2015a
Sun Feb 22 18:51:58 2015 >>> dev-lang/perl-5.20.2
Sun Feb 22 18:52:49 2015 >>> sys-devel/libtool-2.4.6
Sun Feb 22 18:53:01 2015 >>> virtual/perl-File-Spec-3.480.100-r1
Sun Feb 22 18:57:24 2015 >>> dev-libs/icu-54.1-r1
Sun Feb 22 18:57:36 2015 >>> virtual/perl-Storable-2.490.100-r1
Sun Feb 22 18:58:13 2015 >>> dev-lang/nasm-2.11.06
Sun Feb 22 18:59:53 2015 >>> media-libs/libjpeg-turbo-1.4.0
Sun Feb 22 19:00:12 2015 >>> x11-proto/xproto-7.0.27
Sun Feb 22 19:01:12 2015 >>> x11-libs/pixman-0.32.6
Sun Feb 22 19:01:32 2015 >>> x11-libs/libxshmfence-1.2
Sun Feb 22 19:02:01 2015 >>> x11-libs/libdrm-2.4.59
Sun Feb 22 19:06:22 2015 >>> dev-libs/openssl-1.0.2-r1
Sun Feb 22 19:07:18 2015 >>> dev-db/sqlite-3.8.8.2
Sun Feb 22 19:08:31 2015 >>> www-client/links-2.9
Sun Feb 22 19:11:00 2015 >>> dev-lang/python-2.7.9-r2
Sun Feb 22 19:11:59 2015 >>> dev-libs/gobject-introspection-1.42.0-r1
Sun Feb 22 19:14:05 2015 >>> dev-libs/libxml2-2.9.2
Sun Feb 22 19:14:20 2015 >>> dev-python/mako-1.0.0
Sun Feb 22 19:14:54 2015 >>> dev-libs/libgpg-error-1.18
Sun Feb 22 19:15:05 2015 >>> sys-apps/iproute2-3.19.0
Sun Feb 22 19:21:09 2015 >>> sys-devel/binutils-2.25
Sun Feb 22 19:23:57 2015 >>> x11-misc/shared-mime-info-1.4
Sun Feb 22 19:39:59 2015 >>> x11-apps/xauth-1.0.9-r2
Sun Feb 22 19:40:13 2015 >>> sys-apps/man-pages-3.80
Sun Feb 22 19:40:26 2015 >>> dev-db/mysql-5.6.23
Sun Feb 22 19:40:40 2015 >>> sys-auth/pambase-20150213
Sun Feb 22 19:41:03 2015 >>> sys-apps/openrc-0.13.11
Sun Feb 22 19:43:28 2015 >>> sys-apps/shadow-4.2.1-r1
Sun Feb 22 19:43:40 2015 >>> sys-apps/util-linux-2.26
Sun Feb 22 19:43:55 2015 >>> sys-apps/hwids-20150129
Sun Feb 22 19:56:34 2015 >>> media-libs/mesa-10.5.0_rc1
Sun Feb 22 19:58:22 2015 >>> x11-libs/cairo-1.14.0-r1
Sun Feb 22 20:00:25 2015 >>> app-text/poppler-0.31.0
Sun Feb 22 20:01:08 2015 >>> gnome-base/librsvg-2.40.7
Sun Feb 22 20:05:23 2015 >>> x11-misc/xdg-utils-1.1.0_rc3_p20150119
Sun Feb 22 20:05:35 2015 >>> media-gfx/imagemagick-6.9.0.3
Sun Feb 22 20:06:57 2015 >>> sys-apps/dbus-1.8.16
Sun Feb 22 20:08:35 2015 >>> net-print/cups-2.0.2-r1
Sun Feb 22 20:15:14 2015 >>> x11-libs/gtk+-2.24.26
Sun Feb 22 20:22:40 2015 >>> x11-libs/gtk+-3.14.8
Sun Feb 22 20:23:11 2015 >>> app-crypt/pinentry-0.9.0-r1
Sun Feb 22 20:24:16 2015 >>> app-crypt/gnupg-2.0.27
Sun Feb 22 20:24:47 2015 >>> sys-apps/portage-2.2.17
Sun Feb 22 20:26:13 2015 >>> net-print/cups-filters-1.0.65
Sun Feb 22 20:27:13 2015 >>> media-libs/harfbuzz-0.9.38 |
Could that be something about pambase? _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Sun Mar 01, 2015 11:25 am Post subject: |
|
|
Massimo B. wrote: | Could that be something about pambase? | Are you sure you really need pam? |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Sun Mar 01, 2015 11:54 am Post subject: |
|
|
I'm not sure if this is related, but I'm using the xdm initscript to launch gdm. While it works, it always shows up as "crashed". Nor does it stop properly at shutdown, but at the same time gdm does stop properly and goes back to text mode.
Code: | $ rc-status
Runlevel: default
net.eth0 [ started ]
syslog-ng [ started ]
ntp-client [ started ]
vixie-cron [ started ]
cupsd [ started ]
nfsclient [ started ]
netmount [ started ]
nfsmount [ started ]
sshd [ started ]
xdm [ crashed ]
local [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
rpcbind [ started ]
rpc.pipefs [ started ]
rpc.idmapd [ started ]
rpc.statd [ started ]
xdm-setup [ started ]
Dynamic Runlevel: manual |
So it looks bad, causes a bit of hate-mail, but generally behaves well. One of these days I may look into it, when I have spare time. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Thu Mar 19, 2015 1:54 pm Post subject: |
|
|
I still have this very annoying issue, affecting more and more of my machines.
xdm with lightdm does not start anymore. I thought it could be something about messed file permissions. lightdm as root works, startx as user also works. lightdm is set to user "lightdm" here. su - lightdm also works. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Thu Mar 19, 2015 2:44 pm Post subject: |
|
|
Do you have a file /var/log/xdm.log? If so, what does it tell? |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Fri Mar 20, 2015 7:47 am Post subject: |
|
|
Code: | (pam_mount.c:262): could not get userxdm error (pid 14580): pam_authenticate failure: Error in service module
(pam_mount.c:706): received order to close things
(pam_mount.c:709): No volumes to umount
-:0 : pam_mount.c:418: modify_pm_count: Assertion `user != ((void *)0)' failed. |
pam_mount authentication at least works for terminal user logins.
I recently merged system-auth with new changes, something wrong there?
Code: | # cat /etc/pam.d/system-auth
auth required pam_env.so
auth optional pam_mount.so
auth required pam_unix.so try_first_pass likeauth nullok
auth optional pam_permit.so
account required pam_unix.so
account optional pam_permit.so
password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password required pam_unix.so try_first_pass use_authtok nullok sha512 shadow
password optional pam_permit.so
session required pam_limits.so
session required pam_env.so
session required pam_unix.so
session optional pam_permit.so
session optional pam_mount.so |
_________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Mon Apr 13, 2015 9:29 am Post subject: |
|
|
I tried reverting to previous versions:
sys-auth/pam_mount-2.14
sys-auth/pambase-20140313
sys-apps/shadow-4.2.1
I also reverted /etc/pam.d/system-auth to previous version.
I tried disabling pam_mount completely in /etc/pam.d/system-auth.
None of the solutions did solve starting xdm.
Then mtime of /var/log/xdm.log was not even touched after rc-service xdm restart, so I wonder if that log is written at all. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
Massimo B. Veteran
Joined: 09 Feb 2005 Posts: 1768 Location: PB, Germany
|
Posted: Tue Jan 19, 2016 4:08 pm Post subject: |
|
|
Long-time issue finally solved.
I had some custom /etc/profile.d/ scripts, that were sourced. One of them did an exit instead of return for non-interactive shells. I never noticed that on usual logins but lightdm user session was broken by that. _________________ HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
|
|