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

Demeteorizer throwing Error: EACCES, permission denied error #65

Closed
pjbrow opened this issue Aug 27, 2014 · 2 comments
Closed

Demeteorizer throwing Error: EACCES, permission denied error #65

pjbrow opened this issue Aug 27, 2014 · 2 comments

Comments

@pjbrow
Copy link

pjbrow commented Aug 27, 2014

I'm trying a deploy an app I just updated to Meteor 0.9.0. During the demeteorizing stage, I get the following error.

I am running this on OSX Mavericks.

$ modulus deploy
Welcome to Modulus
You are logged in as pjbrow
Please choose which project to use:
  1) ideas-staging
[?] project 1
Selecting ideas-staging

Meteor project detected...
Creating output folder.
Bundling Meteor App...
meteor bundle generation complete.
Extracting bundle.
Extraction complete.
Finding dependencies...
0 dependencies found.
Creating package.json file.
package.json file generation complete.
Setting minimum node version to v0.10.22

fs.js:432
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: EACCES, permission denied '/Users/Pat/code/ideas/.demeteorized/programs/server/boot.js'
    at Object.fs.openSync (fs.js:432:18)
    at Object.fs.writeFileSync (fs.js:971:15)
    at Demeteorizer.setNodeVersion (/usr/local/lib/node_modules/modulus/node_modules/demeteorizer/lib/demeteorizer.js:323:6)
    at /usr/local/lib/node_modules/modulus/node_modules/demeteorizer/lib/demeteorizer.js:58:14
    at /usr/local/lib/node_modules/modulus/node_modules/demeteorizer/node_modules/async/lib/async.js:551:21
    at /usr/local/lib/node_modules/modulus/node_modules/demeteorizer/node_modules/async/lib/async.js:227:13
    at iterate (/usr/local/lib/node_modules/modulus/node_modules/demeteorizer/node_modules/async/lib/async.js:134:13)
    at /usr/local/lib/node_modules/modulus/node_modules/demeteorizer/node_modules/async/lib/async.js:145:25
    at /usr/local/lib/node_modules/modulus/node_modules/demeteorizer/node_modules/async/lib/async.js:229:17
    at /usr/local/lib/node_modules/modulus/node_modules
@scald
Copy link

scald commented Aug 27, 2014

Saw this also yesterday, probably related to #64. If you run as sudo it should get through, but dependencies will be empty

@scald
Copy link

scald commented Aug 27, 2014

Turns out this is unrelated to #64, but it is a result of 0.9.0. In the bundle step, Meteor makes boot.js read-only, so demeteorizer fails when it tries to set the min node version in that file. I did submit a fix that handles the error better, but you'll still need to have root if you want that step to work. That said, I was able to successfully demeteorize and run a fairly complex Meteor app with the commit in the referenced pull request, so I'm not sure if setting min node version is even necessary anymore...

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

2 participants