cri-o: CRI-o fails to start after installation
After installing cri-o-1.11 on ubuntu - it fails to start, because runc
is not linked to the right location /usr/bin/runc
OS: ubuntu/xenial64
$ add-apt-repository -y ppa:projectatomic/ppa
$ apt-get update
$ apt-get install -y cri-o-1.11
$ systemctl status crio.service
● crio.service - Open Container Initiative Daemon
Loaded: loaded (/lib/systemd/system/crio.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-09-02 22:30:15 UTC; 2min 8s ago
Docs: https://github.com/kubernetes-incubator/cri-o
Process: 5686 ExecStart=/usr/bin/crio $CRIO_STORAGE_OPTIONS $CRIO_NETWORK_OPTIONS (code=exited, status=1/FAILURE)
Main PID: 5686 (code=exited, status=1/FAILURE)
Sep 02 22:30:15 master1 systemd[1]: Starting Open Container Initiative Daemon...
Sep 02 22:30:15 master1 crio[5686]: time="2018-09-02 22:30:15.891302068Z" level=fatal msg="invalid --runtime value "stat /usr/bin/runc: no such file or directory""
Sep 02 22:30:15 master1 systemd[1]: crio.service: Main process exited, code=exited, status=1/FAILURE
Sep 02 22:30:15 master1 systemd[1]: Failed to start Open Container Initiative Daemon.
Sep 02 22:30:15 master1 systemd[1]: crio.service: Unit entered failed state.
Sep 02 22:30:15 master1 systemd[1]: crio.service: Failed with result 'exit-code'.
$ which runc
$ find / -name runc
/usr/lib/cri-o-runc/sbin/runc
ln -s /usr/lib/cri-o-runc/sbin/runc /usr/bin/runc
$ systemctl start crio
$ systemctl status crio.service
● crio.service - Open Container Initiative Daemon
Loaded: loaded (/lib/systemd/system/crio.service; disabled; vendor preset: enabled)
Active: active (running) since Sun 2018-09-02 22:32:28 UTC; 1s ago
Docs: https://github.com/kubernetes-incubator/cri-o
Main PID: 5872 (crio)
Tasks: 10
Memory: 6.2M
CPU: 79ms
CGroup: /system.slice/crio.service
└─5872 /usr/bin/crio
Sep 02 22:32:28 master1 systemd[1]: Starting Open Container Initiative Daemon...
Sep 02 22:32:28 master1 systemd[1]: Started Open Container Initiative Daemon.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 31 (21 by maintainers)
To link the binary, use
ln
:The
-s
make the link, a symbolic link. From the binary/usr/sbin/runc
And create a link at/usr/bin/runc
@b23prodtm thanks for the reply. Yes, recently we have updated the repos. Everything should be working out-of-the-box.
@outcoldman Please consider re-testing and closing this report.
Thanks!
the problem with that is it will then conflict with debian/ubuntu’s own runc which people have complained about in the past. So, if the distro’s runc is good enough (I’ve also heard of issues where it was too old), I can just get rid of the cri-o-runc package.
by the way, we’ve deprecated the projectatomic ppa, and now are moving our packaging efforts to openSUSE’s OBS Kubic repo: https://build.opensuse.org/project/show/devel:kubic:libcontainers:stable you may have more luck with that
I’m running into the same issue with Ubuntu 18.04 and cri-o 1.17. I was able to fix the issue with @outcoldman’s suggestion:
ln -s /usr/lib/cri-o-runc/sbin/runc /usr/bin/runc
.