Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to create container #1826

Closed
ms140569 opened this issue Apr 19, 2023 · 3 comments
Closed

failed to create container #1826

ms140569 opened this issue Apr 19, 2023 · 3 comments

Comments

@ms140569
Copy link

I'm running this youki compiled from source:

youki version 0.0.5
commit: 0.0.5-0-984e41bb

on:

Ubuntu 18.04.6 LTS
Linux 4.15.0-167-generic x86_64 x86_64

i've tried to setup the busybox container as described here:

https://github.com/containers/youki#create-and-run-a-container

and setup a standard - not rootless - container, but get this error:

...
[DEBUG crates/libcgroups/src/v1/manager.rs:43] 2023-04-19T12:28:09.322205964+02:00 Get path for subsystem: freezer
[ERROR crates/youki/src/main.rs:145] 2023-04-19T12:28:09.328524127+02:00 error in executing command: failed to create container

Caused by:
0: failed to fork process
1: failed to run clone3
2: 38
Error: failed to create container

Caused by:
0: failed to fork process
1: failed to run clone3
2: 38

I've found these entries in the strace output:

statx(AT_FDCWD, "/sys/fs/cgroup/net_cls,net_prio/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/cpuset/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/pids/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/perf_event/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/hugetlb/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/memory/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/cpu,cpuacct/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/blkio/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/freezer/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/net_cls,net_prio/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/cpu,cpuacct/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)
statx(AT_FDCWD, "/sys/fs/cgroup/devices/my_testcontainer", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffd5a69a1d0) = -1 ENOENT (No such file or directory)

Could this be related?
What could be the reason for the failure?
Is there anything i could do to troubleshoot this without the need for full-fledged debugging into it?

cheers, Matthias

@utam0k
Copy link
Member

utam0k commented Apr 19, 2023

Hi, @ms140569! Thanks for your report.

Unfortunately, you need to update the kernel version because we need to clone3(2)

Caused by:
0: failed to fork process
1: failed to run clone3
2: 38
Error: failed to create container

@utam0k utam0k closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2023
@ms140569
Copy link
Author

Thanks for the very fast clarification! We might place those system-requirements somewhere prominent in the README.md ...

@utam0k
Copy link
Member

utam0k commented Apr 26, 2023

@ms140569 I have sent out the PR #1857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants