Unable to run meteor from Webstorm - meteor

I want to run the meteor application from some IDE so that I can debug the server side code.
For now I have setup the meteor application on the Webstorm. When I try to run the application I get following error message . Really appreciate your help.
/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
throw(ex);
^ Error: EACCES, permission denied '/Users/jackal/rschtml5/ageroRSCHTML/.meteor/local/build'
at Object.fs.renameSync (fs.js:548:18)
at Object.files.renameDirAlmostAtomically (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/files.js:644:8)
at _.extend.complete (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/builder.js:485:11)
at writeSiteArchive (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:1836:13)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:2206:20
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:250:13
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:243:29
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:241:18
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:232:23
at _.extend.withValue (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:112:14)
at Object.capture (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:231:19)
at Object.exports.bundle (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/bundler.js:1926:31)
at bundleApp (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:509:28)
at _.extend._runOnce (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:527:24)
at _.extend._fiber (/Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:744:28)
at /Users/jackal/.meteor/packages/meteor-tool/.1.0.35.mewx50++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/run-app.js:380:12

I'm not sure about my answer for your specific scenario: I had a similar problem and the cause was the npm permissions, I had to run meteor as root: sudo meteor
I see in your paste: Error: EACCES, permission denied '/Users/jackal/rschtml5/ageroRSCHTML/.meteor/local/build' at Object.fs.renameSync
Some permission is wrong. I usually use the terminal in WebStorm, not the built-in build and run. Probably you haven't noticed because you're root. Try to create a new user and run meteor create testProject. I had this issue on my Meteor install.
Edit:
Check if any of these links solves your problems:
https://github.com/oortcloud/meteorite/blob/master/README.md#permission-woes
https://github.com/meteor/meteor/issues/893

Related

Error: EACCES: permission denied, mkdir '/foldername'

While trying to deploy my meteor app using:
meteor build /foldername --mobile-settings settings.json --server=https://appname.herokuapp.com/
I get this error:
/Users/username/.meteor/packages/less/.2.7.9.1rcbr4q++os+web.browser+web.cordova/plugin.compileLessBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
throw error;
^
Error: EACCES: permission denied, mkdir '/foldername'
at Error (native)
at Object.fs.mkdirSync (fs.js:794:18)
at Object.wrapper [as mkdir] (/tools/fs/files.js:1586:35)
at Object.files.mkdir_p (/tools/fs/files.js:445:11)
at buildCommand (/tools/cli/commands.js:977:11)
at Command.func (/tools/cli/commands.js:831:12)
at /tools/cli/main.js:1483:23
How do I fix it?
it's a permission issue. you have to be a super user before run your code. or else
sudo meteor build /foldername --mobile-settings settings.json
--server=https://appname.herokuapp.com/
use the above code in your terminal.
mobile-settings and server aren't described in the doc.
You are trying to create a bundle in / wihout root rights.
Try meteor build ../foldername

Error while starting Meteor App: illegal operation on a directory, unlink ".../dev_bundle"

I get this Error when trying to start my application on my server with the command:
meteor
error:
Error: EISDIR: illegal operation on a directory, unlink '/home/.../.../myapp/.meteor /local/dev_bundle'
at Error (native)
at Object.fs.unlinkSync (fs.js:932:18)
at exports.makeLink (/tools/cli/dev-bundle-links.js:20:8)
at [object Object].ensureDevBundleLink (/tools/project-context.js:1416:7)
at [object Object]._readFile (/tools/project-context.js:1350:10)
at new exports.ReleaseFile (/tools/project-context.js:1300:8)
at /tools/cli/main.js:825:22
My app is running fine on my dev. win. machine.
I have no idea what is causing the error, please help.
I got it working by manually removing all directories and links where the name started with "dev_bundle" inside the "/.meteor/local" directory.
Hope this helps!
Also update meteor to the latest version using meteor update and then follow #henk's solution.
This worked for me.

Meteor Up (Mup) deployment error

I am trying to deploy a Meteor project using Mup. Mup Setup worked fine, but when i used the command Mup Deploy i get the following error below:
(Note: I have tried multiple appPaths but i have found no solution)
Meteor Up: Production Quality Meteor Deployments
“ Checkout Kadira!
It's the best way to monitor performance of your app.
Visit: https://kadira.io/mup ”
Building Started: /srv/asm/
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1011:11)
at Process.ChildProcess._handle.onexit (child_process.js:802:34)
Fixed. In order to correct this error i double checked app path:
// Location of app (local directory)
"app": "/srv/asm/",
and uninstalled Meteor, then reinstalled meteor, then ran mup deploy. All is now working correctly.

Meteor 0.9.0 Error: EACCES, permission denied '/Users/Jasper/.meteorsession'

After updating to meteor 0.9.0 I get the following error when launching an app to localhost
Error: EACCES, permission denied '/Users/Jasper/.meteorsession'
at Object.fs.openSync (fs.js:432:18)
at Object.fs.readFileSync (fs.js:289:15)
at readSessionData (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/auth.js:137:24)
at Object.tryRevokeOldTokens (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/auth.js:331:10)
at main.registerCommand.name [as func] (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands.js:197:8)
at /Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/main.js:1212:23
Starting the meteor session with sudo meteor fixes this problem but I was wondering what causes this and how it can be fixed.
Thanks in advance
Just delete the .meteorsession and restart meteor and it will create a new .meteorsession directory.
Run the following code in your terminal:
rm -rf /Users/Jasper/.meteorsession

Is Meteor running from the wrong path?

I have just installed Meteor from the auth branch. Meteor seems to read its content from /usr/lib/meteor - But it was installed to /usr/local/meteor. /usr/local/meteor/packages contains all packages i need but when i list packages from terminal it shows the default ones. I'm trying to run a project i recently created on another computer:
Errors prevented startup:
Exception while bundling application:
Error: The package named accounts-ui does not exist.
at _.extend.init_from_library (/usr/lib/meteor/app/lib/packages.js:91:13)
at Object.module.exports.get (/usr/lib/meteor/app/lib/packages.js:225:11)
at self.api.use (/usr/lib/meteor/app/lib/bundler.js:83:28)
at Array.forEach (native)
at Function._.each._.forEach (/usr/lib/meteor/app/lib/third/underscore.js:76:11)
at Object.self.api.use (/usr/lib/meteor/app/lib/bundler.js:82:9)
at _.extend.init_from_app_dir [as on_use] (/usr/lib/meteor/app/lib/packages.js:136:11)
at _.extend.use (/usr/lib/meteor/app/lib/bundler.js:362:11)
at Object.exports.bundle (/usr/lib/meteor/app/lib/bundler.js:649:12)
at exports.run.restart_server (/usr/lib/meteor/app/meteor/run.js:509:26)
Your application is crashing. Waiting for file change.
My first thought was that some 'Meteor-path-variable' was set wrong, but i cant find something like that.
Solved - Restarted the computer..

Resources