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

CentOs 6.7: runc run command exits with "write parent:broken pipe" exception #1270

Closed
Nabarun opened this issue Jan 12, 2017 · 2 comments
Closed

Comments

@Nabarun
Copy link

Nabarun commented Jan 12, 2017

Environment
#cat /etc/centos-release
CentOS release 6.7 (Final)
#uname -a
Linux machinename 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
#go version
go version go1.7.4 linux/amd64
#runc --version
runc version 1.0.0-rc2
commit: eedebb8
spec: 1.0.0-rc3

Issue

The issue is we cannot run a container using runc. It throws the following exception
#/usr/local/sbin/runc run --no-new-keyring testcontainer
container_linux.go:247: starting container process caused "write parent: broken pipe"

#/usr/local/sbin/runc run testcontainer
container_linux.go:247: starting container process caused "write parent: broken pipe"

Attached config.json file
runc-config.txt

Any suggestion will indeed be helpful

@Nabarun
Copy link
Author

Nabarun commented Jan 19, 2017

Figured out the fix.
There might be 2 issues that you need to fix

  1. Your runc binary was built with some argument like ‘selinux’ which is no longer compatible to your version. Rather building runc with args you should be using make BUILDTAGS=’’ (empty args)

  2. If you still see the issue the problem might be because of cgroup. Try to start the service by executing
    $ Service cgconfig start

Hopefully these 2 solutions will fix the issue.

@AkihiroSuda
Copy link
Member

The ecosystem no longer supports CentOS 6. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants