[SOLVED] Displaymanager DM does not start

[SOLVED] Displaymanager DM does not start

Postby aa-kk » Dec 7th, '15, 16:44

Hi

When I reboot my main-install, Mag4 PC, I never get into X. I always have to restart dm (etc/init.d/dm restart)
Yes, I have set it to start to X, Yes I have toggled the setting.

Very annoying.

Any tips?
Last edited by aa-kk on Dec 7th, '15, 20:01, edited 1 time in total.
aa-kk
 
Posts: 56
Joined: Sep 14th, '11, 23:21

Re: Displaymanager DM does not start

Postby doktor5000 » Dec 7th, '15, 17:34

What display manager do you use? And please show the output of the following commands as root

Code: Select all
cat /etc/sysconfig/desktop
systemctl status graphical.target
systemctl status default.target
readlink -f /etc/systemd/system/default.target
systemctl list-dependencies default.target --no-pager
systemctl status prefdm.service -a
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Displaymanager DM does not start

Postby aa-kk » Dec 7th, '15, 18:00

Ok, that's on my main install, with good keyboard-setting.

Code: Select all
cat /etc/sysconfig/desktop > DISPLAYMANAGER=KDM


Code: Select all
systemctl status graphical.target >graphical.target - Graphical Interface
   Loaded: loaded (/lib/systemd/system/graphical.target; enabled)
   Active: active since ma 2015-12-07 16:00:26 CET; 55min ago
     Docs: man:systemd.special(7)

systemctl status default.target> graphical.target - Graphical Interface
   Loaded: loaded (/lib/systemd/system/graphical.target; enabled)
   Active: active since ma 2015-12-07 16:00:26 CET; 56min ago
     Docs: man:systemd.special(7)


Code: Select all
readlink -f /etc/systemd/system/default.target > /usr/lib/systemd/system/graphical.target

