Encountered this problem while attempting to run a confined snap from a
cronjob.

All that is wrong actually is that the systemd user session has not been
properly setup.

I had to install dbus-user-session and then make sure the
/run/user/../bus was initialized by for example runuser -u user
/bin/true.

Cron by itself won't load pam_systemd in the session because it uses
common-session-noninteractive in pam which doesn't load pam_systemd.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1951491

Title:
  Can't run snaps: .slice/session-1.scope is not a snap cgroup

To manage notifications about this bug go to:
https://bugs.launchpad.net/x2go/+bug/1951491/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to