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
7 Replies
Codercord
Codercord4w ago
<#1329735522343714906>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
WBR_K
WBR_KOP4w ago
At the bottom are the error messages.
WBR_K
WBR_KOP4w ago
WBR_K
WBR_KOP4w 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.
Phorcys
Phorcys7d ago
hey @WBR_K, sorry for the delay, it seems your issue went under the radar have you figured this out?
WBR_K
WBR_KOP2d ago
Thats alright. 👍 I wasnt able to fix this yet. Good to know is that I used minikube running on docker engine.
Cian
Cian16h ago
Try setting "default-cgroupns-mode": "host" in your /etc/docker/daemon.json (and restart Docker)

Did you find this page helpful?