Envbox in kubernetes, cgroup permission issue.

When I create workspace with the Kubernetes (Envbox) template it throws errors about not being able to write to cgroup. I haven't changed anything in the template. https://registry.coder.com/templates/kubernetes-envbox?tab=source
4 Replies
Codercord
Codercord2w ago
<#1329735522343714906>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
WBR_K
WBR_KOP2w ago
At the bottom are the error messages.
WBR_K
WBR_KOP2w ago
WBR_K
WBR_KOP2w ago
Failed to run envbox: get image metadata: start container: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: container_linux.go:427: starting container process caused: process_linux.go:608: container init caused: process_linux.go:529: applying cgroup configuration for process caused: failed to write 309 to cgroup.procs: write /sys/fs/cgroup/docker/e92281f668b4c6620e0863bcdab79060359506d7f4669a4f0d709ee9c730db08/init.scope/cgroup.procs: operation not supported: unknown

Failed to run envbox: run: get image metadata: start container: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: container_linux.go:427: starting container process caused: process_linux.go:608: container init caused: process_linux.go:529: applying cgroup configuration for process caused: failed to write 309 to cgroup.procs: write /sys/fs/cgroup/docker/e92281f668b4c6620e0863bcdab79060359506d7f4669a4f0d709ee9c730db08/init.scope/cgroup.procs: operation not supported: unknown
Failed to run envbox: get image metadata: start container: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: container_linux.go:427: starting container process caused: process_linux.go:608: container init caused: process_linux.go:529: applying cgroup configuration for process caused: failed to write 309 to cgroup.procs: write /sys/fs/cgroup/docker/e92281f668b4c6620e0863bcdab79060359506d7f4669a4f0d709ee9c730db08/init.scope/cgroup.procs: operation not supported: unknown

Failed to run envbox: run: get image metadata: start container: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: container_linux.go:427: starting container process caused: process_linux.go:608: container init caused: process_linux.go:529: applying cgroup configuration for process caused: failed to write 309 to cgroup.procs: write /sys/fs/cgroup/docker/e92281f668b4c6620e0863bcdab79060359506d7f4669a4f0d709ee9c730db08/init.scope/cgroup.procs: operation not supported: unknown
I also tried coder/envbox versions: 0.6.1 & 0.5.3.

Did you find this page helpful?