cancel
Showing results for 
Search instead for 
Did you mean: 

Maintenace flag is set, not starting nginx

Maintenace flag is set, not starting nginx

Hi all, I am using magento cloud. 

My staging server show error 503 Server unavailable atm.

I found this message in site.log

Maintenace flag is set, not starting nginx

I checked with bin/magento maintenance:status

maintenance mode is not active.

anyone know how to fix it?

 

4 REPLIES

Re: Maintenace flag is set, not starting nginx

Kindly run below commands,

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush
php bin/magento maintenance:disable
If Issue Solved, Click Kudos/Accept As solutions.

Re: Maintenace flag is set, not starting nginx

cannot run static-content deploy with -f option. no this option.

Ran everything without any error. no luck.

The problem is nginx did not start after deployment

 

I read the deploy log. It disabled maintenance mode already after deployment. 

 

Re: Maintenace flag is set, not starting nginx

but magento cloud is managed hosting,

you need to ask your hosting support -

 

why you asking on community forums???

------------
MagenX - Magento and Server optimization

Re: Maintenace flag is set, not starting nginx

sigh.... they won't fix it immediately because its not happening at production and I need to apply new function to production asap. I did a lot of research already but no luck so far.