meteor-launchpad: Error: EXDEV: cross-device link not permitted, rename

Thank you for creating this image, I have seen many people recommending it. When I use this image however my build fails, but only when using a local meteor package. It works fine with no local packages, so I am absolutely stumped at what the problem is. I created a dummy meteor app and build the image just fine, then added a dummy package, verified meteor build works, and then it still fails. Following is the full stack trace if it is useful. I do not believe the error is with your image, but I am at my wits end and I appreciate ANY help or suggestions you have. Thanks in advance!

` /root/.meteor/packages/ecmascript/.0.5.9.ui3230++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190 throw error; ^

Error: EXDEV: cross-device link not permitted, rename ‘/opt/meteor/src/.meteor/local/isopacks/pigknows_conversion-collections’ -> ‘/opt/meteor/src/.meteor/local/isopacks/pigknows_conversion-collections-garbage-p6wxcy’ at Error (native) at Object.fs.renameSync (fs.js:681:18) at Object.wrapper [as rename] (/tools/fs/files.js:1531:35) at Object.files.renameDirAlmostAtomically (/tools/fs/files.js:963:11) at Builder.complete (/tools/isobuild/builder.js:608:13) at /tools/isobuild/isopack.js:1679:15 at Isopack.saveToPath (/tools/isobuild/isopack.js:1191:9) at /tools/isobuild/isopack-cache.js:378:23 at /tools/utils/buildmessage.js:359:18 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:352:34 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:350:23 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at Object.enterJob (/tools/utils/buildmessage.js:324:26) at IsopackCache.loadLocalPackage (/tools/isobuild/isopack-cache.js:315:18) at /tools/isobuild/isopack-cache.js:249:16 at Function.time (/tools/tool-env/profile.js:305:10) at /tools/isobuild/isopack-cache.js:248:17 at /tools/utils/buildmessage.js:359:18 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:352:34 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:350:23 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at Object.enterJob (/tools/utils/buildmessage.js:324:26) at IsopackCache.ensurePackageLoaded (/tools/isobuild/isopack-cache.js:239:20) at /tools/isobuild/isopack-cache.js:76:14 at /tools/packaging/package-map.js:57:7 at Function..each..forEach (/root/.meteor/packages/meteor-tool/.1.4.2.1r0536n++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].eachPackage (/tools/packaging/package-map.js:49:7) at IsopackCache.buildLocalPackages (/tools/isobuild/isopack-cache.js:75:24) at /tools/project-context.js:809:25 at /tools/utils/buildmessage.js:359:18 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:352:34 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:350:23 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at Object.enterJob (/tools/utils/buildmessage.js:324:26) at ProjectContext._buildLocalPackages (/tools/project-context.js:808:18) at /tools/project-context.js:268:9 at /tools/utils/buildmessage.js:359:18 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:352:34 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:350:23 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at Object.enterJob (/tools/utils/buildmessage.js:324:26) at ProjectContext._completeStagesThrough (/tools/project-context.js:258:18) at /tools/project-context.js:250:12 at Function.run (/tools/tool-env/profile.js:490:12) at ProjectContext.prepareProjectForBuild (/tools/project-context.js:249:13) at /tools/cli/commands.js:854:20 at /tools/utils/buildmessage.js:271:13 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:264:29 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:262:18 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at /tools/utils/buildmessage.js:253:23 at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14) at Object.capture (/tools/utils/buildmessage.js:252:19) at Object.main.captureAndExit (/tools/cli/main.js:273:29) at buildCommand (/tools/cli/commands.js:853:8) at Command.func (/tools/cli/commands.js:802:12) at /tools/cli/main.js:1454:23 `

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 21 (10 by maintainers)

Most upvoted comments

Well, it took a while, but I finally fixed this. A PR has been submitted to Meteor.

https://github.com/meteor/meteor/pull/8491

And now we wait.

My fix was merged over at meteor/meteor#8491 and tagged for the Release 1.4.4 milestone.

Once Meteor 1.4.4 lands (hopefully soon), this issue should finally be fixed!

Yeah, this problem has been haunting me for months and Docker 1.13 just started causing it to happen every time I build locally on macOS (seems to work fine when on a linux box).

I’m fairly certain this is the issue here: https://github.com/meteor/meteor/issues/7852

And the root cause from Docker: https://docs.docker.com/engine/userguide/storagedriver/aufs-driver/#/renaming-directories-with-the-aufs-storage-driver

This is the code causing it in Meteor: https://github.com/meteor/meteor/blob/b40df12129fa6b3545f89394723fcf044b47f78d/tools/fs/files.js#L950-L978

I think there’s a possibility that using the mv method from fs-extra may fix it (since there’s error handling specifically for that error)

The only reason I haven’t confirmed this yet is because I’m going to have to fork and patch Meteor to test it. I just haven’t had the time in the last couple weeks. However, it’s officially blocking several projects for me at this point, so I’m bumping it up the priority list. I’ll post here and on the Meteor issue with my results.

Thanks for taking the time to report your details!

Excellent. Thanks for the update @kokokenada.

This appears to finally be fixed by Meteor >= 1.4.4. I’m going to close this issue, but feel free to reopen it if you ever run into the problem again.

Thanks for your patience everyone!