{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/nodejs-ex/issues/17","repository_url":"https://api.github.com/repos/openshift/nodejs-ex","labels_url":"https://api.github.com/repos/openshift/nodejs-ex/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/openshift/nodejs-ex/issues/17/comments","events_url":"https://api.github.com/repos/openshift/nodejs-ex/issues/17/events","html_url":"https://github.com/openshift/nodejs-ex/issues/17","id":89551950,"number":17,"title":"Application crashes if MongoDB is down/removed","user":{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"PI-Victor","id":6294120,"avatar_url":"https://avatars.githubusercontent.com/u/6294120?v=3","gravatar_id":"","url":"https://api.github.com/users/PI-Victor","html_url":"https://github.com/PI-Victor","followers_url":"https://api.github.com/users/PI-Victor/followers","following_url":"https://api.github.com/users/PI-Victor/following{/other_user}","gists_url":"https://api.github.com/users/PI-Victor/gists{/gist_id}","starred_url":"https://api.github.com/users/PI-Victor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PI-Victor/subscriptions","organizations_url":"https://api.github.com/users/PI-Victor/orgs","repos_url":"https://api.github.com/users/PI-Victor/repos","events_url":"https://api.github.com/users/PI-Victor/events{/privacy}","received_events_url":"https://api.github.com/users/PI-Victor/received_events","type":"User","site_admin":false},"assignees":[{"login":"PI-Victor","id":6294120,"avatar_url":"https://avatars.githubusercontent.com/u/6294120?v=3","gravatar_id":"","url":"https://api.github.com/users/PI-Victor","html_url":"https://github.com/PI-Victor","followers_url":"https://api.github.com/users/PI-Victor/followers","following_url":"https://api.github.com/users/PI-Victor/following{/other_user}","gists_url":"https://api.github.com/users/PI-Victor/gists{/gist_id}","starred_url":"https://api.github.com/users/PI-Victor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PI-Victor/subscriptions","organizations_url":"https://api.github.com/users/PI-Victor/orgs","repos_url":"https://api.github.com/users/PI-Victor/repos","events_url":"https://api.github.com/users/PI-Victor/events{/privacy}","received_events_url":"https://api.github.com/users/PI-Victor/received_events","type":"User","site_admin":false}],"milestone":null,"comments":19,"created_at":"2015-06-19T12:23:20Z","updated_at":"2016-06-30T13:18:19Z","closed_at":null,"body":"I'd expect the application to keep running and reconnect to the database when it is back up.\r\nIt should serve pages just like the example template with no database.\r\n\r\n```\r\n[vagrant@openshiftdev origin]$ oc scale rc mongodb-1 --replicas=0\r\n[vagrant@openshiftdev origin]$ oc logs -f nodejs-frontend-1-f7rsm\r\nnpm info it worked if it ends with ok\r\nnpm info using npm@1.3.24\r\nnpm info using node@v0.10.25\r\nnpm info prestart nodejs-ex@0.0.1\r\nnpm info start nodejs-ex@0.0.1\r\n\r\n> nodejs-ex@0.0.1 start /opt/openshift/src\r\n> node server.js\r\n\r\nServer running on 0.0.0.0:8080\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nError: write EPIPE\r\n    at errnoException (net.js:901:11)\r\n    at Object.afterWrite (net.js:718:19)\r\n\r\nnpm info nodejs-ex@0.0.1 Failed to exec start script\r\nnpm ERR! nodejs-ex@0.0.1 start: `node server.js`\r\nnpm ERR! Exit status 8\r\nnpm ERR! \r\nnpm ERR! Failed at the nodejs-ex@0.0.1 start script.\r\nnpm ERR! This is most likely a problem with the nodejs-ex package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node server.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls nodejs-ex\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Linux 3.17.4-301.fc21.x86_64\r\nnpm ERR! command \"node\" \"/opt/rh/nodejs010/root/usr/bin/npm\" \"start\" \"-d\"\r\nnpm ERR! cwd /opt/openshift/src\r\nnpm ERR! node -v v0.10.25\r\nnpm ERR! npm -v 1.3.24\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! Error: EACCES, open 'npm-debug.log'\r\nnpm ERR!  { [Error: EACCES, open 'npm-debug.log'] errno: 3, code: 'EACCES', path: 'npm-debug.log' }\r\nnpm ERR! \r\nnpm ERR! Please try running this command again as root/Administrator.\r\n\r\nnpm ERR! System Linux 3.17.4-301.fc21.x86_64\r\nnpm ERR! command \"node\" \"/opt/rh/nodejs010/root/usr/bin/npm\" \"start\" \"-d\"\r\nnpm ERR! cwd /opt/openshift/src\r\nnpm ERR! node -v v0.10.25\r\nnpm ERR! npm -v 1.3.24\r\nnpm ERR! path npm-debug.log\r\nnpm ERR! code EACCES\r\nnpm ERR! errno 3\r\nnpm ERR! stack Error: EACCES, open 'npm-debug.log'\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /opt/openshift/src/npm-debug.log\r\nnpm ERR! not ok code 0\r\n[vagrant@openshiftdev origin]$ oc get pod\r\nNAME                      READY     REASON       RESTARTS   AGE\r\nnodejs-example-1-build    0/1       ExitCode:0   0          1h\r\nnodejs-frontend-1-f7rsm   0/1       Running      11         1h\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/nodejs-ex/issues/comments/229654964","html_url":"https://github.com/openshift/nodejs-ex/issues/17#issuecomment-229654964","issue_url":"https://api.github.com/repos/openshift/nodejs-ex/issues/17","id":229654964,"user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T13:18:19Z","updated_at":"2016-06-30T13:18:19Z","body":"@bparees yeah, to me \"ready\" means the app is ready (and healthy) to serve traffic to users. If the app requires database to do so, then the readiness check should exercise that (and liveness probe should follow). If the db connection drop from the single pod for some reason, the container should be restarted asap?"}}
{"actor":{"display_login":"mfojtik"}}