cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.3 503 Service Unavailable error

SOLVED

Magento 2.3.3 503 Service Unavailable error

Greetings,

 

I restored a 2.3.3 backup.  Did php bin/ magento cache:clean and flush.  Still got message:

Service Unavailable

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

Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.

 

How do I fix this?  Thanks for your attention.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2.3.3 503 Service Unavailable error

Error log shows 

bin/magento must be run as a CLI application

I changed php from 7.2 to 7.3.  Now site shows. 

View solution in original post

4 REPLIES 4

Re: Magento 2.3.3 503 Service Unavailable error

Hi @Sheba 

 

Kindly follow below steps for resolve your issue:

  • Go to the Magento root folder to delete the file var/.maintenance.flag
  • Refresh Magento 2 cache from php bin/magento cache:flush or via the Admin Panel
  • Check the error log if you see a message saying “Exception printing is disabled by default for security reasons.”
  • In case of an error like “Please Upgrade your database”, run php bin/magento setup:upgrade from the root directory.

It may help you!
Problem Solved? Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: Magento 2.3.3 503 Service Unavailable error

Hi Bhanu,

 

I see no .maintenance.flag in /public_html/var.  I did grep -ri and it is referenced in CHANGELOG.md.

 

I have cleared cache many times.  503 error still shows.

Re: Magento 2.3.3 503 Service Unavailable error

I also ran these commands, 503 error still shows

 

rm -rf var/cache/*  
# php bin/magento setup:upgrade
# php bin/magento setup:di:compile
# php bin/magento setup:static-content:deploy -f 

Re: Magento 2.3.3 503 Service Unavailable error

Error log shows 

bin/magento must be run as a CLI application

I changed php from 7.2 to 7.3.  Now site shows.