{"action":"created","issue":{"url":"https://api.github.com/repos/anticoders/gagarin/issues/151","labels_url":"https://api.github.com/repos/anticoders/gagarin/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/anticoders/gagarin/issues/151/comments","events_url":"https://api.github.com/repos/anticoders/gagarin/issues/151/events","html_url":"https://github.com/anticoders/gagarin/issues/151","id":123259337,"number":151,"title":"Exception when running as a cron task","user":{"login":"ArtemKo7v","id":2138231,"avatar_url":"https://avatars.githubusercontent.com/u/2138231?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemKo7v","html_url":"https://github.com/ArtemKo7v","followers_url":"https://api.github.com/users/ArtemKo7v/followers","following_url":"https://api.github.com/users/ArtemKo7v/following{/other_user}","gists_url":"https://api.github.com/users/ArtemKo7v/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemKo7v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemKo7v/subscriptions","organizations_url":"https://api.github.com/users/ArtemKo7v/orgs","repos_url":"https://api.github.com/users/ArtemKo7v/repos","events_url":"https://api.github.com/users/ArtemKo7v/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemKo7v/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-21T11:24:03Z","updated_at":"2015-12-21T11:27:11Z","closed_at":null,"body":"I wrote a separate shell script to run gagarin.\r\nIt runs well when it is manually called from command-line.\r\nBut it throws an exception when running from crontab with root privilegies:\r\n\r\n```\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: spawn ENOENT\r\n  at errnoException (child_process.js:1011:11)\r\n  at Process.ChildProcess._handle.onexit (child_process.js:802:34)\r\n```\r\n\r\nAs I understand, it happens because of the incorrect node environment in child_process.spawn"},"comment":{"url":"https://api.github.com/repos/anticoders/gagarin/issues/comments/166277287","html_url":"https://github.com/anticoders/gagarin/issues/151#issuecomment-166277287","issue_url":"https://api.github.com/repos/anticoders/gagarin/issues/151","id":166277287,"user":{"login":"apendua","id":1971195,"avatar_url":"https://avatars.githubusercontent.com/u/1971195?v=3","gravatar_id":"","url":"https://api.github.com/users/apendua","html_url":"https://github.com/apendua","followers_url":"https://api.github.com/users/apendua/followers","following_url":"https://api.github.com/users/apendua/following{/other_user}","gists_url":"https://api.github.com/users/apendua/gists{/gist_id}","starred_url":"https://api.github.com/users/apendua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apendua/subscriptions","organizations_url":"https://api.github.com/users/apendua/orgs","repos_url":"https://api.github.com/users/apendua/repos","events_url":"https://api.github.com/users/apendua/events{/privacy}","received_events_url":"https://api.github.com/users/apendua/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T11:27:11Z","updated_at":"2015-12-21T11:27:11Z","body":"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?"}}