Magento2 Error – Service Temporarily Unavailable

errormagento2

In Magento 1 when there is a 503 error,[.maintenance.flag] file gets created in root Magento directory and deleting it brings the website back to its normal stage.

In Magento 2 when there is a 503 error, [.maintenance.flag] is neither present in root nor in var. Where it's present?

Best Answer

Magento 2 maintenance mode file has the name .maintenance.flag (with the leading dot) and is located in the var folder.
But HTTP 503 code response can have different causes. For example, the cause could be a webserver misconfiguration.

Related Topic