I got an app hosted on Openshift here , using node.js and mongo db. It was running perfectly yesterday and today when i am accessing the same, i am getting
Service Temporarily Unavailable Error
I searched some threads and tried this command
rhc tail -a news
and result was
npm ERR! node -v v0.6.20 npm ERR! npm -v 1.1.37 npm ERR! code
ELIFECYCLE npm ERR! message [email protected] start: `node
server.js
npm ERR! message
sh "-c" "node server.js"` failed with 1npm ERR! npm ERR! Additional logging details can be found in: npm ERR!
/var/lib/openshift/4eb0c449f78a4d7e937726185b5e636e/app-root/runtime/repo/npm-debug.log
npm ERR! not ok code undefined npm ERR! not ok code 1
I have also tried
rhc app status -a news
and result was
RESULT: Geargroup nodejs-0.6+mongodb-2.2 is started
also i tried to restart my app
rhc app restart
and it restarted properly. Could you suggest me what is the issue.?
As mentioned by Hardy, i still dont know which resource got exceeded. But have fixed it now.
Here is what i did.
just get remote access to your app console as described here.
ssh into the console with a client like PuTTy or Cygwin.
just check the status of your app by typing ctl_app status
. for me it came like :
App is currently inaccessible or stopped.
just start it by typing ctl_all start
Now app is working as previously.