{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/strong-pm/issues/218","labels_url":"https://api.github.com/repos/strongloop/strong-pm/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/strong-pm/issues/218/comments","events_url":"https://api.github.com/repos/strongloop/strong-pm/issues/218/events","html_url":"https://github.com/strongloop/strong-pm/issues/218","id":79622303,"number":218,"title":"PM crashes when DB is corrupt or missing (should send back error and stay alive)","user":{"login":"kraman","id":449065,"avatar_url":"https://avatars.githubusercontent.com/u/449065?v=3","gravatar_id":"","url":"https://api.github.com/users/kraman","html_url":"https://github.com/kraman","followers_url":"https://api.github.com/users/kraman/followers","following_url":"https://api.github.com/users/kraman/following{/other_user}","gists_url":"https://api.github.com/users/kraman/gists{/gist_id}","starred_url":"https://api.github.com/users/kraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraman/subscriptions","organizations_url":"https://api.github.com/users/kraman/orgs","repos_url":"https://api.github.com/users/kraman/repos","events_url":"https://api.github.com/users/kraman/events{/privacy}","received_events_url":"https://api.github.com/users/kraman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/strong-pm/labels/%23wip","name":"#wip","color":"ededed"},{"url":"https://api.github.com/repos/strongloop/strong-pm/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Setogit","id":5251789,"avatar_url":"https://avatars.githubusercontent.com/u/5251789?v=3","gravatar_id":"","url":"https://api.github.com/users/Setogit","html_url":"https://github.com/Setogit","followers_url":"https://api.github.com/users/Setogit/followers","following_url":"https://api.github.com/users/Setogit/following{/other_user}","gists_url":"https://api.github.com/users/Setogit/gists{/gist_id}","starred_url":"https://api.github.com/users/Setogit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Setogit/subscriptions","organizations_url":"https://api.github.com/users/Setogit/orgs","repos_url":"https://api.github.com/users/Setogit/repos","events_url":"https://api.github.com/users/Setogit/events{/privacy}","received_events_url":"https://api.github.com/users/Setogit/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-05-22T21:42:10Z","updated_at":"2015-07-14T16:19:03Z","closed_at":null,"body":"```\r\n$ slc pm -l 8701 \r\nslc pm: StrongLoop PM v4.1.31 (API v7.0.3) listening on port `8701`\r\nslc pm: control listening on path `/Users/strongloop/testapp/8701/pmctl`\r\nslc pm: listen on 8701, work base is `/Users/strongloop/testapp/8701/.strong-pm`, driver is `direct-driver`\r\nservice-manager: handle.findOrCreate: Error: ENOENT, open '/Users/strongloop/testapp/8701/.strong-pm/strong-pm.json'\r\nError: ENOENT, open '/Users/strongloop/testapp/8701/.strong-pm/strong-pm.json'\r\n  at Error (native)\r\n \r\n/usr/local/lib/node_modules/strongloop/node_modules/strong-pm/lib/service-manager.js:299\r\n      res.setHeaders(500, {});\r\n          ^\r\nTypeError: undefined is not a function\r\n  at /usr/local/lib/node_modules/strongloop/node_modules/strong-pm/lib/service-manager.js:299:11\r\n  at /usr/local/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/scope.js:88:7\r\n  at allCb (/usr/local/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/dao.js:1339:7)\r\n  at /usr/local/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/connectors/memory.js:371:7\r\n  at /usr/local/lib/node_modules/strongloop/node_modules/loopback/node_modules/continuation-local-storage/node_modules/async-listener/glue.js:188:31\r\n  at process._tickDomainCallback (node.js:381:11)\r\n  at process.<anonymous> (/usr/local/lib/node_modules/strongloop/node_modules/loopback/node_modules/continuation-local-storage/node_modules/async-listener/index.js:18:15)\r\n```"},"comment":{"url":"https://api.github.com/repos/strongloop/strong-pm/issues/comments/121295150","html_url":"https://github.com/strongloop/strong-pm/issues/218#issuecomment-121295150","issue_url":"https://api.github.com/repos/strongloop/strong-pm/issues/218","id":121295150,"user":{"login":"sam-github","id":17607,"avatar_url":"https://avatars.githubusercontent.com/u/17607?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-github","html_url":"https://github.com/sam-github","followers_url":"https://api.github.com/users/sam-github/followers","following_url":"https://api.github.com/users/sam-github/following{/other_user}","gists_url":"https://api.github.com/users/sam-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-github/subscriptions","organizations_url":"https://api.github.com/users/sam-github/orgs","repos_url":"https://api.github.com/users/sam-github/repos","events_url":"https://api.github.com/users/sam-github/events{/privacy}","received_events_url":"https://api.github.com/users/sam-github/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T16:19:03Z","updated_at":"2015-07-14T16:19:03Z","body":"This was happening because .strong-pm directory, including the DB, was being removed by arc, pm *should* crash when it's DB is removed."}}