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

[BUG] Error: default OCI runtime "runc" not found: invalid argument #8227

Closed
usrbinkat opened this issue Nov 3, 2020 · 6 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@usrbinkat
Copy link

buildah bug #1754 seen using podman on Ubuntu 20.10 Groovy Gorilla.

/kind bug

Test:

apt update -y && apt upgrade -y && apt install podman --install-recommends -y
podman run -it --log-level=debug --net=host k8s.gcr.io/busybox sh

Error:

DEBU[0000] Initializing event backend file              
WARN[0000] Error initializing configured OCI runtime kata: no valid executable found for OCI runtime kata: invalid argument 
WARN[0000] Error initializing configured OCI runtime runc: no valid executable found for OCI runtime runc: invalid argument 
DEBU[0000] using runtime "/usr/bin/crun"                
Error: default OCI runtime "runc" not found: invalid argument

Ubuntu Version:

root@u01:~# cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.10 (Groovy Gorilla)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.10"
VERSION_ID="20.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy

Resolution:

root@u01:~# apt-get install runc && echo && podman run -it --net=host k8s.gcr.io/busybox cat /etc/os-release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  runc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2553 kB of archives.
After this operation, 11.0 MB of additional disk space will be used.
Selecting previously unselected package runc.
(Reading database ... 32162 files and directories currently installed.)
Preparing to unpack .../runc_1.0.0~rc10-0ubuntu2_amd64.deb ...
Unpacking runc (1.0.0~rc10-0ubuntu2) ...
Setting up runc (1.0.0~rc10-0ubuntu2) ...
Processing triggers for man-db (2.9.3-2) ...

NAME=Buildroot
VERSION=2014.02
ID=buildroot
VERSION_ID=2014.02
PRETTY_NAME="Buildroot 2014.02"

Podman version

root@u01:~# podman version
Version:      2.0.6
API Version:  1
Go Version:   go1.14.7
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64

Podman info debug

host:
  arch: amd64
  buildahVersion: 1.15.2
  cgroupVersion: v1
  conmon:
    package: 'conmon: /usr/libexec/podman/conmon'
    path: /usr/libexec/podman/conmon
    version: 'conmon version 2.0.20, commit: unknown'
  cpus: 8
  distribution:
    distribution: ubuntu
    version: "20.10"
  eventLogger: file
  hostname: u01
  idMappings:
    gidmap: null
    uidmap: null
  kernel: 5.8.0-7625-generic
  linkmode: dynamic
  memFree: 32338182144
  memTotal: 33374785536
  ociRuntime:
    name: runc
    package: 'runc: /usr/sbin/runc'
    path: /usr/sbin/runc
    version: 'runc version spec: 1.0.1-dev'
  os: linux
  remoteSocket:
    exists: true
    path: /run/podman/podman.sock
  rootless: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 0
  swapTotal: 0
  uptime: 19m 13.58s
registries:
  search:
  - quay.io
  - docker.io
store:
  configFile: /etc/containers/storage.conf
  containerStore:
    number: 4
    paused: 0
    running: 0
    stopped: 4
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /var/lib/containers/storage
  graphStatus:
    Backing Filesystem: btrfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  imageStore:
    number: 1
  runRoot: /var/run/containers/storage
  volumePath: /var/lib/containers/storage/volumes
version:
  APIVersion: 1
  Built: 0
  BuiltTime: Thu Jan  1 00:00:00 1970
  GitCommit: ""
  GoVersion: go1.14.7
  OsArch: linux/amd64
  Version: 2.0.6

apt list podman

podman/groovy,now 2.0.6+dfsg1-1ubuntu1 amd64 [installed]

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?

Yes

Local clean install of Ubuntu

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 3, 2020
@zhangguanzhang
Copy link
Collaborator

the latest version is 2.1.1, did you try with it?

@usrbinkat
Copy link
Author

Oooofffff I fell for one of the classic blunders and wasn't thorough in checking versions. I'm sorry, closing this bug. That was it!

@lsm5 lsm5 assigned lsm5 and unassigned lsm5 Nov 3, 2020
@lsm5
Copy link
Member

lsm5 commented Nov 3, 2020

@usrbinkat btw, with ubuntu 20.10, the packages are available in the default ubuntu repos itself, so I think the best place to report future packaging/installation issues would be ubuntu's launchpad site. Issues for older ubuntus can be reported here.

@usrbinkat
Copy link
Author

@lsm5 That is fair, apparently 2.0.6 from September was what I got from default ppa's and I had to go find version 2.1.1 so it makes sense that the packages will be updating as usual.

@alanhoyle
Copy link

I'm seeing this as well on Ubuntu 20.10. Is there an official deb package or alternate PPA for podman/buildah that I should be using instead of the default Ubuntu 20.10 repos? Or should I be putting in a request to Ubuntu to update?

@noahwilliamsson
Copy link

@alanhoyle I ran into the same issue on Ubuntu 20.10 (after doing sudo apt install -y buildah podman on a fresh install). The issue can be resolved with sudo apt install -y runc && sudo systemctl start podman. In a different thread someone linked to an upstream bug report at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971253.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

6 participants