Why am I getting 503 errors (Service Temporarily Unavailable) on my application?

You might see this error when making a request to your app: “Service Temporarily Unavailable. The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."

This error is coming from the global Apache instance as it tries to route the request to your gear. This generally means that your application is not responding. You can check your logs to see what the root cause might be.

In some cases, a simple restart might help:
rhc app restart -a blog

but we recommend reviewing your application logs to find clues on how to prevent the root cause.

If a simple restart does not help, try: rhc app force-stop -a blog rhc app start -a blog

Please let us know if you are seeing this more frequently by posting to our forums. Include your application type, date and time your app stopped responding (see logs for this info), and any patterns observed (e.g, occurs every x days).