[Bug 1951491] Re: Can't run snaps: .slice/session-1.scope is not a snap cgroup
Tim Richardson
1951491 at bugs.launchpad.net
Thu Oct 20 04:00:07 UTC 2022
Akkana, what login manager are you using with openbox?
On Thu, 20 Oct 2022 at 14:57, Tim Richardson <tim at tim-richardson.net>
wrote:
> 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 <1951491 at bugs.launchpad.net>
> 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
>
--
Tim Richardson
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1951491
Title:
Can't run snaps: .slice/session-1.scope is not a snap cgroup
Status in X2Go:
New
Status in snapd package in Ubuntu:
Invalid
Status in systemd package in Ubuntu:
Incomplete
Status in x2goserver package in Ubuntu:
Confirmed
Status in snapd package in Debian:
New
Bug description:
I just upgraded from hirsute to impish using do-release-upgrade. On
the upgraded system, I can't run either firefox or chromium (both of
which worked fine under hirsute). Both fail with:
/user.slice/user-NNN.slice/session-1.scope is not a snap cgroup where
NNN is my uid
With firefox, I was able to fix the problem with:
snap remove --purge firefox
apt purge firefox
apt install firefox
Now firefox works. But I tried the same thing substituting chromium-
browser for firefox, and it didn't help: chromium fails with the same
error message.
I guess there must be something left over from the hirsute version of
snapd that isn't getting noticed or cleared by the impish version?
Someone suggested this might be related to bug 1850667, but that bug
is marked fixed as of a couple months ago, and I just did this upgrade
today. Also, it doesn't mention the error message I'm seeing.
ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: snapd 2.53+21.10ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-21.21-generic 5.13.18
Uname: Linux 5.13.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Thu Nov 18 18:12:45 2021
InstallationDate: Installed on 2020-04-29 (568 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: snapd
UpgradeStatus: Upgraded to impish on 2021-11-18 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/x2go/+bug/1951491/+subscriptions
More information about the foundations-bugs
mailing list