Service Temporarily Unavailable Magento?
Solution 1
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.
Solution 2
Simply delete the maintenance.flag
file in root folder and then delete the files of cache folder and session folder inside var/
folder.
Solution 3
Now in new version magento2 on Generate error Service Temporarily Unavailable.
Remove maintenance.flag
From this path which is changed magento2/var/maintenance.flag
.
Also
$ rm maintenance.flag
Solution 4
To fix Service Temporarily Unavailable Magento 2, you should:
- Delete a file called
var/.maintenance.flag
in Magento root folder - Remove Magento cache if any:
php bin/magento cache:flush
Solution 5
I had the same issue but have not found the maintenance.flag file in my Magento root. I simply deleted cache and sessions files and all worked again.
Related videos on Youtube
ScoRpion
I Work On PHP Symfony2 Magento Zend Fusebox Python OpenERP JavaScript JQuery Ajax ( JQuery And Prototype ) And I am passionate about sketching my new ideas into programming Applications.
Updated on July 08, 2022Comments
-
ScoRpion almost 2 years
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?
-
matthewpavkov over 12 yearsIs Magento running on a web server online or on your local computer? What are your environment details (web server, PHP, etc)? Did you recently add any extensions? Is any part of the page loading or is what you posted (literally) everything that's on the page?
-
ScoRpion over 12 yearsThanks Matthew. Its On Local, I am using Ubuntu and Xampp.. I tried to install magic zoom yesterday but that was not Installed , it was showing an error Can't connect to site try again later..
-
-
Fiasco Labs almost 11 yearsKind of overkill to remove a module just because it left behind a
maintenance.flag
file. Manually clear the cache, removemaintenance.flag
and see if you can log into the admin panel to finish module installation. -
Mohammad Faisal almost 10 yearsI've faced the same problem after unsuccessful install of a module from magento connect. Deleting the file worked.
-
Minesh over 9 yearsI had to delete both sessions and cache files to get it to worked, thanks.
-
Pratik about 9 yearsWhere is
maintenance.flag
file ? -
elMarquis about 9 years@jQuery.PHP.Magento.com It would be in the root folder of your magento website. But it will only be there if the site is stuck in maintenance mode. Under normal operations this file won't exist.
-
user2314737 almost 9 yearsIt seems that the question had already been answered: stackoverflow.com/a/8275318
-
DarkMukke about 8 yearsfor us it was
magento2/var/.maintenance.flag
-
JonyD over 7 yearsthe flag in in
/var/www/html/magento/maintenance.flag
(centOS + apache server) -
Sushivam over 7 yearshappening in Ubuntu VM but no flag file
-
Razvan Zamfir over 6 yearsWhat if there is no maintenance.flag file?
-
elMarquis over 6 yearsIf you're not seeing a maintenance.flag file it could mean the error has become cached at some level. Delete all the files in the magento cache folder. If that doesn't work, you may have other cache you need to clear such as memcache or APC if you're using either of those.
-
DependencyHell over 4 yearsHad same issue with Redis, using CM_Redis module the 503 is returned here /app/code/local/Cm/RedisSession/Model/Session.php - I had some ConcurrentConnectionsExceededException so I increased the max_concurrency number without clearing the cache.