Openshift - 503 Service Temporarily Unavailable when i am accessing the app

Mithun Satheesh picture Mithun Satheesh · Jan 18, 2013 · Viewed 8.1k times · Source

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.jsnpm ERR! messagesh "-c" "node server.js"` failed with 1

npm 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.?

Answer

Mithun Satheesh picture Mithun Satheesh · Jan 18, 2013

As mentioned by Hardy, i still dont know which resource got exceeded. But have fixed it now.

Here is what i did.

  1. just get remote access to your app console as described here.

  2. ssh into the console with a client like PuTTy or Cygwin.

  3. just check the status of your app by typing ctl_app status. for me it came like : App is currently inaccessible or stopped.

  4. just start it by typing ctl_all start

Now app is working as previously.