Open adombeck opened 3 months ago
I spent some more time investigating this issue. Here are some findings:
sudo sh -c "systemctl stop authd && snap remove --purge authd-msentraid"
or
sudo sh -c "systemctl stop authd && snap install authd-msentraid"
snap remove
/ snap install
command causes the authd service to be restarted, but authd hangs when it tries to authenticate to the system bus because the D-Bus daemon for the system bus doesn't respond.dbus-monitor --system
or any calls made by d-feet
) for 85 seconds.systemctl reload dbus
so it indicates that the D-Bus daemon is reloaded):
dbus-daemon[817]: Unknown group "power" in message bus configuration file
dbus-daemon[817]: [system] Reloaded configuration
Relevant messages from the journal (including debug output I added to authd and dbus-daemon) after I ran sudo sh -c "systemctl stop authd && snap install authd-msentraid"
:
Sep 16 22:46:42 ubuntu sudo[4882]: user : TTY=pts/1 ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/sh -c 'systemctl stop authd && snap install authd-msentraid'
Sep 16 22:46:42 ubuntu sudo[4882]: pam_unix(sudo:session): session opened for user root(uid=0) by user(uid=1000)
Sep 16 22:46:42 ubuntu systemd[1]: Stopping authd.service - Authd daemon service...
Sep 16 22:46:42 ubuntu authd[962]: INFO Stopping daemon requested.
Sep 16 22:46:42 ubuntu authd[962]: INFO Wait for active requests to close.
Sep 16 22:46:42 ubuntu authd[962]: DEBUG All connections have now ended.
Sep 16 22:46:42 ubuntu authd[962]: XXX: Cleaning up broker manager
Sep 16 22:46:42 ubuntu authd[962]: INFO XXX: D-Bus connection closed
Sep 16 22:46:42 ubuntu systemd[1]: authd.service: Deactivated successfully.
Sep 16 22:46:42 ubuntu systemd[1]: Stopped authd.service - Authd daemon service.
Sep 16 22:46:42 ubuntu snapd[896]: api_snaps.go:427: Installing snap "authd-msentraid" revision unset
Sep 16 22:46:44 ubuntu systemd[1]: Reloading requested from client PID 4985 ('systemctl') (unit snapd.service)...
Sep 16 22:46:44 ubuntu systemd[1]: Reloading...
Sep 16 22:46:44 ubuntu systemd[1]: Configuration file /run/systemd/system/netplan-ovs-cleanup.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
Sep 16 22:46:44 ubuntu systemd[1]: Reloading finished in 237 ms.
Sep 16 22:46:44 ubuntu systemd[1]: Cannot find unit for notify message of PID 4985, ignoring.
Sep 16 22:46:44 ubuntu systemd[1]: Mounting snap-authd\x2dmsentraid-44.mount - Mount unit for authd-msentraid, revision 44...
Sep 16 22:46:44 ubuntu kernel: loop0: detected capacity change from 0 to 34832
Sep 16 22:46:44 ubuntu systemd[1]: Mounted snap-authd\x2dmsentraid-44.mount - Mount unit for authd-msentraid, revision 44.
Sep 16 22:46:44 ubuntu systemd[1]: Starting authd.service - Authd daemon service...
Sep 16 22:46:45 ubuntu authd[5132]: INFO No configuration file: Config File "authd" Not Found in "[/ /etc/authd /usr/libexec]".
Sep 16 22:46:45 ubuntu authd[5132]: We will only use the defaults, env variables or flags.
Sep 16 22:46:45 ubuntu authd[5132]: DEBUG Debug mode is enabled
Sep 16 22:46:45 ubuntu authd[5132]: DEBUG Building authd object
Sep 16 22:46:45 ubuntu authd[5132]: DEBUG Building broker detection
Sep 16 22:46:45 ubuntu authd[5132]: DEBUG XXX: Connecting to system bus
Sep 16 22:46:45 ubuntu authd[5132]: DEBUG XXX: Authenticating to system bus
Sep 16 22:46:45 ubuntu authd[5132]: XXX: Sending null byte
Sep 16 22:46:45 ubuntu authd[5132]: XXX: Sending AUTH
Sep 16 22:46:45 ubuntu authd[5132]: XXX: Reading auth line
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.017:189): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.authd-msentraid" pid=5134 comm="apparmor_parser"
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.098:190): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.authd-msentraid.hook.install" pid=5136 comm="apparmor_parser"
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.102:191): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.authd-msentraid.authd-msentraid" pid=5135 comm="apparmor_parser"
Sep 16 22:46:45 ubuntu systemd[1]: Reloading requested from client PID 5144 ('systemctl') (unit snapd.service)...
Sep 16 22:46:45 ubuntu systemd[1]: Reloading...
Sep 16 22:46:45 ubuntu systemd[1]: Configuration file /run/systemd/system/netplan-ovs-cleanup.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
Sep 16 22:46:45 ubuntu systemd[1]: Reloading finished in 247 ms.
Sep 16 22:46:45 ubuntu systemd[1]: Cannot find unit for notify message of PID 5144, ignoring.
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.732:192): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/snapd/21759/usr/lib/snapd/snap-confine" pid=5282 comm="apparmor_parser"
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.732:193): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/snapd/21759/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=5282 comm="apparmor_parser"
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.826:194): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.authd-msentraid.authd-msentraid" pid=5284 comm="apparmor_parser"
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.831:195): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.authd-msentraid" pid=5286 comm="apparmor_parser"
Sep 16 22:46:45 ubuntu kernel: audit: type=1400 audit(1726519605.832:196): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.authd-msentraid.hook.install" pid=5287 comm="apparmor_parser"
Sep 16 22:47:39 ubuntu dbus-daemon[876]: Unknown group "power" in message bus configuration file
Sep 16 22:48:10 ubuntu dbus-daemon[876]: [system] Reloaded configuration
Sep 16 22:48:10 ubuntu cups-browsed[1236]: WARNING: Unhandled message: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=ActivatableServicesChanged
Sep 16 22:48:10 ubuntu dbus-daemon[876]: XXX: In process_command: server command=AUTH
Sep 16 22:48:10 ubuntu dbus-daemon[876]: XXX: In handle_server_state_waiting_for_auth: command=0, args=
Sep 16 22:48:10 ubuntu dbus-daemon[876]: XXX: In handle_auth
Sep 16 22:48:10 ubuntu dbus-daemon[876]: XXX: In process_command: server command=AUTH
Sep 16 22:48:10 ubuntu dbus-daemon[876]: XXX: In handle_server_state_waiting_for_auth: command=0, args=
Sep 16 22:48:10 ubuntu dbus-daemon[876]: XXX: In handle_auth
Sep 16 22:48:10 ubuntu authd[5132]: XXX: Got auth line: [REJECTED EXTERNAL]
Describe the issue
I can somewhat reliably reproduce the error with the steps to reproduce below.
I first encountered the issue with my
force-clean-install
script.Steps to reproduce it
authd
andauthd-mesentraid
:authd
and reinstallauthd-msentraid
with a single sudo command:authd-msentraid
hangs in theRun install hook of "authd-msentraid" snap if present
step.sudo
:sudo
failing with the following error message:authd-msentraid
succeeds. Sometimes gnome-shell crashes before the installation ofauthd-msentraid
succeeds.System information and logs
Relevant snippet from the journal: