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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With