{"action":"created","issue":{"url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/51","repository_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit","labels_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/51/comments","events_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/51/events","html_url":"https://github.com/pm2-hive/pm2-server-monit/issues/51","id":217640219,"number":51,"title":"Can't exec with shell node v4","user":{"login":"f-hj","id":11788979,"avatar_url":"https://avatars2.githubusercontent.com/u/11788979?v=3","gravatar_id":"","url":"https://api.github.com/users/f-hj","html_url":"https://github.com/f-hj","followers_url":"https://api.github.com/users/f-hj/followers","following_url":"https://api.github.com/users/f-hj/following{/other_user}","gists_url":"https://api.github.com/users/f-hj/gists{/gist_id}","starred_url":"https://api.github.com/users/f-hj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f-hj/subscriptions","organizations_url":"https://api.github.com/users/f-hj/orgs","repos_url":"https://api.github.com/users/f-hj/repos","events_url":"https://api.github.com/users/f-hj/events{/privacy}","received_events_url":"https://api.github.com/users/f-hj/received_events","type":"User","site_admin":false},"labels":[{"id":220901363,"url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-28T17:49:11Z","updated_at":"2017-04-25T09:23:00Z","closed_at":null,"body":"```\r\nTypeError: Bad argument\r\n    at TypeError (native)\r\n    at ChildProcess.spawn (internal/child_process.js:285:26)\r\n    at ChildProcess.spawn (/usr/share/pm2/node_modules/pmx/node_modules/vxx/node_modules/continuation-local-storage/node_modules/async-listener/index.js:120:29)\r\n    at exports.spawn (child_process.js:362:9)\r\n    at Object.exports.execFile (child_process.js:151:15)\r\n    at Object.exports.exec (child_process.js:111:18)\r\n    at refreshMetrics (/home/florian/.pm2/node_modules/pm2-server-monit/lib/drive.js:10:6)\r\n    at Object.init (/home/florian/.pm2/node_modules/pm2-server-monit/lib/drive.js:100:3)\r\n    at /home/florian/.pm2/node_modules/pm2-server-monit/app.js:46:9\r\n    at Object.PMX.initModule (/home/florian/.pm2/node_modules/pmx/lib/pmx.js:116:12)\r\n```\r\n\r\n```\r\n$ node -v\r\nv4.6.2\r\n```\r\n\r\nBut work correctly if `{shell: true}` is not specified.\r\n@vmarchaud @Unitech "},"comment":{"url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/comments/296971467","html_url":"https://github.com/pm2-hive/pm2-server-monit/issues/51#issuecomment-296971467","issue_url":"https://api.github.com/repos/pm2-hive/pm2-server-monit/issues/51","id":296971467,"user":{"login":"altras","id":761656,"avatar_url":"https://avatars0.githubusercontent.com/u/761656?v=3","gravatar_id":"","url":"https://api.github.com/users/altras","html_url":"https://github.com/altras","followers_url":"https://api.github.com/users/altras/followers","following_url":"https://api.github.com/users/altras/following{/other_user}","gists_url":"https://api.github.com/users/altras/gists{/gist_id}","starred_url":"https://api.github.com/users/altras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altras/subscriptions","organizations_url":"https://api.github.com/users/altras/orgs","repos_url":"https://api.github.com/users/altras/repos","events_url":"https://api.github.com/users/altras/events{/privacy}","received_events_url":"https://api.github.com/users/altras/received_events","type":"User","site_admin":false},"created_at":"2017-04-25T09:23:00Z","updated_at":"2017-04-25T09:23:00Z","body":"I'm having the same issue I guess:\r\n\r\n```\r\n$ node -v\r\nv4.5.0\r\n```\r\n\r\n```\r\nTypeError: Bad argument\r\n    at TypeError (native)\r\n    at ChildProcess.spawn (internal/child_process.js:274:26)\r\n    at exports.spawn (child_process.js:362:9)\r\n    at Object.exports.execFile (child_process.js:151:15)\r\n    at Object.exports.exec (child_process.js:111:18)\r\n    at refreshMetrics (/home/node/.pm2/node_modules/pm2-server-monit/lib/drive.js:10:6)\r\n    at Object.init (/home/node/.pm2/node_modules/pm2-server-monit/lib/drive.js:100:3)\r\n    at /home/node/.pm2/node_modules/pm2-server-monit/app.js:46:9\r\n    at Object.PMX.initModule (/home/node/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/pmx.js:116:12)\r\n    at Object.<anonymous> (/home/node/.pm2/node_modules/pm2-server-monit/app.js:14:5)\r\n```\r\n\r\npm2-server-monit version `2.5.1`"}}
{"actor":{"display_login":"altras"}}