-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
v0.9.0 Error getting size: bad file descriptor #4568
Comments
Can you try running without -t to see if there are other errors? |
Did you reboot after installing cgroup-lite? |
I had this same problem... it was solved by doing this: sudo apt-get install cgroup-lite
sudo reboot (On my vagrant vm) |
@crosbymichael fails silently with "exit -1" without the -t it seems
@tianon, @lightsofapollo yes, installed and rebooted the box to no avail
|
can you show us the output of |
@crosbymichael mount below. I also started Docker daemon in debug mode, ran without -t, and noted this in log:
|
FWIW, there's a |
Can you paste for us your "/etc/fstab" now? It looks like you're using systemd, but for some reason you don't have the proper hierarchy mounts that it's supposed to set up for you. |
Having very similar issues on a fresh installation of Ubuntu 13.10 after installing docker &&
|
output of mount, per IRC:
|
Anyone/everyone running into this on Ubuntu should test out: sudo wget -O /etc/init/docker.conf https://raw.github.com/dotcloud/docker/master/contrib/init/upstart/docker.conf
sudo service docker restart and comment on #4574 if it fixes the problem for you. If you're on Debian, you should instead use something like: sudo wget -O /etc/init.d/docker https://raw.github.com/dotcloud/docker/master/contrib/init/sysvinit-debian/docker
sudo chmod +x /etc/init.d/docker
sudo service docker restart |
@tianon slightly different error after using your new init script
Checking |
I am experiencing the same error as @parente: [error] client.go:2298 Error getting size: bad file descriptor |
@tianon Got your script working by:
I think something in the above had mucked with my
which probably what caused your new script to abort early before creating the subdirs. |
+1 @parente. After a complete removal and fresh installation of docker and cgroup-lite, I am no longer experiencing the issue. |
Error had nothing to do with the code itself, but a bug in Docker 0.9. See moby/moby#4568 for more information.
@tianon I had this issue and your fix worked. Thanks a lot! |
I replied to this issue #2683 when I'm actually suffering from the one here. |
I'm actually not sure what I'm suffering from :/ . Earlier I was getting exactly the same error as listed here, now I'm getting:
Note how the line number is different... Anyways, running the deamon with the lxc driver:
Results in a functioning docker:
But as you see, I STILL get that same error every now and then. Just not always. |
I tried @tianon 's script, but it didn't seem to help. /etc/fstab:
/proc/mounts
I'm on Debian wheezy here with a modern kernel. :
|
On ubuntu 13.10, the installing of cgroup-lite fixed it. |
@timthelion you need to comment out the cgroup line in your /etc/fstab and reboot |
@tianon thanks alot :) Just got busybox to echo hi without errors using your script on debian wheezy! |
Same as @markijbema. Issue was fixed after install cgroup-lite on Ubuntu 13.10. |
thanks to @lightsofapollo , |
+1 to installing Is this just a temporary work around or something that will have to be done on Ubuntu 13.10? |
I can confirm that @lightsofapollo 's solution worked for me.
I had installed Docker on Cygwin running a Vagrant image (Ubuntu 13.04 Raring Ringtail box from http://goo.gl/Y4aRr) following the intructions here and was getting the aforementioned error message:
|
FWIW, on debian jessie/sid, installing |
verified that on aws ubuntu-13.04, didn't work until I did: |
ran into same issue on fresh ubuntu saucy on ec2. installed git first then docker and ran into this.
sysInfo:
issue does not repro after |
gentoo get this error |
@simapple can you give a little more information about your setup? ie, how did you install Docker? OpenRC or systemd? Which versions of all the affected software (especially Docker version and OpenRC/systemd versions)? Did you double check all the kernel flags that the "app-emulation/docker" ebuild prompts you to enable? |
Same on Archlinux /proc/mounts
docker version
uname -a
docker run -t -i stackbrew/ubuntu:saucy bash
|
But it works on CoreOS via boot2docker. |
I think to check kernel while install docker by source compile,will get the reason easy |
This should be fixed in 0.9.1 now that it is released. |
I'm still getting
|
Upgrade to 0.9.1 solved the problem for me. Thanks. |
Apparently this is a kernel build configuration issue. |
I am trying Docker 0.9.1 on Debian and there is no cgroup-lite package. I got it working anyway.
|
Debian sid user here with the default aptitude installed version of docker 0.9.0 and I was getting the |
Hi, |
experienced same problem with 0.10.0 and Debian Wheezy, solution was to remove any cgroup entry from /etc/fstab (always let docker init script setup cgroups) P.S. on Debian Wheezy it's advised to use Ubuntu packages as explained here: https://coderwall.com/p/wlhavw |
I have the same Bad file descriptor problem. Hope to help you. |
Trying to run bash in a base Ubuntu container on a fresh Ubuntu 13.10 host box with Docker 0.9.0:
Tried install cgroup-lite (per suggestion in irc) without success.
The text was updated successfully, but these errors were encountered: