{"action":"created","issue":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/380","labels_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/380/comments","events_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/380/events","html_url":"https://github.com/krakenjs/kraken-js/issues/380","id":73542819,"number":380,"title":"pm2 get \"had too many unstable restarts\" error","user":{"login":"ChitaGideon","id":1167456,"avatar_url":"https://avatars.githubusercontent.com/u/1167456?v=3","gravatar_id":"","url":"https://api.github.com/users/ChitaGideon","html_url":"https://github.com/ChitaGideon","followers_url":"https://api.github.com/users/ChitaGideon/followers","following_url":"https://api.github.com/users/ChitaGideon/following{/other_user}","gists_url":"https://api.github.com/users/ChitaGideon/gists{/gist_id}","starred_url":"https://api.github.com/users/ChitaGideon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChitaGideon/subscriptions","organizations_url":"https://api.github.com/users/ChitaGideon/orgs","repos_url":"https://api.github.com/users/ChitaGideon/repos","events_url":"https://api.github.com/users/ChitaGideon/events{/privacy}","received_events_url":"https://api.github.com/users/ChitaGideon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-06T07:33:03Z","updated_at":"2015-05-19T14:33:41Z","closed_at":null,"body":"I use `yo kraken` to  generate a new project\r\nand type `pm2 start index.js`\r\n`pm2 logs`\r\n```\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:49: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:49: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:49: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:49: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:49: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:49: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:50: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:50: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:50: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:50: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:50: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:50: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:51: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:51: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:51: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:51: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:51: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:51: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:52: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:52: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:52: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:52: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:52: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:52: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:52: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:52: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:52: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:53: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:53: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:53: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:53: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:53: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:53: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:54: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:54: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:54: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:54: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:54: Starting execution sequence in -fork mode- for app name:index id:0\r\nPM2: 2015-05-06 15:23:54: App name:index id:0 online\r\nindex-0 (out): Application ready to serve requests.\r\nindex-0 (out): Environment: development\r\nPM2: 2015-05-06 15:23:54: App name:index id:0 exited with code 0\r\nPM2: 2015-05-06 15:23:54: Script /index.js had too many unstable restarts (15). Stopped. \"errored\"\r\n```\r\n\r\n`npm start ` would be fine"},"comment":{"url":"https://api.github.com/repos/krakenjs/kraken-js/issues/comments/103525403","html_url":"https://github.com/krakenjs/kraken-js/issues/380#issuecomment-103525403","issue_url":"https://api.github.com/repos/krakenjs/kraken-js/issues/380","id":103525403,"user":{"login":"aredridel","id":2876,"avatar_url":"https://avatars.githubusercontent.com/u/2876?v=3","gravatar_id":"","url":"https://api.github.com/users/aredridel","html_url":"https://github.com/aredridel","followers_url":"https://api.github.com/users/aredridel/followers","following_url":"https://api.github.com/users/aredridel/following{/other_user}","gists_url":"https://api.github.com/users/aredridel/gists{/gist_id}","starred_url":"https://api.github.com/users/aredridel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aredridel/subscriptions","organizations_url":"https://api.github.com/users/aredridel/orgs","repos_url":"https://api.github.com/users/aredridel/repos","events_url":"https://api.github.com/users/aredridel/events{/privacy}","received_events_url":"https://api.github.com/users/aredridel/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T14:33:41Z","updated_at":"2015-05-19T14:33:41Z","body":"@ChitaGideon The generator doesn't generate a server.js, just an index.js. \r\n\r\n@chelsh, @ChitaGideon What version of pm2 are you running?"}}