opencontainers / opencontainers/runc
mounting "cgroup" to rootfs at "/sys/fs/cgroup" caused: stat no such file or directory
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 13.5k
- Forks
- 2.3k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 30
Description
I use the oci worker of buildkit to build the image, and I encounter the following error, which is an occasional error.
#10 [builder 4/4] RUN go build main.go
#10 0.143 container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "cgroup" to rootfs at "/sys/fs/cgroup" caused: stat /sys/fs/cgroup/freezer/kubepods-burstable-pode4fa6d79_1abb_4e77_9f6d_4e62ff0d3437.slice:cri-containerd:7c1fc613a2b03bb85b958931fa53a0bfc422cdbde70eaa2b15cbf71485c1c4ec/buildkit/r8wym59fjeuwv89y521xsiqza: no such file or directory
#10 ERROR: process "/bin/sh -c go build main.go" did not complete successfully: exit code: 1
------
> [builder 4/4] RUN go build main.go:
#10 0.143 container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "cgroup" to rootfs at "/sys/fs/cgroup" caused: stat /sys/fs/cgroup/freezer/kubepods-burstable-pode4fa6d79_1abb_4e77_9f6d_4e62ff0d3437.slice:cri-containerd:7c1fc613a2b03bb85b958931fa53a0bfc422cdbde70eaa2b15cbf71485c1c4ec/buildkit/r8wym59fjeuwv89y521xsiqza: no such file or directory
version
bash-5.1# buildkit-runc --version
runc version v1.0.2
spec: 1.0.2-dev
go: go1.17.13
libseccomp: 2.5.2
Under what circumstances will this problem occur?
thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported runc paths container_linux.go:380, process_linux.go:545, and rootfs_linux.go:76, then inspect how the buildkit OCI worker mounts cgroup at /sys/fs/cgroup. Reproduce the intermittent failure with runc v1.0.2 in the reported Kubernetes/containerd setup and document the circumstances that trigger the missing freezer path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes, linux
- Domain
- infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100