clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
521 stars 29 forks source link

gdm-hw-accel.service: Two services allocated for the same bus name #223

Closed lucabelluccini closed 6 years ago

lucabelluccini commented 6 years ago

Describe the bug Prior to update 25430, I had no more the graphical login and desktop. I updated to the version mentioned above and I can get to login but I get:

> dmesg
...
...
[    4.475524] systemd[1]: Failed to put bus name to hashmap: File exists
[    4.475535] systemd[1]: gdm-hw-accel.service: Two services allocated for the same bus name org.gnome.DisplayManager, refusing operation.

And I've got

> journalctl -b | grep gnome-session
Oct 07 17:44:23 udoox86 gnome-session-binary[366]: Entering running state
Oct 07 17:44:31 udoox86 /usr/libexec/gdm-x-session[584]: /usr/share/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent -- /usr/bin/gnome-session
Oct 07 17:44:31 udoox86 dbus-daemon[589]: [session uid=1000 pid=589] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.6' (uid=1000 pid=632 comm="/usr/libexec/gnome-session-check-accelerated ")
Oct 07 17:44:31 udoox86 at-spi-bus-launcher[634]: dbus-daemon[639]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=632 comm="/usr/libexec/gnome-session-check-accelerated ")
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file baloo_file.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file baloo_file.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file krunner.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file krunner.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file tracker-extract.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file tracker-extract.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file gmenudbusmenuproxy.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file gmenudbusmenuproxy.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file org.kde.plasmashell.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file org.kde.plasmashell.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file gnome-flashback-screensaver.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file gnome-flashback-screensaver.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file tracker-miner-fs.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file tracker-miner-fs.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file klipper.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file klipper.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session[591]: gnome-session-binary[591]: WARNING: Could not parse desktop file xembedsniproxy.desktop or it references a not found TryExec binary
Oct 07 17:44:32 udoox86 gnome-session-binary[591]: WARNING: Could not parse desktop file xembedsniproxy.desktop or it references a not found TryExec binary
Oct 07 17:44:37 udoox86 gnome-session-binary[591]: Entering running state
Oct 07 17:44:40 udoox86 gnome-session-binary[366]: WARNING: Application 'org.gnome.SettingsDaemon.Rfkill.desktop' killed by signal 15
Oct 07 17:44:40 udoox86 gnome-session[366]: gnome-session-binary[366]: WARNING: Application 'org.gnome.SettingsDaemon.Rfkill.desktop' killed by signal 15

To Reproduce Steps to reproduce the behavior:

  1. Install os
  2. Update up to 25430

Environment (please complete the following information):

Additional context I have started startx once manually.

Similar issues: https://github.com/clearlinux/distribution/issues/10 https://github.com/clearlinux/swupd-client/issues/346

mrkz commented 6 years ago

This looks like a leftover from a swupd update, this was removed from a while now, (May 7 apparently: https://github.com/clearlinux-pkgs/gdm/commit/68e0e80c74d379d87c8a4415a0cc63dcdf2abe48 ).

What's the output of running the following command?

$ sudo swupd verify --picky
lucabelluccini commented 6 years ago

Hello! Thank you for assisting on this.

I get:

Verifying version 25480
Generating list of extra files under /usr
Inspected 229056 files
Verify successful

Notably:

/usr/lib/systemd/system/multi-user.target.wants/gdm-hw-accel.service
/usr/lib/systemd/system/gdm-hw-accel.service

Service:

luca@udoox86 ~ $ sudo systemctl status gdm-hw-accel.service
● gdm-hw-accel.service - GNOME Display Manager (Hardware Accelerated)
   Loaded: error (Reason: Unit gdm-hw-accel.service failed to loaded properly: File exists.)
   Active: inactive (dead)

Oct 08 19:12:13 udoox86 systemd[1]: gdm-hw-accel.service: Two services allocated for the same bus name org.gnome.DisplayManager, refusing operation.
Oct 08 20:26:10 udoox86 systemd[1]: gdm-hw-accel.service: Two services allocated for the same bus name org.gnome.DisplayManager, refusing operation.
Oct 09 00:36:05 udoox86 systemd[1]: gdm-hw-accel.service: Two services allocated for the same bus name org.gnome.DisplayManager, refusing operation.

Should I issue a swupd verify --fix --picky ?

fenrus75 commented 6 years ago

--fix for sure will correct this

On Tue, Oct 9, 2018, 00:45 Luca Belluccini notifications@github.com wrote:

Hello! Thank you for assisting on this.

I get:

Verifying version 25480 Generating list of extra files under /usr Inspected 229056 files Verify successful

Notably:

/usr/lib/systemd/system/multi-user.target.wants/gdm-hw-accel.service /usr/lib/systemd/system/gdm-hw-accel.service

Service:

luca@udoox86 ~ $ sudo systemctl status gdm-hw-accel.service ● gdm-hw-accel.service - GNOME Display Manager (Hardware Accelerated) Loaded: error (Reason: Unit gdm-hw-accel.service failed to loaded properly: File exists.) Active: inactive (dead)

Oct 08 19:12:13 udoox86 systemd[1]: gdm-hw-accel.service: Two services allocated for the same bus name org.gnome.DisplayManager, refusing operation. Oct 08 20:26:10 udoox86 systemd[1]: gdm-hw-accel.service: Two services allocated for the same bus name org.gnome.DisplayManager, refusing operation. Oct 09 00:36:05 udoox86 systemd[1]: gdm-hw-accel.service: Two services allocated for the same bus name org.gnome.DisplayManager, refusing operation.

Should I issue a swupd verify --fix --picky ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clearlinux/distribution/issues/223#issuecomment-428093894, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPeFamsqJByJwKXycHKKzHAVSQdAambks5ujFQ2gaJpZM4XL6e1 .

mrkz commented 6 years ago

from swupd (1)

       verify
          Perform system software installation verification. The program will obtain all the manifests needed from version url and  content  url
          to establish whether the system software is correctly installed and not overwritten, modified, missing or otherwise incorrect (permis‐
          sions, etc.).

          After obtaining the proper resources, all files that are under control of the software update program are verified  according  to  the
          manifest data

          · -f, --fix
                Correct  any  issues found. This will overwrite incorrect file content, add missing files and do additional corrections, permis‐
                sions etc.

          · -Y, --picky
                List (without --fix) or remove (with --fix) files which should not exist. Only files listed in the manifests should exist.

so likely a # swupd verify --fix --picky should be performed.

lucabelluccini commented 6 years ago

Thank you @mrkz @fenrus75 Worked like a charm. It solved the issue. The service was removed.