Container reboot and "Failed to attach 1 to compat systemd cgroup"

https://github.com/balena-os/meta-balena/pull/1658 will be merged in the next meta-balena release and then each device goes through its own update/testing cycle.

We also have a suggested workaround to try for existing devices as well.

In your application, you’ll be starting systemd with some arguments. entry.sh if based on our examples.

You’ll need to add the following command before starting systemd systemd.legacy_systemd_cgroup_controller

e.g. https://github.com/balena-io-playground/balenalib-systemd-example/blob/6623fc63892e92386a4885d93ef94fb14b5fb9e4/app/systemd/entry.sh#L88 needs to be appended with systemd.legacy_systemd_cgroup_controller

1 Like