[SOLVED] Problems on Odroid C2 and Docker

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

[SOLVED] Problems on Odroid C2 and Docker

Postby lumpilou » Wed Apr 21, 2021 5:14 pm

Hello all
After the last update I had a problem on my C2 board with Docker.
The following error messages came up:
$this->bbcode_second_pass_code('', 'setting cgroup config for procHooks process caused')
and others like this.
$this->bbcode_second_pass_code('', 'docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: process_linux.go:458: setting cgroup config for procHooks process caused: can't load program: invalid argument: unknown.')

The following solution helped me:
1. add the following entry in /boot/cmdline.txt.
$this->bbcode_second_pass_code('', 'systemd.unified_cgroup_hierarchy=0')
2. reboot
3. profit! All containers were restarted and no more problems.

Since I couldn't find anything here in the forum, I thought I'd send it so that someone who has the same problem doesn't have to search long.
lumpilou
 
Posts: 1
Joined: Wed Apr 21, 2021 4:58 pm

Re: [SOLVED] Problems on Odroid C2 and Docker

Postby mhofmann » Mon Apr 26, 2021 4:01 pm

I had the exact same issue, but no /boot/cmdline.txt. I had to edit the respective line in boot.ini instead:
$this->bbcode_second_pass_code('', 'setenv bootargs "[...] systemd.unified_cgroup_hierarchy=0"')
Thanks for the fix!
mhofmann
 
Posts: 1
Joined: Mon Apr 26, 2021 3:57 pm

Re: [SOLVED] Problems on Odroid C2 and Docker

Postby razaq » Tue Apr 27, 2021 8:44 am

Same issue and same fix here on the odroid N2+.
I wouldnt mark this topic as solved, this is a dirty workaround.

Didnt touch the kernel before, wtf changed?
razaq
 
Posts: 2
Joined: Tue Apr 27, 2021 8:40 am

Re: [SOLVED] Problems on Odroid C2 and Docker

Postby wallace11 » Fri May 07, 2021 1:19 am

I've got the same issue with the XU4.

It started happening right after the systemd 248 update so I consider it the main culprit.

edit
confirmed: https://wiki.archlinux.org/title/Docker#Run_GPU_accelerated_Docker_containers_with_NVIDIA_GPUs

edit2
another good read https://medium.com/nttlabs/cgroup-v2-596d035be4d7
wallace11
 
Posts: 1
Joined: Thu May 23, 2019 1:24 pm

Re: [SOLVED] Problems on Odroid C2 and Docker

Postby razaq » Tue Jun 01, 2021 2:19 pm

Your links are outdated, docker does support cgroups v2 since version 20.10.

The issue is you need kernel 4.15 for cgroups v2, which our devices dont have.
We need to upgrade our kernel to something newer.
razaq
 
Posts: 2
Joined: Tue Apr 27, 2021 8:40 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 6 guests