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

Docker-compose libz.so.1 file too short #1761

Closed
melaleuca5 opened this issue Jul 23, 2015 · 17 comments
Closed

Docker-compose libz.so.1 file too short #1761

melaleuca5 opened this issue Jul 23, 2015 · 17 comments
Labels

Comments

@melaleuca5
Copy link

When running docker-compose on ubuntu I get
docker-compose: error while loading shared libraries: /tmp/_MEIE6DGW6/libz.so.1: file too short

@melaleuca5
Copy link
Author

Fixed it seems when I moved the docker /var/lib/docker to a new drive it caused it

@aanand
Copy link

aanand commented Jul 23, 2015

Glad you got it sorted!

@aanand aanand closed this as completed Jul 23, 2015
@marksteve
Copy link

@melaleuca5 how did you fix it?

@julienvincent
Copy link

@melaleuca5 Same problem. How was this solved?

@tuhrig
Copy link

tuhrig commented Aug 14, 2015

Same problem here. I need to destroy and create my Vagrant VM every couple of days to come around this problem. Would be great if you could have another look at this.

@julienvincent
Copy link

I solved it by doing a apt-get install --reinstall docker.io and then restarting my VM. Not sure if that will solve yours too.

P.S I had also previously done a apt-get remove --purge docker.io and then nuking the docker storage. Although this didn't fix it, it might have had a part to play. I'm not sure this fix would work for you if you are already reconstructing your entire VM.

@shrikrishnaholla
Copy link

@aanand Can you reopen this? Seems like a few people are still getting it. For me, I had to resize my VM because of docker bloat and now docker-compose is complaining

docker-compose-1.4.0: error while loading shared libraries: /tmp/_MEI0qlFSu/libz.so.1: file too short

Since I've just resized and booted into my new volume, /tmp is empty. Seems like docker-compose is storing this reference somewhere. How do I clear it?

@aanand aanand reopened this Aug 17, 2015
@shrikrishnaholla
Copy link

I kinda figured out what had happened in my case. Somehow /tmp had gotten mounted to a block device with a 1M size limit. So when docker-compose tried to create files, it couldn't and the next stage (or whatever) expected those files to be present and panicked when they weren't found. In my case, unmounting /tmp worked, but the solution may be different for others. As for the fix, I haven't looked into the source code yet, but maybe some kind of exception handling when trying to create the files in the temp directory might help.

@aanand
Copy link

aanand commented Aug 18, 2015

Unfortunately, the "creating files in /tmp" step is out of our control - it's how PyInstaller's binaries work.

@shrikrishnaholla
Copy link

Raised an issue upstream

@htgoebel
Copy link

Why are you using a frozen app at all? Simply install compose like any other python program and you do not have this problem - you are ion Linux, you have the power.

@htgoebel
Copy link

Fixed upstream, see pyinstaller/pyinstaller#1429

@aanand
Copy link

aanand commented Aug 24, 2015

Nice. Marking this as a bug to remind us to update our PyInstaller version.

@codewarrior0
Copy link

I think the underlying problem is that /tmp isn't cleaned out often enough. The default setting on most systems is to clean it out on reboot, and servers are not frequently rebooted nowadays. Maybe the real fix is to clean out /tmp more frequently using a cron job or something like tmpreaper.

@dnephin
Copy link

dnephin commented Oct 26, 2015

We've upgraded to pyinstaller 3 (#2245). You can try out the new binary by downloading a master build here: https://dl.bintray.com/docker-compose/master/

The fix should also be in the 1.5.0 release.

Let us know if you continue to experience this problem, and we can re-open the issue.

@dnephin dnephin closed this as completed Oct 26, 2015
@shrikrishnaholla
Copy link

Thanks! I've begun using pip builds instead of the binary, but this will probably be useful for others. 👍

@dnephin
Copy link

dnephin commented Oct 30, 2015

There's been another report in #1339 that this is stil an issue. Since this seems like a duplicate I think we can track it in #1339

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

No branches or pull requests

9 participants