Code: Select all
systemctl list-dependencies default.target --no-pager > default.target
├─cpufreqd.service
├─dc_server.service
├─mandi.service
├─network-up.service
├─network.service
├─numlock.service
├─partmon.service
├─pktcdvd.service
├─prefdm.service
├─preload.service
├─resolvconf.service
├─systemd-readahead-collect.service
├─systemd-readahead-replay.service
├─systemd-update-utmp-runlevel.service
├─upower.service
├─usermin.service
├─vmware-USBArbitrator.service
├─vmware.service
├─webmin.service
└─multi-user.target
  ├─acpid.service
  ├─atd.service
  ├─avahi-daemon.service
  ├─clamd.service
  ├─cpufreqd.service
  ├─cpupower.service
  ├─crond.service
  ├─cups-browsed.service
  ├─cups.path
  ├─dbus.service
  ├─dc_server.service
  ├─dhcpd.service
  ├─freshclam.service
  ├─haldaemon.service
  ├─hddtemp.service
  ├─hsqldb.service
  ├─httpd.service
  ├─lm_sensors.service
  ├─mandi.service
  ├─mdmonitor.service
  ├─memcached@11211.service
  ├─mysqld.service
  ├─network-up.service
  ├─network.service
  ├─nscd.service
  ├─ntpd.service
  ├─numlock.service
  ├─partmon.service
  ├─pktcdvd.service
  ├─plymouth-quit-wait.service
  ├─plymouth-quit.service
  ├─rc-local.service
  ├─resolvconf.service
  ├─rpcbind.service
  ├─rsyslog.service
  ├─saslauthd.service
  ├─sensord.service
  ├─shorewall.service
  ├─smartd.service
  ├─snmpd.service
  ├─systemd-ask-password-wall.path
  ├─systemd-logind.service
  ├─systemd-update-utmp-runlevel.service
  ├─systemd-user-sessions.service
  ├─usermin.service
  ├─vmware-USBArbitrator.service
  ├─vmware.service
  ├─webmin.service
  ├─xinetd.service
  ├─basic.target
  │ ├─alsa-restore.service
  │ ├─alsa-state.service
  │ ├─fedora-autorelabel-mark.service
  │ ├─fedora-autorelabel.service
  │ ├─fedora-configure.service
  │ ├─fedora-loadmodules.service
  │ ├─ip6tables.service
  │ ├─iptables.service
  │ ├─mandriva-everytime.service
  │ ├─mandriva-save-dmesg.service
  │ ├─paths.target
  │ ├─slices.target
  │ │ ├─-.slice
  │ │ └─system.slice
  │ ├─sockets.target
  │ │ ├─avahi-daemon.socket
  │ │ ├─cups.socket
  │ │ ├─dbus.socket
  │ │ ├─nscd.socket
  │ │ ├─rpcbind.socket
  │ │ ├─systemd-initctl.socket
  │ │ ├─systemd-journald.socket
  │ │ ├─systemd-shutdownd.socket
  │ │ ├─systemd-udevd-control.socket
  │ │ └─systemd-udevd-kernel.socket
  │ ├─sysinit.target
  │ │ ├─dev-hugepages.mount
  │ │ ├─dev-mqueue.mount
  │ │ ├─kmod-static-nodes.service
  │ │ ├─mandriva-kmsg-loglevel.service
  │ │ ├─mdmonitor-takeover.service
  │ │ ├─plymouth-read-write.service
  │ │ ├─plymouth-start.service
  │ │ ├─proc-sys-fs-binfmt_misc.automount
  │ │ ├─sys-fs-fuse-connections.mount
  │ │ ├─sys-kernel-config.mount
  │ │ ├─sys-kernel-debug.mount
  │ │ ├─systemd-ask-password-console.path
  │ │ ├─systemd-binfmt.service
  │ │ ├─systemd-journal-flush.service
  │ │ ├─systemd-journald.service
  │ │ ├─systemd-modules-load.service
  │ │ ├─systemd-random-seed.service
  │ │ ├─systemd-sysctl.service
  │ │ ├─systemd-tmpfiles-setup-dev.service
  │ │ ├─systemd-tmpfiles-setup.service
  │ │ ├─systemd-udev-trigger.service
  │ │ ├─systemd-udevd.service
  │ │ ├─systemd-update-utmp.service
  │ │ ├─systemd-vconsole-setup.service
  │ │ ├─cryptsetup.target
  │ │ ├─local-fs.target
  │ │ │ ├─-.mount
  │ │ │ ├─backups.mount
  │ │ │ ├─DATA\x2d150.mount
  │ │ │ ├─div\x2dinfo.mount
  │ │ │ ├─EXT3\x2d100.mount
  │ │ │ ├─FAT\x2d50.mount
  │ │ │ ├─fedora-import-state.service
  │ │ │ ├─fedora-readonly.service
  │ │ │ ├─fedora-storage-init-late.service
  │ │ │ ├─fedora-storage-init.service
  │ │ │ ├─storage.mount
  │ │ │ ├─systemd-fsck-root.service
  │ │ │ ├─systemd-remount-fs.service
  │ │ │ ├─tmp.mount
  │ │ │ └─Win7\x2dD.mount
  │ │ └─swap.target
  │ │   ├─dev-cdrom2.swap
  │ │   ├─dev-disk-by\x2did-ata\x2dST750LX003\x2d1AC154_W200CBXD\x2dpart5.swap
  │ │   ├─dev-disk-by\x2did-wwn\x2d0x5000c50053284822\x2dpart5.swap
  │ │   ├─dev-disk-by\x2dlabel-swappy.swap
  │ │   ├─dev-disk-by\x2dlabel-swappy.swap
  │ │   ├─dev-disk-by\x2duuid-abc8fe86\x2d7c9f\x2d48f6\x2d896a\x2daa348c2222f5.swap
  │ │   └─dev-sda5.swap
  │ └─timers.target
  │   └─systemd-tmpfiles-clean.timer
  ├─getty.target
  │ └─getty@tty1.service
  ├─nfs.target
  │ ├─nfs-idmap.service
  │ └─nfs-lock.service
  ├─remote-fs.target
  │ ├─Silver-Drive\x2d2T.mount
  │ └─Silver-USB\x2ddrive.mount
  └─rpcbind.target



Code: Select all
systemctl status prefdm.service -a > prefdm.service - Display Manager
   Loaded: loaded (/usr/lib/systemd/system/prefdm.service; static)
   Active: active (running) since ma 2015-12-07 16:01:04 CET; 57min ago
 Main PID: 6061 (kdm)
   CGroup: /system.slice/prefdm.service
           ├─6061 /usr/bin/kdm -nodaemon
           └─6074 /etc/X11/X :0 vt2 -nolisten tcp -auth /var/run/xauth/A:0-b1uHka



There you go,
Last edited by doktor5000 on Dec 7th, '15, 18:22, edited 1 time in total.
Reason: added code tags
aa-kk
 
Posts: 56
Joined: Sep 14th, '11, 23:21

