Comment 60 for bug 1951491

Revision history for this message
Tim Richardson (tim-richardson) wrote : Re: [Bug 1951491] Re: Can't run snaps: .slice/session-1.scope is not a snap cgroup

The problem was identified as the session not being established correctly
in some instances, and those instances were 100% involved in non-mainstream
session starts (nomachine or other remote session starts such as X2Go).
The fixes apart from disabling cgroups v2 involve simulating one aspect of
a successful login.

It seems that the login process of these sessions skips something that
systemd now requires. X2Go for instance is old and it is not surprising
perhaps. I think the problem is happening at login not when the gui shell
is started.
I don't know openbox, but if you consistently get this problem, may be that
is the reason. So the common element is not remote desktop as such, but old
and non-compliant login process (I hypothesize). I hope you report this
back to openbox and they have people interesting in investigating it.
Nomachine is a blackbox (non open source) and I don't think X2Go has
development effort.

 Obviously a standard gnome, plasma or xfce session does not get the
problem, because if Ubuntu, Kubuntu and Xubuntu users couldn't use the
default browser, we would know about it. All the complaining about slow
start times would be nothing to the browser not actually starting.

There are some reports here of people using gnome and encountering the
problem. I can not explain that, except that there may be another root
cause, or those systems may be strangely misconfigured. Also, it is not a
snap bug and if snap needs to run in a v2 cgroup and the session can't
enable this, what do you propose that snapd do about it?

On Thu, 20 Oct 2022 at 08:20, Akkana Peck <email address hidden>
wrote:

> Tim, I'm not sure where you got that impression about remote desktops
> (re #55), but I'm the original reporter and I reported the problem on a
> local openbox session (see comment #6). My impression was that most of
> the people chiming in were similar to me, running local sessions with
> various window managers other than gnome or kde.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> 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
>
>

--
Tim Richardson