🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Admin Sun, 29 Nov 2026 22:40
Bug#1155872: snapd: transient scope creation fails in XFCE Wayland session
#6824
Author: Admin
Date: Sun, 29 Nov 2026 22:40
123 lines
6921 bytes
Package: snapd
Version: 2.68.3-3+deb13u1+b7
Severity: normal
X-Debbugs-Cc: sdqwhjk@gmail.com

Dear Maintainer,


The investigation and diagnostic testing of this issue, as well as the development of
 a reproducible workaround, were carried out collaboratively with the assistance of ChatGPT (OpenAI).
 All commands were executed, and the results were tested and verified by me on my Debian 13
 XFCE Wayland system.

I am reporting a failure to launch Snap applications in my XFCE Wayland session.

Environment:
- Debian GNU/Linux 13 (Trixie), amd64
- Kernel: 6.12.118+deb13-amd64
- XFCE session: XFCE 4.20.2-2
- Wayland compositor: labwc 0.8.3-1
- snapd Debian package version: 2.68.3-3+deb13u1+b7
- Firefox Snap: 158.0.1-1 (revision 9113)

The XFCE Wayland session is started using dbus-run-session. The session D-Bus address points to
 a temporary socket under /tmp, while the systemd user manager bus is available at:
unix:path=/run/user/1000/bus

Steps to reproduce:
1. Log in to the XFCE Wayland session.
2. Run:
   SNAPD_DEBUG=1 snap run firefox

Actual result:
The command exits with status 1. The debug log contains:

tracking.go:52: DEBUG: creating transient scope snap.firefox.firefox
tracking.go:221: DEBUG: using session bus
tracking.go:329: DEBUG: StartTransientUnit failed with "org.freedesktop.DBus.Error.Spawn.ChildExited": [Process org.freedesktop.systemd1 exited with status 1]
DEBUG: setting up device cgroup, mode "required"
DEBUG: process in cgroup /user.slice/user-1000.slice/session-16.scope
/user.slice/user-1000.slice/session-16.scope is not a snap cgroup for tag snap.firefox.firefox

Workaround and comparison test:

Running the same command with DBUS_SESSION_BUS_ADDRESS explicitly set to the systemd user manager bus succeeds:

DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus" SNAPD_DEBUG=1 snap run firefox

This command exits with status 0. The debug log confirms that the transient scope is successfully created under:

/user.slice/user-1000.slice/user@1000.service/app.slice/

The relevant log lines include:

tracking.go:221: DEBUG: using session bus
tracking.go:354: DEBUG: create transient scope job
tracking.go:461: DEBUG: transient scope snap.firefox.firefox-...scope created

This A/B test indicates that the D-Bus address used by the XFCE session is relevant to the failure. Explicitly using the systemd user manager bus allows snapd to create the transient scope successfully.

I have developed a user-level launcher workaround that sets DBUS_SESSION_BUS_ADDRESS to unix:path=$XDG_RUNTIME_DIR/bus when launching Snap applications from XFCE. With this workaround, the tested applications launch successfully from the XFCE application menu and desktop shortcuts.

Expected result:
Snap applications should launch normally in an XFCE Wayland session without requiring a manual override of DBUS_SESSION_BUS_ADDRESS.

Questions:
- Is this behaviour related to the interaction between dbus-run-session, the systemd user manager bus and snapd's transient scope creation?
- Is the current session D-Bus selection expected to work with snapd, or is additional integration required?

Additional version information:
The command `snap version` reports snap 2.78 and snapd 2.78, whereas dpkg-query and apt report the installed Debian package version as 2.68.3-3+deb13u1+b7. The installed /usr/lib/snapd/snapd binary matches the checksum recorded in the package's md5sums file. I have not determined the reason for this version discrepancy.

Two full debug logs are attached:
- snap-xfce-failure.log
- snap-xfce-success.log







-- System Information:
Debian Release: 13.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.118+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages snapd depends on:
ii  adduser                                       3.152
ii  apparmor                                      4.1.0-1
ii  ca-certificates                               20250419+deb13u1
ii  dbus-user-session [default-dbus-session-bus]  1.16.2-2
ii  dbus-x11 [dbus-session-bus]                   1.16.2-2
ii  gnupg                                         2.4.7-21+deb13u1
ii  init-system-helpers                           1.69~deb13u1
ii  kmod                                          34.2-2
ii  libapparmor1                                  4.1.0-1
ii  libc6                                         2.41-12+deb13u5
ii  libcap2                                       1:2.75-10+deb13u1+b3
ii  libseccomp2                                   2.6.0-2
ii  libudev1                                      257.13-1~deb13u1
ii  openssh-client                                1:10.0p1-7+deb13u4
ii  squashfs-tools                                1:4.6.1-1
ii  systemd                                       257.13-1~deb13u1
ii  udev                                          257.13-1~deb13u1

Versions of packages snapd recommends:
ii  gnupg  2.4.7-21+deb13u1

Versions of packages snapd suggests:
ii  kdialog  4:25.04.0-1
ii  zenity   4.1.90-1

-- no debconf information
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads