Podman troubleshooting: Difference between revisions

From wikinotes
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Error: OCI runtime error: crun: writing file `/sys/fs/cgroup/cgroup.subtree_control` invalid argument =
= Error: OCI runtime error: crun: writing file `/sys/fs/cgroup/cgroup.subtree_control` invalid argument =
<blockquote>
<blockquote>
**Temp Workaround 1:**<br>
[[cgroups|cgroup2]] doesn't yet support realtime-processes.<br>
maybe we downgrade to the original cgroup?<br>
 
In your [[Linux kernel configuration]] kernel parameters/options, set
<syntaxhighlight lang="bash">
systemd.unified_cgroup_hierarchy=0  # .. or 1 actually? just changed and works now
</syntaxhighlight>
 
Issue/Cause:
* https://github.com/containers/crun/issues/704
* https://github.com/lxc/lxc/issues/3545
* https://bugs.archlinux.org/task/71560
 
{{ expand
| Earlier workarounds
|
 
'''Temp Workaround 1:'''<br>
<code>sc --user stop mpd.service</code>, then podman, then can start mpd (or start as non realtime service).<br>
<code>sc --user stop mpd.service</code>, then podman, then can start mpd (or start as non realtime service).<br>
This worked initially but no longer.
This worked initially but no longer.


**Temp Workaround 2:**<br>
'''Temp Workaround 2:'''<br>
Assign the [[Linux kernel configuration]] following kernel params:<br>
Assign the [[Linux kernel configuration]] following kernel params:<br>
NOTE: grub abstracts kernel params? these params are not available.
NOTE: grub abstracts kernel params? these params are not available.
Line 13: Line 30:
</syntaxhighlight>
</syntaxhighlight>


**Temp Workaround 3:**<br>
}}
Apparently rootless podman just-works.
</blockquote><!-- Error: OCI runtime error: crun: writing file `/sys/fs/cgroup/cgroup.subtree_control` invalid argument -->
 
= Error: kernel does not support overlay fs: 'overlay' is not supported over extfs at "/var/lib/containers/storage/overlay": backing file system is unsupported for this graph driver =
<blockquote>
See https://github.com/containers/podman/issues/1516


just reboot.


Issue/Cause:
</blockquote><!-- Error: kernel does not support overlay fs: 'overlay' is not supported over extfs at "/var/lib/containers/storage/overlay": backing file system is unsupported for this graph driver -->
* https://github.com/containers/crun/issues/704
* https://github.com/lxc/lxc/issues/3545
* https://bugs.archlinux.org/task/71560
</blockquote><!-- Error: OCI runtime error: crun: writing file `/sys/fs/cgroup/cgroup.subtree_control` invalid argument -->

Latest revision as of 19:50, 21 April 2024

Error: OCI runtime error: crun: writing file `/sys/fs/cgroup/cgroup.subtree_control` invalid argument

cgroup2 doesn't yet support realtime-processes.
maybe we downgrade to the original cgroup?

In your Linux kernel configuration kernel parameters/options, set

systemd.unified_cgroup_hierarchy=0  # .. or 1 actually? just changed and works now

Issue/Cause:

Earlier workarounds


Temp Workaround 1:
sc --user stop mpd.service, then podman, then can start mpd (or start as non realtime service).
This worked initially but no longer.

Temp Workaround 2:
Assign the Linux kernel configuration following kernel params:
NOTE: grub abstracts kernel params? these params are not available.

systemd.unified_cgroup_hierarchy=1
cgroup_enable=cpu cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1


Error: kernel does not support overlay fs: 'overlay' is not supported over extfs at "/var/lib/containers/storage/overlay": backing file system is unsupported for this graph driver

See https://github.com/containers/podman/issues/1516

just reboot.