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

Tar problem deploying an app on Deis #64

Closed
MaxenceAdnot opened this issue Dec 6, 2015 · 10 comments
Closed

Tar problem deploying an app on Deis #64

MaxenceAdnot opened this issue Dec 6, 2015 · 10 comments

Comments

@MaxenceAdnot
Copy link

I tried to deploy a meteor app on a Deis cluster : http://deis.io (which simply takes the Dockerfile and produces an image before running it) but it failed due to tar errors while installing Meteor:

-----> Building Docker image
remote: Sending build context to Docker daemon 54.27 kB
Step 0 : FROM meteorhacks/meteord:devbuild
devbuild: Pulling from meteorhacks/meteord
86615df74ffa: Pulling fs layer
2ec476bbd16e: Pulling fs layer
4a0a886df271: Pulling fs layer
0feb3f2a0135: Pulling fs layer
ef3dfc2694a4: Already exists
a73c7fdae2e3: Already exists
b247a53c9076: Already exists
8889d081bf78: Already exists
d7f21f48dc95: Already exists
96826e9497d0: Already exists
4c2f3df4bb7c: Already exists
a23d622c4674: Already exists
0feb3f2a0135: Verifying Checksum
0feb3f2a0135: Download complete
2ec476bbd16e: Verifying Checksum
2ec476bbd16e: Download complete
4a0a886df271: Verifying Checksum
4a0a886df271: Download complete
86615df74ffa: Verifying Checksum
86615df74ffa: Download complete
86615df74ffa: Pull complete
2ec476bbd16e: Pull complete
4a0a886df271: Pull complete
0feb3f2a0135: Pull complete
Digest: sha256:c5be7afb55e06fa62d45799700bd069db786ec657291759d573ccb43bfdd186b
Status: Downloaded newer image for meteorhacks/meteord:devbuild
# Executing 3 build triggers
Trigger 0, RUN bash $METEORD_DIR/lib/install_meteor.sh
Step 0 : RUN bash $METEORD_DIR/lib/install_meteor.sh
 ---> Running in d337f7c2a39d
Downloading Meteor distribution
tar: .meteor/packages/coffeescript/.1.0.11.148kw9n++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/babel-compiler/node_modules/meteor-babel/node_modules/transformers/node_modules/.bin: Directory renamed before its status could be extracted
tar: .meteor/packages/coffeescript/.1.0.11.148kw9n++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/babel-compiler/node_modules/meteor-babel/node_modules/transformers/node_modules: Directory renamed before its status could be extracted
tar: .meteor/packages/coffeescript/.1.0.11.148kw9n++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/babel-compiler/node_modules/meteor-babel/node_modules/transformers: Directory renamed before its status could be extracted
tar: .meteor/packages/coffeescript/.1.0.11.148kw9n++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/babel-compiler/node_modules/meteor-babel/node_modules/defs/node_modules/.bin: Directory renamed before its status could be extracted
tar: .meteor/packages/coffeescript/.1.0.11.148kw9n++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/babel-compiler/node_modules/meteor-babel/node_modules/defs/node_modules: Directory renamed before its status could be extracted
tar: .meteor/packages/coffeescript/.1.0.11.148kw9n++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/babel-compiler/node_modules/meteor-babel/node_modules/defs: Directory renamed before its status could be extracted
tar: .meteor/packages/coffeescript/.1.0.11.148kw9n++os+web.browser+web.cordova/plugin.compileCoffeescript.os/npm/babel-compiler/node_modules/meteor-babel/node_modules/.bin: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/with/node_modules/.bin: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/with/node_modules: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/with: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/transformers/node_modules/.bin: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/transformers/node_modules: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/transformers: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/defs/node_modules/.bin: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/defs/node_modules: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/defs: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules/.bin: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel/node_modules: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules/meteor-babel: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm/node_modules: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova/npm: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler/.5.8.24_1.127zxv6++os+web.browser+web.cordova: Directory renamed before its status could be extracted
tar: .meteor/packages/babel-compiler: Directory renamed before its status could be extracted
tar: Exiting with failure status due to previous errors
Installation failed.
The command '/bin/sh -c bash $METEORD_DIR/lib/install_meteor.sh' returned a non-zero code: 2

The error Directory renamed before its status could be extracted seems to be linked to a permission fault but I didn't found any way to fix this. Onbuild or devbuild don't change anything

PS: The error is not occurring while building the image locally with either onbuild or devbuild.

Thank you in advance for your support

@MaxenceAdnot
Copy link
Author

The problem is only occurring with Docker using overlayfs as storage driver which is now the default for CoreOS.

@arunoda
Copy link
Member

arunoda commented Dec 30, 2015

Any idea for a fix?

@MaxenceAdnot
Copy link
Author

Here's the answer I got from Meteor (cf meteor/meteor#5762):

stubailo commented 21 days ago
I don't think installing Meteor inside Docker on CoreOS is an officially supported environment. Also, you shouldn't need to install Meteor anywhere when deploying your app. We're working on a deployment guide, but the important point is that you should run meteor build locally and then deploy a node.js app bundle. Read more here: http://docs.meteor.com/#/full/deploying
Am I misunderstanding something? Is there some reason you need to install Meteor inside your deployment container?

My Dockerfile is now looking something like that :

FROM node:0.10.41

ADD .build/myapp.tar.gz /usr/src/app
WORKDIR /usr/src/app/bundle/programs/server
RUN npm install

ENV ROOT_URL http://MYURL
ENV PORT 8000

EXPOSE 8000
ENTRYPOINT ["node", "/usr/src/app/bundle/main.js"]

You just have to launch the meteor build command before building your Docker image.

@arunoda
Copy link
Member

arunoda commented Dec 30, 2015

Okay. That's exactly as this I think: https://github.com/meteorhacks/meteord#2-running-a-meteor-bundle-with-docker

@arunoda
Copy link
Member

arunoda commented Dec 30, 2015

Hope we could close this.

@MaxenceAdnot
Copy link
Author

Don't have time to test if the meteord image is working properly on the current Docker 1.10.0-dev with OverlayFS as the storage driver ...

It is perfectly working with using https://github.com/meteorhacks/meteord#2-running-a-meteor-bundle-with-docker on an OverlayFS-based Docker Engine so ... let's close this issue ;)

@MaxenceAdnot
Copy link
Author

I do not encounter this error on non OverlayFS-based Docker engine, do you ?

On 10 Jan 2016, at 16:23, Sean notifications@github.com wrote:

Any chage this can be fixed with non OverlayFS-based Docker engine?


Reply to this email directly or view it on GitHub.

@mitar
Copy link

mitar commented May 31, 2016

Just to add, I am also seeing such errors occasionally for my Meteor apps automatic builds on Docker hub. But sometimes it works. I just have to rerun a build.

@0o-de-lally
Copy link

@mitar Is this the same error #104

@mitar
Copy link

mitar commented Jun 30, 2016

BTW, I wrote about this to Docker and they said that they fixed it on Docker Hub. So this tar related issue is Docker issue and not really Meteor or meteord issue.

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

4 participants