-
Notifications
You must be signed in to change notification settings - Fork 39
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
Automated build fails on 'tar' with: "Directory renamed before its status could be extracted" #727
Comments
I have the same here! Here is my repo https://hub.docker.com/r/pierreozoux/tioapp/builds/bsnpyaasmo46p962p9ikbhu/ I can build fine on my machine, but can't build on the hub. Did you move to some distributed filesyteme backend? I see these issues that might be related: |
@pierreozoux Have you tried it on Quay.io ? It seems that my automated builds work there. |
Hi @pierreozoux, @keyscores: Thanks for the feedback. We are indeed on OverlayFS which might be the source of the trouble. We are happy to file an FR for selectable file drivers as an advanced feature if enough people are seeing this issue. Please +1 if you are interested in this feature. |
@pkennedyr @borjaburgos I have no need to set file system drivers. I think that this is a docker bug that needs to be fixed. I would recommend fixing that bug rather than adding a feature. I just need my images to build predictably. For now I will use Quay.io, and I will recommend that others use the Quay automated build service over Docker Cloud for that reason. |
@keyscores, We value your feedback and are investigating this issue further to find a more versatile solution. |
@pkennedyr This issue is still occurring, even though I received an email from support saying it was closed. The error I receive: |
My repos started failing with this error about a month ago, then last week it seem to have worked a few times, then it started failing again. I'm extracting a simple tar file, nothing fancy. |
Same issue impacting our builds : https://hub.docker.com/r/hammerlab/biokepi-run/builds/bz4d2t8qk2fttro8vdcfxpm/ |
Same issue with tar in my builds: https://hub.docker.com/r/mattmcd/naclbuildbase/builds/blfctp7gaqtlmgkeq3twjse/ |
@pchico83 @borjaburgos This is still happening. I got a support message saying this was solved months ago. Building works fine on quay.io, but dockercloud produces authentication errors when pulling from quay. So I can't use docker cloud. |
@borjaburgos , I've written multiple times this week, with no response. Tar files are not opening correctly during builds on certain infrastructure. I think this is an old issue that should have been solved a while ago. Try with docker hub image: jshimko/meteor-launchpad:latest Full error: |
@pkennedyr When I do a 'build on your own infrastructure' option in docker cloud. The issue goes away. I think it has to do with your docker version on certain machines in your build pool. See this issue: moby/moby#19647 |
@keyscores We apologize for the delay wrt this issue. Indeed, the build failure appears related to moby/moby#19647 and once the upstream overlayfs kernel update is available, Docker Cloud and Docker Hub will apply the the corresponding version update to address this issue. |
@pkennedyr To be clear: this is intermittent. It seems like you have some servers in the pool with the correct specs, and other which are not. Sometimes I get the error, other times not. |
Yeah I'm also experiencing this problem right now, and even rebuilding is not working for me though it used to work and also worked intermittently but my last 15 attempts or so have all failed in a row. Do we have an estimate on when this can be fixed? |
Same here. Kernel:
Docker:
Eventually
|
So to those of you wondering how to fix this. I followed @pommi 's direction of using bsdtar instead of tar. This is what I added to my docker file.
|
Moved the logic of building the images into docker. Removed using any absolute paths on the build system (i.e. $(pwd) which does not work correctly on Windows) Added .gitattributes to ensure line endings for files being used in the Docker build containers are correct. Please compare with whitespace checks turned off. In order to support builds within the container bsdtar needs to be used rather than the regular tar due to docker/hub-feedback#727 The tar server was also removed in favor of copying from the container to the "im" folder and imported back using Dockerfile for the final image. The step where the files are tarred in install_ihs was removed and put into docker. This makes it easier to debug issues with tar
Moved the logic of building the images into docker. Removed using any absolute paths on the build system (i.e. $(pwd) which does not work correctly on Windows) Added .gitattributes to ensure line endings for files being used in the Docker build containers are correct. Please compare with whitespace checks turned off. In order to support builds within the container bsdtar needs to be used rather than the regular tar due to docker/hub-feedback#727 The tar server was also removed in favor of copying from the container to the "im" folder and imported back using Dockerfile for the final image. The step where the files are tarred in install_ihs was removed and put into docker. This makes it easier to debug issues with tar
Do we know when this issue will be resolved in either the edge or stable release? |
Anyone actually tried to fix the cause of this? Seems it's been 2 years and everyone has to workaround with bsdtar or other things… |
This is 2019 and the issue is still there, on macOS. And by now, docker desktop doesn't support 'ausf' at all, and I can't use bdstar. Wasted whole day trying to work around it. Team : You had 3 years to solve this problem :). Your work impact people's live, you could've done better here. I mean, 3 years! And still no fix. :( In the meanwhile, how do I get around it ? :'( |
I'm surprised this has been tagged as a "feature-request". It looks like a nasty critical bug to me; a serious bug which has been pretty much overlooked for almost 3 years! |
Happening for me on Mac Mojave:
|
For those who are having this issue with meteor, I was able to make it work following this script here: I basically added these lines to my Dockerfile:
I hope this helps someone. |
Either rebuilding my images or setting "RUN export tar='bsdtar'" in the Dockerfile previously worked for me when i had this problem (i was trying too many things at once to know what the fix was), but now the tar issue has presented itself again. Maybe due to an OSX update? Either way, nothing is helping now. |
I'm relatively new to Docker, running Docker Desktop on a Mac, and with my very first project, I hit this bug. Tar is completely useless, bsdtar will not work in my case, and aufs is no longer an option. What this means is that for me, Docker is completely useless. Given that this has been an extant bug for literally years with no solution, I think I'll be deleting Docker as a purely practical matter. If the devs don't have time to deal with this, then I certainly don't. |
@AntonioSchmidt you did help someone |
As a Chinese, I simply agree you on this...... I got stuck on this issue for weeks, carefully checked all the limits. Fun, I've learnt a lot of things about linux(or damm it, why should people wasting time searching for a reason?) , and my boss shall send some one to assist me(or replace me?). |
What is a practical fix for this in 2019 on macOS running Docker Desktop |
Run linux on mac via a vagrant VM and run your code there. |
Working on a Mac, I found this issue but resolved it by upgrading my Dockerfile base image from Ubuntu 16.04 to 18.04. (See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1728489) . I'm a bit confused because I thought it was the overlayfs in the host OS that caused the issue, not the guest OS, but hey, it works. Edit: it makes the error less frequent, but it still happens. I think the reason is that Docker for Mac is on kernel 4.9, and the issue is fixed in kernel 4.11. I recommend downgrading tothe 25 July 2018 stable release and then using aufs instead of overlayfs. [In Preferences/Daemon/Advanced, replace the contents with {"storage-driver" : "aufs"}.] |
I'm running into this issue running latest stable docker for mac. Hoping somebody gets assigned to this bug. |
I'm still getting the bug on Mac. When are you going to fix it?! I sense it won't be fixed at all, right?! |
supposedly fixed in ubuntu xenial: |
Didn't fix it for me on my mac with any of the recent ubuntu's (eoan, bionic, xenial). |
This solved it:
or.. its just that I increased memory and swap in docker settings. |
|
Same error :( on Windows Docker Desktop
|
As @leafbot said : Increased memory and swap in docker settings worked for me. |
@huguesbrunelle I tried extracting a 1.7GB tar file into ~6GB data, with 4.5GB ram and 1GB swap still the same error. Unfortunately, I cannot give more memory to the VM :( |
I deleted disk image from - Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw |
Hello I'm trying to move a repository into Docker Cloud. All my
repositories are failing with a 'tar' command error.
The Error:
tar: .meteor/packages/babel-compiler: Directory renamed before its
status could be extracted
tar: Exiting with failure status due to previous errors
I've searched online and there are no answers. Even on Docker's github
moby/moby#19647
The text was updated successfully, but these errors were encountered: