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

Exception when running as a cron task #151

Open
ArtemKo7v opened this issue Dec 21, 2015 · 3 comments
Open

Exception when running as a cron task #151

ArtemKo7v opened this issue Dec 21, 2015 · 3 comments

Comments

@ArtemKo7v
Copy link

I wrote a separate shell script to run gagarin.
It runs well when it is manually called from command-line.
But it throws an exception when running from crontab with root privilegies:

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)

As I understand, it happens because of the incorrect node environment in child_process.spawn

@apendua
Copy link
Member

apendua commented Dec 21, 2015

Yes, probably. But I would gess you're getting this error because of meteor command not being accessible by the root user. Do you think it's possible?

@ArtemKo7v
Copy link
Author

@apendua Yes, that was what caused the problem, many thanks!

@apendua
Copy link
Member

apendua commented Dec 21, 2015

Let's not close this issue. This will probably need to be properly documented anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants