Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service Temporarily Unavailable Magento?

My application was working fine yesterday. I started my PC today. When I tried to start Magento I got this error message.

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

I am not even able to open the admin page or see any sort of errors on the page. If I visit any URL of my Magento site I am getting the above output. How do I resolve this?

like image 788
ScoRpion Avatar asked Nov 12 '11 05:11

ScoRpion


People also ask

What is 503 service temporarily unavailable?

A 503 Service Unavailable Error is an HTTP response status code that indicates your web server operates properly, but it can't handle a request at the moment. Since it's just a generic error message, it's difficult to pinpoint the issue's exact cause.

Could not validate a connection to Elasticsearch no alive nodes found in your cluster in magento2?

No alive nodes found in your cluster. I got solution, in ubuntu, check your elasticsearch status systemctl status elasticsearch, if status is failed, restart your elasticsearch systemctl restart elasticsearch and check status again. If status is active (running), you can try setup:install again.


1 Answers

Check if there is a file called maintenance.flag and if so delete it.

Magento 1.x : maintenance.flag file is in : magento root directory

Magento 2.x : maintenance.flag file is in : var folder

When Magento is performing certain tasks it temporarily creates this file. Magento checks for its existence and if it's there will send users to the page you described.

It's supposed to automatically delete this file when done processing whatever task it was doing, but I've experienced occasions where something went wrong and it failed to delete it.

like image 60
elMarquis Avatar answered Sep 19 '22 04:09

elMarquis