rkt fails on Debian GNU/Linux 7 (wheezy) with unclear error #1042
Comments
Upstream issue: systemd/systemd#207 |
Does this affect stock systemd-nspawn on wheezy? |
Don't know if interesting for you, but it fails in the same way when following the README.md instructions and using vagrant (in VirtualBox on OS X). |
Yes. See systemd/systemd#207 and systemd/systemd#210 |
@iaguis I should have been more specific: I was asking about the cgroups thing causing systemd-nspawn to always fail, rather than just the diagnostics issue of it not printing output when things go wrong. |
Oh, sorry. Yes, nspawn alone fails too. It expects cgroups being mounted in |
The missing error message is fixed by systemd/systemd#207 systemd/systemd#272. It will be in systemd-v221. I now have correct error messages:
I don't know if we should do something else about this. |
Maybe we should add something to the documentation saying that rkt expects the cgroup hierarchy mounted in |
+1
|
Even when I prepare the host according to https://wiki.debian.org/LXC#Prepare_the_host I still get a similar message. How did it work before? I am on Ubuntu 14.02 LTS. Prior to rebuilding the latest So I prepared host according to the Debian link.
Here's my
Trying to run etcd.aci:
Output:
|
Did something change? Previously everything worked without messing with mounting cgroup FS. |
Ubuntu 14.04 has some problems with incorrectly set up cgroups (rkt#1042).
That cgroups hierarchy doesn't look right, there should be a directory per controller and there all the controller knobs are in
What's the last version that worked? In rkt v0.6.1 we updated stage1's systemd from v215 to v220 and v218 introduced the cgroup-tree creation code. That might be the cause. |
To add another data point: 0.5.6 works with the provided 14.04 Vagrantfile, 0.6.1 does not. When I modified the Vagrantfile to use 15.04 ( |
I'm seeing this same thing, trying to get ubuntu 14.04 working, and seeing the cgroups set up as @kontsevoy describes |
installing the package cgroup-lite seems to help and sets up the cgroups as is expected |
@nstott: so installing that package makes rkt work? |
@iaguis yeah, it set up the cgroups as a controler per directory, i was able to start and run rkt containers from the command line properly after that i did have a problem (probably a seperate problem) when trying to start a container via upstart though, and got this
but that might be a seperate problem entirely |
I can confirm installing |
After #1437, installing |
Debian GNU/Linux 7 (wheezy)
It fails without error message:
When using
SYSTEMD_LOG_LEVEL=debug
, the error message is unclear:When using strace, we see that the nspawn error is related to cgroups:
Indeed, the cgroup subsystems are not mounted:
Similar issue to #996.
The solution might be on https://wiki.debian.org/LXC#Prepare_the_host but rkt+nspawn should give better error messages.
The text was updated successfully, but these errors were encountered: