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

"runc": executable file not found #1309

Closed
mstavares opened this issue Jan 30, 2019 · 3 comments
Closed

"runc": executable file not found #1309

mstavares opened this issue Jan 30, 2019 · 3 comments

Comments

@mstavares
Copy link

Hi,

I have the same issue that is described here nkhare/k8s-cicd-webinars#6

error:
error running container: error creating container for [/bin/sh -c mkdir -p /usr/src/app]: : exec: "runc": executable file not found in $PATH

This is running in a docker:
RUN sudo apt-get install golang-go -y

RUN mkdir ~/buildah
RUN cd ~/buildah
RUN export GOPATH=pwd
RUN git clone https://github.com/projectatomic/buildah ./src/github.com/projectatomic/buildah
RUN sudo cp -a /projects/src/github.com/projectatomic/buildah/vendor/github.com/opencontainers/runc /usr/bin/.
RUN sudo apt-get install buildah -y

Am I missing something?

Thanks,

@rhatdan
Copy link
Member

rhatdan commented Jan 30, 2019

You need to install runc and a few other packages in order to make this work, or just install the buildah package which should pull in the packaged software. Look at https://github.com/containers/buildah/blob/master/install.md

@mstavares
Copy link
Author

Hi @rhatdan

Thanks a lot!

@david618
Copy link

Thanks for posting. I just encountered this with k3s. When I added a node the pods were showing an error like.

Dec 13 10:55:15 K8SW-04 k3s[889]: E1213 10:55:15.328927     889 kuberuntime_sandbox.go:70] "Failed to create sandbox for pod" err="rpc error: code = Unknown desc = failed to create containerd task: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/45f94047789b998bab98d9a81b41b8b159fd0b27190ef11ea0cf030d120e1eb1/log.json: no such file or directory): exec: \"runc\": executable file not found in $PATH: unknown" pod="longhorn-system/longhorn-csi-plugin-6k94d"

On the node I ran "sudo apt install runc". Error went away and pods started landing.

  • OS: Ubuntu 20.04
  • Rancher: 2.6
  • k3s Kubernetes: v1.24.4+k3s1

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants