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

NPM errors for meteor application using docker. #107

Open
rajpant opened this issue Oct 29, 2015 · 7 comments
Open

NPM errors for meteor application using docker. #107

rajpant opened this issue Oct 29, 2015 · 7 comments

Comments

@rajpant
Copy link

rajpant commented Oct 29, 2015

Hi There,

I am running meteor application using nodeJS. I am using elasticsearch NPM package in meteor application.
when I start building docker image for my application it shows me following errors:

npm-container: updating npm dependencies -- elasticsearch...

/root/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:245
throw(ex);
^
Error: EXDEV, rename '/app/packages/npm-container/.npm/package'
at Object.Future.wait (/root/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:398:15)
at /tools/fs/files.js:1331:28
at Object.wrapper as rename
at Object.files.renameDirAlmostAtomically (/tools/fs/files.js:812:11)
at completeNpmDirectory (/tools/isobuild/meteor-npm.js:319:9)
at updateExistingNpmDirectory (/tools/isobuild/meteor-npm.js:278:3)
at Object.meteorNpm.updateDependencies (/tools/isobuild/meteor-npm.js:86:7)
at Object.compile (/tools/isobuild/compiler.js:118:19)
at /tools/isobuild/isopack-cache.js:271:30
at /tools/utils/buildmessage.js:356:18
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:349:34
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:347:23
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at Object.enterJob (/tools/utils/buildmessage.js:321:26)
at [object Object].
.extend.loadLocalPackage (/tools/isobuild/isopack-cache.js:227:18)
at /tools/isobuild/isopack-cache.js:166:14
at /tools/utils/buildmessage.js:356:18
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:349:34
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:347:23
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at Object.enterJob (/tools/utils/buildmessage.js:321:26)
at [object Object]..extend.ensurePackageLoaded (/tools/isobuild/isopack-cache.js:158:20)
at /tools/isobuild/isopack-cache.js:73:14
at /tools/packaging/package-map.js:57:7
at Function.
.each.
.forEach (/root/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
at [object Object]..extend.eachPackage (/tools/packaging/package-map.js:49:7)
at [object Object].
.extend.buildLocalPackages (/tools/isobuild/isopack-cache.js:72:24)
at /tools/project-context.js:735:25
at /tools/utils/buildmessage.js:356:18
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:349:34
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:347:23
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at Object.enterJob (/tools/utils/buildmessage.js:321:26)
at ProjectContext.
.extend.buildLocalPackages (/tools/project-context.js:734:18)
at /tools/project-context.js:257:35
at /tools/utils/buildmessage.js:356:18
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:349:34
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:347:23
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at Object.enterJob (/tools/utils/buildmessage.js:321:26)
at ProjectContext..extend.completeStagesThrough (/tools/project-context.js:247:18)
at ProjectContext.
.extend.saveChangedMetadata (/tools/project-context.js:235:10)
at ProjectContext.
.extend.prepareProjectForBuild (/tools/project-context.js:240:10)
at /tools/cli/commands.js:838:20
at /tools/utils/buildmessage.js:268:13
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:261:29
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:259:18
at [object Object]..extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at /tools/utils/buildmessage.js:250:23
at [object Object].
.extend.withValue (/tools/utils/fiber-helpers.js:114:14)
at Object.capture (/tools/utils/buildmessage.js:249:19)
at Object.main.captureAndExit (/tools/cli/main.js:270:29)
at buildCommand (/tools/cli/commands.js:837:8)
at Command.main.registerCommand._.extend.name as func
at /tools/cli/main.js:1378:23

@homer6
Copy link

homer6 commented Nov 21, 2015

I'm having the same issue under docker (different node modules, though).

@jamesabbottsmith
Copy link

+1

@jamesabbottsmith
Copy link

Actually - this fixed it

http://stackoverflow.com/questions/30979966/meteor-error-exdev-rename

@allensallinger
Copy link

@jamesabbottsmith Which answer fixed it. Still having the same problem?

@jamesabbottsmith
Copy link

michals answer did the trick.

Removing the meteor local directory will do the stuff working.

cd $WORKDIR
rm -fr .meteor/local

@dperetti
Copy link

Had the same problem, but the culprit was packages/npm-container/.npm
Using this .dockerignore fixed it.

.meteor/local
packages/*/.build*
packages/*/.npm*

@mattmanning
Copy link

@dperetti Thank you so much! I've been fighting this issue for a couple of days. Was already ignoring .meteor/local but adding the other 2 lines fixed things for me.

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

6 participants