Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Control: severity -1 important Hi! On Sat, 19 Jul 2014 23:20:58 +0200 Francesco Muzio muzi...@gmail.com wrote: Package: kdm Version: 4:4.11.9-1 Severity: minor Dear maintainers, My machine (updated debian testing) has only KDM as display manager, it starts without problem after upgrading/trasition to systemd. But in journald log I see this message systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. For jessie we ship a generator called systemd-default-display-manager-generator which is supposed to workaround some of the issues by not having all display managers in Debian provide a native .service and setup /etc/systemd/system/display-manager.service. Since this is a Debian specific patch and an incomplete hack, we will get rid of that for stretch. Thus bumping the severity of this bug to important. I notice that sddm, the successor of kdm for plasma desktop, already supports the new scheme. You should consider copying the bits from there. Or if kdm is dead, maybe arrange for having it being transformed into a transitional package which pulls in sddm on upgrades. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 04/02/2015 10:15 PM, Moritz Mühlenhoff wrote: My patch from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754314 retains the kdmrc customisation currently present in the sysvinit script; maybe you can fold that one into your patch? Hmm, I haven't realized that the display manager's configuration file is touch by the init script. I think that's definitely going beyond to what an init script is supposed to do. I also noticed that the systemd service file you wrote contains an [Install] section but this section is not allowed in service files for display managers at the time being since their service files are installed through the debconf mechanism when configuring the default display manager. This is also the reason why you are having problems activating the service. My patch basically copies the behavior of the lightdm package which is already in the archives and works reasonably, so I wouldn't want to make this patch any more complicated at this point. OTOH, I was a bit surprised to see that you removed the ConsoleKit dependency. I wasn't even aware that kdm actually supports logind, does it? Maybe we can come up with a good patch if we merge both our patches into one that incorporates all important aspects discussed above. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On Fri, Apr 03, 2015 at 09:05:17AM +0200, John Paul Adrian Glaubitz wrote: On 04/02/2015 10:15 PM, Moritz Mühlenhoff wrote: My patch from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754314 retains the kdmrc customisation currently present in the sysvinit script; maybe you can fold that one into your patch? Hmm, I haven't realized that the display manager's configuration file is touch by the init script. I think that's definitely going beyond to what an init script is supposed to do. Yeah, but I think the behaviour of the systemd unit should retain the established behaviour of the svsvinit script. I also noticed that the systemd service file you wrote contains an [Install] section but this section is not allowed in service files for display managers at the time being since their service files are installed through the debconf mechanism when configuring the default display manager. This is also the reason why you are having problems activating the service. Yeah, the logic to handle display managers appeared later, my patch is nearly nine months old by now and much has changed in the systemd Debian integration. OTOH, I was a bit surprised to see that you removed the ConsoleKit dependency. I wasn't even aware that kdm actually supports logind, does it? See the references in my original bug submission. Maybe we can come up with a good patch if we merge both our patches into one that incorporates all important aspects discussed above. I'd be in favour of adding the ExecStartPre of kdm-debian-setup-config (but I'm unsure whether people actually use this), but I won't be able to spend further time on this ATM. Cheers, Moritz -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On Thu, Apr 02, 2015 at 04:20:06PM +0200, John Paul Adrian Glaubitz wrote: On 04/02/2015 12:57 PM, John Paul Adrian Glaubitz wrote: Attaching a debdiff with the proposed changes to the kde-workspace source package which will add systemd support to kdm. Attaching a cleaned up revision the patch where I fixed the tab stops and added an additional line in the debian/changelog to indicate that the file debian/kdm.service was added to the source package. Hi John, Thanks for working on this. I had previously also worked on a systemd unit last year but due to the lack of feedback from KDE maintainers I stopped working on it. My patch from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754314 retains the kdmrc customisation currently present in the sysvinit script; maybe you can fold that one into your patch? Cheers, Moritz -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/10/2015 03:26 PM, John Paul Adrian Glaubitz wrote: In any case, I will hopefully provide an updated kdm package in the following week that you can try at your desire. Attaching a debdiff with the proposed changes to the kde-workspace source package which will add systemd support to kdm. These changes were inspired by the lightdm package in Debian as well as the kdm package in Fedora. I haven't fully tested my changes yet. Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 diff -Nru kde-workspace-4.11.13/debian/changelog kde-workspace-4.11.13/debian/changelog --- kde-workspace-4.11.13/debian/changelog 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/changelog 2015-04-02 11:17:10.0 +0200 @@ -1,3 +1,16 @@ +kde-workspace (4:4.11.13-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add systemd support: (Closes: #755359) +- debian/control: + + Add dh_systemd (= 1.14) to Build-Depends. +- debian/kdm.postinst: + + Create symbolic link to systemd service file of default display manager. +- debian/rules: + + Install kdm systemd service file using dh_system_start. + + -- John Paul Adrian Glaubitz glaub...@physik.fu-berlin.de Thu, 02 Apr 2015 11:16:43 +0200 + kde-workspace (4:4.11.13-2) unstable; urgency=medium * New patch: upstream_do_not_pass_ntpUtility_as_an_argument.patch fix diff -Nru kde-workspace-4.11.13/debian/control kde-workspace-4.11.13/debian/control --- kde-workspace-4.11.13/debian/control 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/control 2015-04-02 11:08:32.0 +0200 @@ -75,7 +75,8 @@ python-dev (= 2.6.6-3~), shared-desktop-ontologies (= 0.8), udev [linux-any], - zlib1g-dev + zlib1g-dev, + dh-systemd (= 1.14) Standards-Version: 3.9.5 X-Python-Version: = 2.5 XS-Testsuite: autopkgtest diff -Nru kde-workspace-4.11.13/debian/kdm.postinst kde-workspace-4.11.13/debian/kdm.postinst --- kde-workspace-4.11.13/debian/kdm.postinst 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/kdm.postinst 2015-04-02 11:10:01.0 +0200 @@ -78,6 +78,15 @@ if [ -d /var/lib/kdm ]; then chown -R kdm /var/lib/kdm fi +# set default-display-manager systemd service link according to our config +if [ -e $DEFAULT_DISPLAY_MANAGER_FILE -a -d /etc/systemd/system/ ]; then + SERVICE=/lib/systemd/system/$(basename $(cat $DEFAULT_DISPLAY_MANAGER_FILE)).service + if [ -e $SERVICE ]; then + ln -sf $SERVICE /etc/systemd/system/display-manager.service + else + echo ERROR: $SERVICE is the selected default display manager but does not exist 2 + fi +fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff -Nru kde-workspace-4.11.13/debian/kdm.service kde-workspace-4.11.13/debian/kdm.service --- kde-workspace-4.11.13/debian/kdm.service 1970-01-01 01:00:00.0 +0100 +++ kde-workspace-4.11.13/debian/kdm.service 2015-04-02 11:10:27.0 +0200 @@ -0,0 +1,10 @@ +[Unit] +Description=KDE Display Manager +Documentation=man:kdm(1) +After=systemd-user-sessions.service + +[Service] +ExecStartPre=/bin/sh -c '[ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/bin/kdm ]' +ExecStart=/usr/bin/kdm +Restart=always +IgnoreSIGPIPE=no diff -Nru kde-workspace-4.11.13/debian/rules kde-workspace-4.11.13/debian/rules --- kde-workspace-4.11.13/debian/rules 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/rules 2015-04-02 11:07:34.0 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/make -f -dh = --with=python2 +dh = --with=python2 --with=systemd include /usr/share/pkg-kde-tools/qt-kde-team/2/debian-qt-kde.mk libpkgs_addsubst_allLibraries = kde-workspace-dev @@ -39,6 +39,9 @@ $(overridden_command) -pkdm --noscripts $(overridden_command) --remaining-packages +override_dh_systemd_start: + $(overriden_command) -pkdm --no-start -r kdm.service + pkgs_with_install_linux = $(patsubst debian/%.install.linux,%,$(wildcard debian/*.install.linux)) override_dh_install: $(overridden_command)
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 04/02/2015 04:20 PM, John Paul Adrian Glaubitz wrote: Attaching a cleaned up revision the patch where I fixed the tab stops and added an additional line in the debian/changelog to indicate that the file debian/kdm.service was added to the source package. While reviewing my patch again I stumbled across a typo I made in the rules file (overriden_command - overridden_command). I have fixed that now and also slightly made the changelog entry more accurate. Apologies for the noise. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 diff -Nru kde-workspace-4.11.13/debian/changelog kde-workspace-4.11.13/debian/changelog --- kde-workspace-4.11.13/debian/changelog 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/changelog 2015-04-02 16:50:58.0 +0200 @@ -1,3 +1,18 @@ +kde-workspace (4:4.11.13-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add systemd support for kdm: (Closes: #755359) +- debian/control: + + Add dh_systemd (= 1.14) to Build-Depends. +- debian/kdm.postinst: + + Create symbolic link to systemd service file of default display manager. +- debian/kdm.service: + + Add new systemd service file for kdm. +- debian/rules: + + Install kdm systemd service file using dh_system_start. + + -- John Paul Adrian Glaubitz glaub...@physik.fu-berlin.de Thu, 02 Apr 2015 16:50:40 +0200 + kde-workspace (4:4.11.13-2) unstable; urgency=medium * New patch: upstream_do_not_pass_ntpUtility_as_an_argument.patch fix diff -Nru kde-workspace-4.11.13/debian/control kde-workspace-4.11.13/debian/control --- kde-workspace-4.11.13/debian/control 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/control 2015-04-02 13:59:35.0 +0200 @@ -75,7 +75,8 @@ python-dev (= 2.6.6-3~), shared-desktop-ontologies (= 0.8), udev [linux-any], - zlib1g-dev + zlib1g-dev, + dh-systemd (= 1.14) Standards-Version: 3.9.5 X-Python-Version: = 2.5 XS-Testsuite: autopkgtest diff -Nru kde-workspace-4.11.13/debian/kdm.postinst kde-workspace-4.11.13/debian/kdm.postinst --- kde-workspace-4.11.13/debian/kdm.postinst 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/kdm.postinst 2015-04-02 14:09:04.0 +0200 @@ -78,6 +78,15 @@ if [ -d /var/lib/kdm ]; then chown -R kdm /var/lib/kdm fi +# set default-display-manager systemd service link according to our config +if [ -e $DEFAULT_DISPLAY_MANAGER_FILE -a -d /etc/systemd/system/ ]; then +SERVICE=/lib/systemd/system/$(basename $(cat $DEFAULT_DISPLAY_MANAGER_FILE)).service +if [ -e $SERVICE ]; then +ln -sf $SERVICE /etc/systemd/system/display-manager.service +else +echo ERROR: $SERVICE is the selected default display manager but does not exist 2 +fi +fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff -Nru kde-workspace-4.11.13/debian/kdm.service kde-workspace-4.11.13/debian/kdm.service --- kde-workspace-4.11.13/debian/kdm.service 1970-01-01 01:00:00.0 +0100 +++ kde-workspace-4.11.13/debian/kdm.service 2015-04-02 11:10:27.0 +0200 @@ -0,0 +1,10 @@ +[Unit] +Description=KDE Display Manager +Documentation=man:kdm(1) +After=systemd-user-sessions.service + +[Service] +ExecStartPre=/bin/sh -c '[ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/bin/kdm ]' +ExecStart=/usr/bin/kdm +Restart=always +IgnoreSIGPIPE=no diff -Nru kde-workspace-4.11.13/debian/rules kde-workspace-4.11.13/debian/rules --- kde-workspace-4.11.13/debian/rules 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/rules 2015-04-02 16:50:17.0 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/make -f -dh = --with=python2 +dh = --with=python2 --with=systemd include /usr/share/pkg-kde-tools/qt-kde-team/2/debian-qt-kde.mk libpkgs_addsubst_allLibraries = kde-workspace-dev @@ -39,6 +39,9 @@ $(overridden_command) -pkdm --noscripts $(overridden_command) --remaining-packages +override_dh_systemd_start: + $(overridden_command) -pkdm --no-start -r kdm.service + pkgs_with_install_linux = $(patsubst debian/%.install.linux,%,$(wildcard debian/*.install.linux)) override_dh_install: $(overridden_command)
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 04/02/2015 12:57 PM, John Paul Adrian Glaubitz wrote: Attaching a debdiff with the proposed changes to the kde-workspace source package which will add systemd support to kdm. Attaching a cleaned up revision the patch where I fixed the tab stops and added an additional line in the debian/changelog to indicate that the file debian/kdm.service was added to the source package. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 diff -Nru kde-workspace-4.11.13/debian/changelog kde-workspace-4.11.13/debian/changelog --- kde-workspace-4.11.13/debian/changelog 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/changelog 2015-04-02 14:38:19.0 +0200 @@ -1,3 +1,18 @@ +kde-workspace (4:4.11.13-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add systemd support: (Closes: #755359) +- debian/control: + + Add dh_systemd (= 1.14) to Build-Depends. +- debian/kdm.postinst: + + Create symbolic link to systemd service file of default display manager. +- debian/kdm.service: + + Add new systemd service file for kdm. +- debian/rules: + + Install kdm systemd service file using dh_system_start. + + -- John Paul Adrian Glaubitz glaub...@physik.fu-berlin.de Thu, 02 Apr 2015 14:37:51 +0200 + kde-workspace (4:4.11.13-2) unstable; urgency=medium * New patch: upstream_do_not_pass_ntpUtility_as_an_argument.patch fix diff -Nru kde-workspace-4.11.13/debian/control kde-workspace-4.11.13/debian/control --- kde-workspace-4.11.13/debian/control 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/control 2015-04-02 13:59:35.0 +0200 @@ -75,7 +75,8 @@ python-dev (= 2.6.6-3~), shared-desktop-ontologies (= 0.8), udev [linux-any], - zlib1g-dev + zlib1g-dev, + dh-systemd (= 1.14) Standards-Version: 3.9.5 X-Python-Version: = 2.5 XS-Testsuite: autopkgtest diff -Nru kde-workspace-4.11.13/debian/kdm.postinst kde-workspace-4.11.13/debian/kdm.postinst --- kde-workspace-4.11.13/debian/kdm.postinst 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/kdm.postinst 2015-04-02 14:09:04.0 +0200 @@ -78,6 +78,15 @@ if [ -d /var/lib/kdm ]; then chown -R kdm /var/lib/kdm fi +# set default-display-manager systemd service link according to our config +if [ -e $DEFAULT_DISPLAY_MANAGER_FILE -a -d /etc/systemd/system/ ]; then +SERVICE=/lib/systemd/system/$(basename $(cat $DEFAULT_DISPLAY_MANAGER_FILE)).service +if [ -e $SERVICE ]; then +ln -sf $SERVICE /etc/systemd/system/display-manager.service +else +echo ERROR: $SERVICE is the selected default display manager but does not exist 2 +fi +fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff -Nru kde-workspace-4.11.13/debian/kdm.service kde-workspace-4.11.13/debian/kdm.service --- kde-workspace-4.11.13/debian/kdm.service 1970-01-01 01:00:00.0 +0100 +++ kde-workspace-4.11.13/debian/kdm.service 2015-04-02 11:10:27.0 +0200 @@ -0,0 +1,10 @@ +[Unit] +Description=KDE Display Manager +Documentation=man:kdm(1) +After=systemd-user-sessions.service + +[Service] +ExecStartPre=/bin/sh -c '[ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/bin/kdm ]' +ExecStart=/usr/bin/kdm +Restart=always +IgnoreSIGPIPE=no diff -Nru kde-workspace-4.11.13/debian/rules kde-workspace-4.11.13/debian/rules --- kde-workspace-4.11.13/debian/rules 2014-11-07 10:11:29.0 +0100 +++ kde-workspace-4.11.13/debian/rules 2015-04-02 11:07:34.0 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/make -f -dh = --with=python2 +dh = --with=python2 --with=systemd include /usr/share/pkg-kde-tools/qt-kde-team/2/debian-qt-kde.mk libpkgs_addsubst_allLibraries = kde-workspace-dev @@ -39,6 +39,9 @@ $(overridden_command) -pkdm --noscripts $(overridden_command) --remaining-packages +override_dh_systemd_start: + $(overriden_command) -pkdm --no-start -r kdm.service + pkgs_with_install_linux = $(patsubst debian/%.install.linux,%,$(wildcard debian/*.install.linux)) override_dh_install: $(overridden_command)
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Il 10/01/2015 02:18, John Paul Adrian Glaubitz ha scritto: that this symlink is actually always created by the postinst script of the display manager (on Debian, Fedora uses the [Install] section of the .service file for that by setting an alias to display-manager.service) and looking at the source code of the kdm Debian package, this particular part is actually missing in the kdm package while it is present in the lightdm package. So it's actually a bit surprising that the link was installed on my test system. [...] It actually depends on which package you reconfigure. So, if you run dpkg-reconfigure lightdm (provided that lightdm is installed) and choose kdm as your default DM, it should work. However, if you do that with dpkg-reconfigure kdm and choose kdm or any other DM for that matter, it shouldn't work. With my test I deduced that the soft-link is created only if another display-manager is configured, is choosed kdm as default and a kdm.service exists in the right path However, just to be sure I'm asking again: When you do a fresh installation and don't use a service file for kdm, kdm works and systemctl status kdm.service shows that it's running however you get the warning in the journal about the display-manager service, right? yes, right. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/10/2015 03:11 PM, Francesco Muzio wrote: It actually depends on which package you reconfigure. So, if you run dpkg-reconfigure lightdm (provided that lightdm is installed) and choose kdm as your default DM, it should work. However, if you do that with dpkg-reconfigure kdm and choose kdm or any other DM for that matter, it shouldn't work. With my test I deduced that the soft-link is created only if another display-manager is configured, is choosed kdm as default and a kdm.service exists in the right path Yes, that's what I said :). However, just to be sure I'm asking again: When you do a fresh installation and don't use a service file for kdm, kdm works and systemctl status kdm.service shows that it's running however you get the warning in the journal about the display-manager service, right? yes, right. Good. Then I just need to verify that doing a clean installation with just kdm and then just adding the service file won't work (which is what I am expecting). In any case, I will hopefully provide an updated kdm package in the following week that you can try at your desire. Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On Sat, Jan 10, 2015 at 01:18:59AM +0100, Francesco Muzio wrote: how many display managers are installed on your systems? As I said, that was a test system and there was only KDM installed, nothing else. I have to poke around a bit more. However, it seems ... if I install slim a soft link /etc/systemd/system/display-manager.service is created and it points to slim service that this symlink is actually always created by the postinst script of the display manager (on Debian, Fedora uses the [Install] section of the .service file for that by setting an alias to display-manager.service) and looking at the source code of the kdm Debian package, this particular part is actually missing in the kdm package while it is present in the lightdm package. So it's actually a bit surprising that the link was installed on my test system. if you run a dpkg-reconfigure kdm to change the default DM and choose gdm3/slim the /etc/systemd/system/display-manager.service link is updated automatically? Yes, this is actually the basic idea. And if you re-choose KDM as default /etc/systemd/system/display-manager.service point again to kdm.service ? It actually depends on which package you reconfigure. So, if you run dpkg-reconfigure lightdm (provided that lightdm is installed) and choose kdm as your default DM, it should work. However, if you do that with dpkg-reconfigure kdm and choose kdm or any other DM for that matter, it shouldn't work. PS: Next time you share such a qemu image, please don't set the locale and the keyboard layout to Italian. It makes it easier for non-Italian-speaking folk to help you. I will consider the advice. Thanks! I will dig a bit more into the source code of the kdm Debian package and see if I can provide an updated version which should finally provide 100% compatibility. However, just to be sure I'm asking again: When you do a fresh installation and don't use a service file for kdm, kdm works and systemctl status kdm.service shows that it's running however you get the warning in the journal about the display-manager service, right? Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
also I think it's impossible that a soft-link /etc/systemd/system/display-manager.service is created on a fresh install who only installs KDM as display-manager.service. Otherwise on the system there would be a /etc/systemd/system/display-manager.service who not point to no service. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/09/2015 11:38 PM, John Paul Adrian Glaubitz wrote: On 01/09/2015 11:34 PM, Francesco Muzio wrote: I have tried the kdm.service file in my real Debian environment and in the VM that I have shared with you, in both cases KDM will not start at boot Is kdm actually configured to be your default display manager? Ok, I thoroughly analyzed your qemu image and eventually found out that the symbolic link /etc/systemd/system/display-manager.service which points to /lib/systemd/system/kdm.service was missing. A simple ln -s /lib/systemd/system/kdm.service /etc/systemd/system/display-manager.service fixed it for me. Don't ask me why, but it was missing on your installation but not on mine. I have to figure that out and I have to read up on the documentation again to understand where this symlink comes from, I did *not* create it manually in my case. Also, the kdm.service that you put under /lib/systemd/system/ has a completely messed up formatting because you somehow messed it up during copy and paste. Try looking at the file with cat /lib/systemd/system/kdm.service and you understand what I mean. I don't know whether this had any impact though. PS: Next time you share such a qemu image, please don't set the locale and the keyboard layout to Italian. It makes it easier for non-Italian-speaking folk to help you. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Il 10/01/2015 00:43, John Paul Adrian Glaubitz ha scritto: Ok, I thoroughly analyzed your qemu image and eventually found out that the symbolic link /etc/systemd/system/display-manager.service which points to /lib/systemd/system/kdm.service was missing. A simple ln -s /lib/systemd/system/kdm.service /etc/systemd/system/display-manager.service fixed it for me. I've no /etc/systemd/system/display-manager.service on my machines, very interesting Don't ask me why, but it was missing on your installation but not on mine. I have to figure that out and I have to read up on the documentation again to understand where this symlink comes from, I did *not* create it manually in my case. how many display managers are installed on your systems? if I install slim a soft link /etc/systemd/system/display-manager.service is created and it points to slim service you're saying that after a clean installation when only one display-manager (KDM) is installed a soft link /etc/systemd/system/display-manager.service is created for it ? right ? if you run a dpkg-reconfigure kdm to change the default DM and choose gdm3/slim the /etc/systemd/system/display-manager.service link is updated automatically? And if you re-choose KDM as default /etc/systemd/system/display-manager.service point again to kdm.service ? Also, the kdm.service that you put under /lib/systemd/system/ has a completely messed up formatting because you somehow messed it up during copy and paste. Try looking at the file with cat /lib/systemd/system/kdm.service and you understand what I mean. I don't know whether this had any impact though. It has been caused by a quick and dirty HTTP transfer PS: Next time you share such a qemu image, please don't set the locale and the keyboard layout to Italian. It makes it easier for non-Italian-speaking folk to help you. I will consider the advice. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Control: tags -1 -unreproducible Control: tags -1 patch Control: retitle -1 kdm: Please add a systemd service file On 01/09/2015 08:14 PM, Francesco Muzio wrote: it means if you type the command # journalctl --no-pager | grep display-manager no output is printed ? Ok, I actually understand now what your problem is. What you are seeing there is a mere *warning* by the systemd generator for the display manager unit that there is no service file for kdm present and that systemd used different means like a sysvinit LSB script or similar to start kdm. root@vs76:~# journalctl --no-pager |grep display-manager Jan 09 22:39:09 vs76 systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. root@vs76:~# And, in fact, when you look at the output of systemctl status kdm.service, you see that systemd used the kdm sysvinit script to start kdm which is indicated by the prefix LSB:: root@vs76:~# systemctl status kdm.service ● kdm.service - LSB: X display manager for KDE Loaded: loaded (/etc/init.d/kdm) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: active (running) since Fri 2015-01-09 22:39:10 CET; 31s ago Process: 443 ExecStart=/etc/init.d/kdm start (code=exited, status=0/SUCCESS) CGroup: /system.slice/kdm.service ├─492 /usr/bin/kdm ├─497 /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-a7npvc ├─716 -:0 └─717 /usr/lib/kde4/libexec/kdm_greet Jan 09 22:39:10 vs76 kdm[443]: Starting K Display Manager: kdm. Jan 09 22:39:11 vs76 kdm_greet[717]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file...ctory Hint: Some lines were ellipsized, use -l to show in full. root@vs76:~# This isn't an error or a serious bug, it's just an information, nothing else. And to fix it, you can simply drop the attached service file kdm.service into /lib/systemd/system. This is a service file I derived from the kdm.service provided for kdm in Fedora. I tested it and it works without any problems and the warning message in the journal vanishes and systemctl status kdm.service lists a native systemd service: root@vs76:~# journalctl --no-pager |grep display-manager root@vs76:~# systemctl status kdm.service ● kdm.service - KDE Display Manager Loaded: loaded (/lib/systemd/system/kdm.service; enabled) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: active (running) since Fri 2015-01-09 22:41:39 CET; 19s ago Docs: man:kdm(1) Process: 489 ExecStartPre=/bin/sh -c [ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/bin/kdm ] (code=exited, status=0/SUCCESS) Main PID: 497 (kdm) CGroup: /system.slice/kdm.service ├─497 /usr/bin/kdm ├─520 /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-rQr9Ab ├─710 -:0 └─711 /usr/lib/kde4/libexec/kdm_greet Jan 09 22:41:40 vs76 kdm_greet[711]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file...ctory Hint: Some lines were ellipsized, use -l to show in full. root@vs76:~# So my initial approach to fix the issue was right, the service file was just not correct. As a reference, I am attaching the service files for lightdm and kdm which are shipped with Fedora. Note that the kdm.service file from Fedora does *not* specify a BusName unlike the one for lightdm. Adding a BusName would result in systemd misinterpreting the exec status and leaving the activation state as Activating. I will ask the release team for a possible pre-approval of a patched kdm package. Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 [Unit] Description=KDE Display Manager Documentation=man:kdm(1) After=systemd-user-sessions.service [Service] ExecStartPre=/bin/sh -c '[ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/bin/kdm ]' ExecStart=/usr/bin/kdm Restart=always IgnoreSIGPIPE=no [Unit] Description=Light Display Manager Documentation=man:lightdm(1) Conflicts=getty@tty1.service After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service livesys-late.service [Service] ExecStart=/usr/sbin/lightdm Restart=always IgnoreSIGPIPE=no BusName=org.freedesktop.DisplayManager [Install] Alias=display-manager.service [Unit] Description=The KDE login manager Conflicts=getty@tty1.service After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service Conflicts=plymouth-quit.service [Service] ExecStart=/usr/bin/kdm vt1 Restart=always IgnoreSIGPIPE=no [Install] Alias=display-manager.service
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Il 09/01/2015 15:45, John Paul Adrian Glaubitz ha scritto: After that finished, I rebooted the machine and it booted right into kdm without any issues or error messages. Whatever I did, I could*NOT* reproduce your problem - at all. it means if you type the command # journalctl --no-pager | grep display-manager no output is printed ?
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Il 09/01/2015 22:45, John Paul Adrian Glaubitz ha scritto: Ok, I actually understand now what your problem is. What you are seeing there is a mere *warning* by the systemd generator for the display manager unit that there is no service file for kdm present and that systemd used different means like a sysvinit LSB script or similar to start kdm. root@vs76:~# journalctl --no-pager |grep display-manager Jan 09 22:39:09 vs76 systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. root@vs76:~# it was a troubled birth, but we are arrived at the problem This isn't an error or a serious bug, it's just an information, nothing else. for this I have open the bug as a minor bug And to fix it, you can simply drop the attached service file kdm.service into /lib/systemd/system. This is a service file I derived from the kdm.service provided for kdm in Fedora. I tested it and it works without any problems and the warning message in the journal vanishes and systemctl status kdm.service lists a native systemd service: root@vs76:~# journalctl --no-pager |grep display-manager root@vs76:~# systemctl status kdm.service ● kdm.service - KDE Display Manager Loaded: loaded (/lib/systemd/system/kdm.service; enabled) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: active (running) since Fri 2015-01-09 22:41:39 CET; 19s ago Docs: man:kdm(1) Process: 489 ExecStartPre=/bin/sh -c [ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/bin/kdm ] (code=exited, status=0/SUCCESS) Main PID: 497 (kdm) CGroup: /system.slice/kdm.service ├─497 /usr/bin/kdm ├─520 /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-rQr9Ab ├─710 -:0 └─711 /usr/lib/kde4/libexec/kdm_greet Jan 09 22:41:40 vs76 kdm_greet[711]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file...ctory Hint: Some lines were ellipsized, use -l to show in full. root@vs76:~# I have tried this new kdm.service file, but the solution isn't working for me. The kdm service can be started manually and seems to run without problems, but if I reboot the machine systemd ignores the kdm service with the same behaviour showed in previous tests I have tried the kdm.service file in my real Debian environment and in the VM that I have shared with you, in both cases KDM will not start at boot -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/09/2015 11:34 PM, Francesco Muzio wrote: I have tried the kdm.service file in my real Debian environment and in the VM that I have shared with you, in both cases KDM will not start at boot Is kdm actually configured to be your default display manager? root@vs76:~ cat /etc/X11/default-display-manager /usr/bin/kdm root@vs76:~ What do systemctl status kdm.service and journalctl -u kdm.service tell you? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Control: tags -1 unreproducible On 01/08/2015 11:49 PM, Francesco Muzio wrote: systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. I think it's a normal behaviour if kdm does not provide service file as do other Display Manager like GDM3 and SLIM So, I did *lots* of testing today. I installed Debian Jessie using the netinst installation image, both the Beta 2 and a daily snapshot, both i386 and amd64 and always just installed a minimal base system using tasksel by just selecting SSH server and Standard system utilities [1]. I then rebooted the freshly installed system which had no graphical user interface installed whatsoever and logged in as the standard user. Then became the root user (using sudo) and installed just 'plasma desktop' and 'kdm': apt-get install plasma-desktop kdm After that finished, I rebooted the machine and it booted right into kdm without any issues or error messages. Whatever I did, I could *NOT* reproduce your problem - at all. Thus, I conclude that you are either using broken installation media or the Debian mirror you are using is broken. If that still is not the case, please give me a step-by-step instruction on how you installed your Debian system. Thanks, Adrian [1] http://screenshots.debian.net/screenshot/tasksel -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/08/2015 10:25 PM, Francesco Muzio wrote: I have downloaded the latest weekly build of debian-testing-i386-netinst.iso image and I have installed it on a qcow2 image of 4GB I have installed kde-plasma-desktop and kdm. I have put the correct kdm.service in the /lib/systemd/system/ directory Why did you copy the extra kdm.service file into the systemd directory? This file isn't actually necessary as the systemd generator for the display-manager unit takes care of that. It creates a unit file on-the-fly and puts it into /run/systemd/generator/kdm.service.d. I have rebooted the system and the result is the same as on my real machines. kdm it's not executed. If I delete kdm.service file at the next reboot kdm works as expected. It works for me. I did an absolute clean installation with the netinst image (beta2). I chose KDE during the desktop installation dialog and got a working KDE with KDM setup right away, no additional work necessary. There is something that you are fundamentally doing wrong. I assume you do a minimal installation without using tasksel during the installation and then install the packages manually instead of using meta packages and apparently some essential package is missing? I have run it with this command qemu-system-i386 -m 512 -enable-kvm -cpu athlon -hda HDD4GB.qcow2 Thanks, I will look into it when I find the time. Here is a summary how I installed Debian Jessie and got a working system: 1. Download Debian Jessie Netinst Beta 2 ISO (amd64) 2. Create a new VMWare Virtual Machine and mount the Netinst ISO 3. Install everything with the defaults 4. At the tasksel selection screen, select Desktop-KDE plus SSH server and base system 5. Finish installation and reboot 6. Upon reboot, my system boots right into KDM; no strings attached So, the only difference I see is that you are using i386 (as opposed to amd64 here) and you apparently don't use tasksel. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Why did you copy the extra kdm.service file into the systemd directory? Because you have told me to do it. see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755359#10 There is something that you are fundamentally doing wrong. I assume you do a minimal installation without using tasksel during the installation and then install the packages manually instead of using meta packages and apparently some essential package is missing? Because I had to recreate my problem with an image as small as possible. But don't digress anymore. I have explained my problem in the first message In journald log I see this message systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. And your proposed solution was you could add the attached kdm.service file and add it to /lib/systemd/system and see if that fixes your problem. this test hasn't solved my problem has caused me a fail of KDM to start at the reboot. probably you have missed my premise at the top of the first message Dear maintainers, My machine (updated debian testing) has only KDM as display manager, it starts without problem after upgrading/trasition to systemd. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/08/2015 11:19 PM, Francesco Muzio wrote: Because I had to recreate my problem with an image as small as possible. It was a suggestion, a guess out of the dark. I didn't tell you to do it, I merely asked whether this might help in this case. I didn't know about the systemd generators at the time then. But don't digress anymore. I have explained my problem in the first message In journald log I see this message systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. And your proposed solution was you could add the attached kdm.service file and add it to /lib/systemd/system and see if that fixes your problem. I am not denying that. But that applied to the case of your installed system, not for a fresh installation. As I pointed out earlier, I did a clean and fresh unmodified installation and used the defaults and KDM worked out-of-the-box. Again, either the image you are using is broken or you are doing something fundamentally wrong as it worked for me. this test hasn't solved my problem has caused me a fail of KDM to start at the reboot. It was a _suggestion_, I was not saying _at all_ that this was the guaranteed solution. And, if you read further, I did my own experiments and could not reproduce your problem on a clean installation. probably you have missed my premise at the top of the first message No, I did not miss anything at all since I said previously that I did a fresh and clean install with just KDM installed using tasksel and it worked. I can, btw, not examine your qemu image since you did not provide me with any passwords. I would have mount it manually now and modify the passwd database but you could have just told me the password. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Il 08/01/2015 23:27, John Paul Adrian Glaubitz ha scritto: I can, btw, not examine your qemu image since you did not provide me with any passwords. I would have mount it manually now and modify the passwd database but you could have just told me the password. Oops... I have forget to tell you the credentials user: root pass: password user: debian pass: password in the image you have downloaded the kdm.service is stored in /lib/systemd/system/ directory if you delete it and reboot you can expirienced the error in journalctl log systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. I think it's a normal behaviour if kdm does not provide service file as do other Display Manager like GDM3 and SLIM -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
I have done a test with a new installation of Debian. Yesterday I have created a minimal installation of Debian for i386 architecture with qemu. I have downloaded the latest weekly build of debian-testing-i386-netinst.iso image and I have installed it on a qcow2 image of 4GB I have installed kde-plasma-desktop and kdm. I have put the correct kdm.service in the /lib/systemd/system/ directory I have rebooted the system and the result is the same as on my real machines. kdm it's not executed. If I delete kdm.service file at the next reboot kdm works as expected. You can download the disk image of my VM from this link https://www.dropbox.com/s/nrcwkmbbbqlf5em/HDD4GB.7z?dl=0 I have run it with this command qemu-system-i386 -m 512 -enable-kvm -cpu athlon -hda HDD4GB.qcow2 I hope it helps you to understand where is the problem. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/06/2015 11:58 PM, Francesco Muzio wrote: Ok, next days I try to test your solution on a most recent installation of Debian For the records: I just did a clean installation of Jessie and choose KDE as the default desktop without any other desktops or display managers installed and kdm works just as expected: root@vs76:~# systemctl status kdm.service ● kdm.service - LSB: X display manager for KDE Loaded: loaded (/etc/init.d/kdm) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: active (running) since Wed 2015-01-07 12:04:52 CET; 2min 16s ago Process: 544 ExecStart=/etc/init.d/kdm start (code=exited, status=0/SUCCESS) CGroup: /system.slice/kdm.service ├─777 /usr/bin/kdm -config /var/run/kdm/kdmrc └─781 /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-rOMLPb Jan 07 12:04:52 vs76 kdm[544]: Starting K Display Manager: kdm. Jan 07 12:04:56 vs76 kdm_greet[874]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No such file or directory Jan 07 12:05:13 vs76 kdm[873]: :0[873]: pam_unix(kdm:session): session opened for user glaubitz by (uid=0) root@vs76:~# Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Hello Franceso! kdm is missing a systemd service file. I am not sure whether this is related to your problem, but you could add the attached kdm.service file and add it to /lib/systemd/system and see if that fixes your problem. Cheers, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 [Unit] Description=KDE Display Manager Documentation=man:kdm(1) After=systemd-user-sessions.service [Service] ExecStartPre=/bin/sh -c '[ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/sbin/kdm ]' ExecStart=/usr/sbin/kdm Restart=always BusName=org.freedesktop.DisplayManager
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/06/2015 07:09 PM, Francesco Muzio wrote: thanks for your reply, but kdm is located at /usr/bin/kdm and not /usr/sbin/kdm Ah, true. That's actually uncommon for the display manager not to be under /usr/sbin/ as gdm3 and lightdm are. That's why I incorrectly assumed it would be true for kdm as well. with the correct kdm.service file the display manager won't start and the message about display-manager.service still exists. Did you actually reload the service file using systemctl daemon reload? ● kdm.service - KDE Display Manager Loaded: loaded (/lib/systemd/system/kdm.service; static) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: failed (Result: start-limit) since mar 2015-01-06 17:40:24 CET; 5min ago Docs: man:kdm(1) Process: 1570 ExecStart=/usr/sbin/kdm (code=exited, status=203/EXEC) There is your problem. systemd tries to execute /usr/sbin/kdm and not /usr/bin/kdm. Make sure you have fixed the unit file and run systemctl daemon-reload. In any case, I am sure this isn't actually a bug in kdm but a configuration error on your computer. kdm works as expected after a fresh install. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
ops... I have correct only the path for the var ExecStartPre Now I have done a new test with both paths updated: - I have copied the file kdm.service to /lib/systemd/system/kdm.service - I have rebooted the system kdm is not started, the output of systemctl status kdm shows me the service as inactive, the same of the previous test ● kdm.service - KDE Display Manager Loaded: loaded (/lib/systemd/system/kdm.service; static) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: inactive (dead) Docs: man:kdm(1) I don't think to have understand what you mean with kdm works as expected after a fresh install. The bug reported here is minor. KDM works for me if the system is booted without the kdm.service file. I just wanted to point out a lack of compatibility between the KDM and systemd. This before to know that SDDM will be the new replacement of KDM -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/06/2015 08:59 PM, Francesco Muzio wrote: I just wanted to point out a lack of compatibility between the KDM and systemd. This before to know that SDDM will be the new replacement of KDM But it works here after a fresh install. If there was an actual incompatibility with kdm on systemd, this would be actually a serious bug. But that isn't the case as you can see: root@jessie64:~ systemctl status kdm.service ● kdm.service - LSB: X display manager for KDE Loaded: loaded (/etc/init.d/kdm) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: active (running) since Tue 2015-01-06 22:08:55 CET; 8min ago Process: 913 ExecStart=/etc/init.d/kdm start (code=exited, status=0/SUCCESS) CGroup: /system.slice/kdm.service ├─ 963 /usr/bin/kdm -config /var/run/kdm/kdmrc ├─ 965 /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-ipCFlb ├─1001 -:0 └─1002 /usr/lib/kde4/libexec/kdm_greet Jan 06 22:08:55 jessie64 kdm[913]: Starting K Display Manager: kdm. Jan 06 22:08:55 jessie64 systemd[1]: Started LSB: X display manager for KDE. Jan 06 22:08:59 jessie64 kdm_greet[1002]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No...tory Hint: Some lines were ellipsized, use -l to show in full. root@jessie64:~ I assume we can close the bug then? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/06/2015 10:20 PM, John Paul Adrian Glaubitz wrote: On 01/06/2015 08:59 PM, Francesco Muzio wrote: I just wanted to point out a lack of compatibility between the KDM and systemd. This before to know that SDDM will be the new replacement of KDM But it works here after a fresh install. If there was an actual incompatibility with kdm on systemd, this would be actually a serious bug. But that isn't the case as you can see: I presume you probably ran into this issue [1] which has been fixed in systemd 215-8. This version of systemd includes a generator which creates the necessary display manager unit file on-the-fly. On a Jessie machine where there is just kdm installed, you still get: root@vs76:~# ls -l /run/systemd/generator/kdm.service.d/50-kdm-\$x-display-manager.conf -rw-r--r-- 1 root root 126 Jan 6 22:29 /run/systemd/generator/kdm.service.d/50-kdm-$x-display-manager.conf root@vs76:~# cat /run/systemd/generator/kdm.service.d/50-kdm-\$x-display-manager.conf # Automatically generated by systemd-insserv-generator [Unit] Wants=x-display-manager.target Before=x-display-manager.target root@vs76:~# systemctl status kdm.service ● kdm.service - LSB: X display manager for KDE Loaded: loaded (/etc/init.d/kdm) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: active (running) since Tue 2015-01-06 22:28:26 CET; 6min ago CGroup: /system.slice/kdm.service ├─845 /usr/bin/kdm -config /var/run/kdm/kdmrc ├─848 /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-DjwwPb ├─913 -:0 └─935 /usr/lib/kde4/libexec/kdm_greet Jan 06 22:28:26 vs76 kdm[805]: Starting K Display Manager: kdm. Jan 06 22:28:29 vs76 kdm_greet[935]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: No suc...ctory Hint: Some lines were ellipsized, use -l to show in full. root@vs76:~# Adrian [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771287 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Ok, next days I try to test your solution on a most recent installation of Debian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Il 06/01/2015 22:35, John Paul Adrian Glaubitz ha scritto: I presume you probably ran into this issue [1] which has been fixed in systemd 215-8. This version of systemd includes a generator which creates the necessary display manager unit file on-the-fly. I'm using a Debian testing constantly updated, the bug has been experienced with last version of systemd available today on testing branch $ dpkg -l | grep systemd ii libpam-systemd:i386 215-8 i386 system and service manager - PAM module ii libsystemd-daemon0:i386 215-8 i386 systemd utility library (deprecated) ii libsystemd-id128-0:i386 215-8 i386 systemd 128 bit ID utility library (deprecated) ii libsystemd-journal0:i386 215-8 i386 systemd journal utility library (deprecated) ii libsystemd-login0:i386 215-8 i386 systemd login utility library (deprecated) ii libsystemd0:i386 215-8 i386 systemd utility library ii systemd 215-8 i386 system and service manager ii systemd-sysv 215-8 i386 system and service manager - SysV links ii systemd-ui 3-2i386 graphical frontend for systemd In any case you can close the bug. It isn't an important bug and KDM is the past. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
On 01/06/2015 11:41 PM, Francesco Muzio wrote: In any case you can close the bug. It isn't an important bug and KDM is the past. Well, I'm not saying that I don't care. If there is actually a bug, I want to help fixing it. However, my problem is that I cannot reproduce the bug in any way which is why I assume it's a configuration issue on your side. kdm is still part of Jessie and should be working as expected on a systemd installation. Thus, if you can show me a way to reproduce the bug, we would actually be able to fix it. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
thanks for your reply, but kdm is located at /usr/bin/kdm and not /usr/sbin/kdm with the correct kdm.service file the display manager won't start and the message about display-manager.service still exists. after a boot the command systemctl status kdm.service shows me this ● kdm.service - KDE Display Manager Loaded: loaded (/lib/systemd/system/kdm.service; static) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: inactive (dead) Docs: man:kdm(1) If I try to restart the kdm service with systemctl restart kdm or /etc/init.d/kdm restart I see an error aftert this systemctl status kdm.service prints: ● kdm.service - KDE Display Manager Loaded: loaded (/lib/systemd/system/kdm.service; static) Drop-In: /run/systemd/generator/kdm.service.d └─50-kdm-$x-display-manager.conf Active: failed (Result: start-limit) since mar 2015-01-06 17:40:24 CET; 5min ago Docs: man:kdm(1) Process: 1570 ExecStart=/usr/sbin/kdm (code=exited, status=203/EXEC) Process: 1566 ExecStartPre=/bin/sh -c [ $(cat /etc/X11/default-display-manager 2/dev/null) = /usr/bin/kdm ] (code=exited, status=0/SUCCESS) Main PID: 1570 (code=exited, status=203/EXEC) gen 06 17:40:24 debianbox systemd[1]: Failed to start KDE Display Manager. gen 06 17:40:24 debianbox systemd[1]: Unit kdm.service entered failed state. gen 06 17:40:24 debianbox systemd[1]: Starting KDE Display Manager... gen 06 17:40:24 debianbox systemd[1]: kdm.service holdoff time over, scheduling restart. gen 06 17:40:24 debianbox systemd[1]: Stopping KDE Display Manager... gen 06 17:40:24 debianbox systemd[1]: Starting KDE Display Manager... gen 06 17:40:24 debianbox systemd[1]: kdm.service start request repeated too quickly, refusing to start. gen 06 17:40:24 debianbox systemd[1]: Failed to start KDE Display Manager. gen 06 17:40:24 debianbox systemd[1]: Unit kdm.service entered failed state. and journalctl -xn prints: -- Logs begin at mar 2015-01-06 17:28:38 CET, end at mar 2015-01-06 17:40:24 CET. -- gen 06 17:40:24 debianbox systemd[1]: Unit kdm.service entered failed state. gen 06 17:40:24 debianbox systemd[1]: Starting KDE Display Manager... -- Subject: L'unità kdm.service inizia la fase di avvio -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- L'unità kdm.service ha iniziato la fase di avvio. gen 06 17:40:24 debianbox systemd[1]: kdm.service holdoff time over, scheduling restart. gen 06 17:40:24 debianbox systemd[1]: Stopping KDE Display Manager... -- Subject: L'unità kdm.service inizia la fase di spegnimento -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- L'unità kdm.service ha iniziato la fase di spegnimento. gen 06 17:40:24 debianbox systemd[1]: Starting KDE Display Manager... -- Subject: L'unità kdm.service inizia la fase di avvio -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- L'unità kdm.service ha iniziato la fase di avvio. gen 06 17:40:24 debianbox systemd[1]: kdm.service start request repeated too quickly, refusing to start. gen 06 17:40:24 debianbox systemd[1]: Failed to start KDE Display Manager. -- Subject: L'unità kdm.service è fallita -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- L'unità kdm.service è fallita. -- -- Il risultato è failed. gen 06 17:40:24 debianbox systemd[1]: Dependency failed for X11 Display Manager. -- Subject: L'unità x-display-manager.target è fallita -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- L'unità x-display-manager.target è fallita. -- -- Il risultato è dependency. gen 06 17:40:24 debianbox systemd[1]: Unit kdm.service entered failed state. Il 06/01/2015 10:57, John Paul Adrian Glaubitz ha scritto: Hello Franceso! kdm is missing a systemd service file. I am not sure whether this is related to your problem, but you could add the attached kdm.service file and add it to /lib/systemd/system and see if that fixes your problem. Cheers, Adrian -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#755359: [kdm] systemd seem to fail to start display-manager.service
Package: kdm Version: 4:4.11.9-1 Severity: minor Dear maintainers, My machine (updated debian testing) has only KDM as display manager, it starts without problem after upgrading/trasition to systemd. But in journald log I see this message systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details. This bug can be related to another: #741511 If I install slim and choose KDM instead of slim as display manager this messagge disappears (and KDM login works), but this is not a solution. KDM must provide own display-manager.service file/soft-link. This message shouldn't appear on a machine with only KDM display-manager installed, and when I choose between multiple display-managers the softlink /etc/systemd/system/display-manager.service must be updated --- System information. --- Architecture: i386 Kernel: Linux 3.14.12 Debian Release: jessie/sid 500 testing cdn.debian.net --- Package information. --- Depends (Version) | Installed ===-+-=== adduser | 3.113+nmu3 consolekit | 0.4.6-4 debconf (= 0.5) | 1.5.53 OR debconf-2.0 | kde-wallpapers-default | 4:4.12.4-1 kde-workspace-kgreet-plugins (= 4:4.11.9-1) | 4:4.11.9-1 lsb-base (= 3.2-14) | 4.1+Debian13 kde-runtime ( 4:4.10) | 4:4.13.1-1 libc6 (= 2.15) | 2.19-4 libck-connector0 (= 0.2.1) | 0.4.6-4 libdbus-1-3 (= 1.0.2) | 1.8.4-1 libkdecore5 (= 4:4.11) | 4:4.13.1-1 libkdeui5 (= 4:4.11) | 4:4.13.1-1 libkio5 (= 4:4.11) | 4:4.13.1-1 libknewstuff3-4 (= 4:4.11) | 4:4.13.1-1 libkworkspace4abi2 (= 4:4.11.9-1) | 4:4.11.9-1 libpam0g (= 0.99.7.1) | 1.1.8-3 libqimageblitz4 (= 1:0.0.4) | 1:0.0.6-4 libqt4-svg (= 4:4.5.3) | 4:4.8.6+dfsg-2 libqt4-xml (= 4:4.5.3) | 4:4.8.6+dfsg-2 libqtcore4 (= 4:4.7.0~beta1) | 4:4.8.6+dfsg-2 libqtgui4 (= 4:4.8.0) | 4:4.8.6+dfsg-2 libstdc++6 (= 4.1.1) | 4.9.0-7 libx11-6 | 2:1.6.2-2 libxau6 | 1:1.0.8-1 libxdmcp6 | 1:1.1.1-1 libxtst6 | 2:1.2.2-1 Recommends (Version) | Installed ==-+-=== kde-workspace | 4:4.11.9-1 OR x-session-manager | OR x-window-manager | logrotate | 3.8.7-1 xserver-xorg | 1:7.7+7 OR xserver | xterm | 308-1 OR x-terminal-emulator | Suggests (Version) | Installed =-+-=== kde-wallpapers | 4:4.12.4-1 kdepasswd | 4:4.12.4-1 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org