Public bug reported:

Message from the command line

> $ chromium-browser
> /sys/fs/cgroup/unified/user.slice/user-1000.slice/cgroup.procs

As a workaround I ran the script found in
https://github.com/systemd/systemd/issues/3388

```
#!/usr/bin/env bash

set -euo pipefail

file=/sys/fs/cgroup/user.slice/user-$(id -u).slice/cgroup.procs

sudo chown $(whoami):root $file
sudo chmod g+w            $file
```

Now the error is:

> $ chromium-browser 
> /user.slice/user-1000.slice/session-1.scope is not a snap cgroup


In boot option I have

> GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1"

Running docker with option

> "exec-opts": ["native.cgroupdriver=systemd"],


rif. https://lists.ubuntu.com/archives/ubuntu-devel/2021-August/041598.html 
(this was merged)
https://github.com/systemd/systemd/issues/3388

Ubuntu 21.10 uname -a

> Linux iltoshibo 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36
UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

> $ grep cgroup /proc/filesystems
> nodev cgroup
> nodev cgroup2

> $ grep ^cgroup /etc/mtab 
> cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime 0 0

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: snapd 2.53+21.10ubuntu1
ProcVersionSignature: Ubuntu 5.13.0-22.22-generic 5.13.19
Uname: Linux 5.13.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu71
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: XFCE
Date: Mon Jan 10 11:59:32 2022
InstallationDate: Installed on 2020-03-22 (659 days ago)
InstallationMedia: Xubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: snapd
UpgradeStatus: Upgraded to impish on 2022-01-02 (7 days ago)
modified.conffile..etc.xdg.autostart.snap-userd-autostart.desktop: [deleted]

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug impish

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

Title:
  snap can not start chromium-browser with cgroup v2 and hierarchy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1956942/+subscriptions


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

Reply via email to