Re: Displaymanager DM does not start

Postby doktor5000 » Dec 7th, '15, 18:35

Please next time use code tags as explained in ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv
And please post the exact output of the commands, no editing and no omissions please.

Please show the output as root of
Code: Select all
journalctl -ab | grep -i kdm
cat /var/log/kdm.log
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Displaymanager DM does not start

Postby aa-kk » Dec 7th, '15, 18:43

OK:

Code: Select all
[root@killer ~]# journalctl -ab | grep -i kdm
dec 07 16:01:17 killer kdm[6086]: :0[6086]: pam_succeed_if(kdm:auth): no condition detected; module succeeded
dec 07 16:01:17 killer kdm[6086]: :0[6086]: pam_succeed_if(kdm:auth): requirement "user ingroup nopasswdlogin" not met by user "frans"
dec 07 16:01:17 killer kdm[6086]: :0[6086]: pam_tcb(kdm:auth): Authentication passed for frans from (uid=0)
dec 07 16:01:17 killer kdm[6086]: :0[6086]: pam_tcb(kdm:session): Session opened for frans by (uid=0)

[root@killer ~]# cat /var/log/kdm.log
[root@killer ~]#
aa-kk
 
Posts: 56
Joined: Sep 14th, '11, 23:21

Re: Displaymanager DM does not start

Postby doktor5000 » Dec 7th, '15, 18:45

KDM was only started once during current boot. Does not look like it was restarted as you mentioned in the first post.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Displaymanager DM does not start

Postby aa-kk » Dec 7th, '15, 18:50

Well, I am not completely sure what it all does, especially not with with systemd.
In any case I do give the command to restart; if not running, then it will start.

I have set & toggled to have X started.
aa-kk
 
Posts: 56
Joined: Sep 14th, '11, 23:21

Re: Displaymanager DM does not start

Postby doktor5000 » Dec 7th, '15, 18:54

So what actually happens when you boot, and when exactly do you run that command?

Please try the following after reboot. Wait until X should start, then wait a minute or so until nothing happens anymore.
Then switch to another tty via e.g. Ctrl+Alt+F2 and login as root, then run
Code: Select all
journalctl -ab > /tmp/journal.log
and please attach the file /tmp/journal.log here.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Displaymanager DM does not start

Postby aa-kk » Dec 7th, '15, 19:19

OK, done
Attachments
root-journal.log
(157.79 KiB) Downloaded 191 times
aa-kk
 
Posts: 56
Joined: Sep 14th, '11, 23:21

Re: Displaymanager DM does not start

Postby doktor5000 » Dec 7th, '15, 19:45

You forgot to answer the question:
doktor5000 wrote:So what actually happens when you boot, and when exactly do you run that command?


From the log, you hit some ordering cycles.
dec 07 18:11:09 killer systemd[1]: Found ordering cycle on preload.service/start
dec 07 18:11:09 killer systemd[1]: Found dependency on prefdm.service/start
dec 07 18:11:09 killer systemd[1]: Found dependency on plymouth-quit.service/stop
dec 07 18:11:09 killer systemd[1]: Found dependency on rc-local.service/start
dec 07 18:11:09 killer systemd[1]: Found dependency on vmware-USBArbitrator.service/start
dec 07 18:11:09 killer systemd[1]: Found dependency on preload.service/start
dec 07 18:11:09 killer systemd[1]: Breaking ordering cycle by deleting job prefdm.service/start
dec 07 18:11:09 killer systemd[1]: Job prefdm.service/start deleted to break ordering cycle starting with preload.service/start


See the related bug reports: https://bugs.mageia.org/show_bug.cgi?id=16086 and https://bugs.mageia.org/show_bug.cgi?id=16260
You can try to fix it via disabling the preload service as root via
Code: Select all
systemctl mask preload.service
or by simply uninstalling the preload package via
Code: Select all
urpme preload
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Displaymanager DM does not start

Postby aa-kk » Dec 7th, '15, 19:55

When I boot I just get a terminal where to login.

I have opted to uninstall preload. will now reboot
aa-kk
 
Posts: 56
Joined: Sep 14th, '11, 23:21

Re: Displaymanager DM does not start

Postby aa-kk » Dec 7th, '15, 20:01

YES !! that was it ! At the time preload seemed a good tool, seems it is not. Finally a normal boot!

THANK YOU VERY MUCH !
aa-kk
 
Posts: 56
Joined: Sep 14th, '11, 23:21


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest

cron