Service Temporarily Unavailable Magento?

168,699

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.

Share:
168,699

Related videos on Youtube

ScoRpion
Author by

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, 2022

Comments

  • ScoRpion
    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
      matthewpavkov over 12 years
      Is 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
      ScoRpion over 12 years
      Thanks 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
    Fiasco Labs almost 11 years
    Kind of overkill to remove a module just because it left behind a maintenance.flag file. Manually clear the cache, remove maintenance.flag and see if you can log into the admin panel to finish module installation.
  • Mohammad Faisal
    Mohammad Faisal almost 10 years
    I've faced the same problem after unsuccessful install of a module from magento connect. Deleting the file worked.
  • Minesh
    Minesh over 9 years
    I had to delete both sessions and cache files to get it to worked, thanks.
  • Pratik
    Pratik about 9 years
    Where is maintenance.flag file ?
  • elMarquis
    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
    user2314737 almost 9 years
    It seems that the question had already been answered: stackoverflow.com/a/8275318
  • DarkMukke
    DarkMukke about 8 years
    for us it was magento2/var/.maintenance.flag
  • JonyD
    JonyD over 7 years
    the flag in in /var/www/html/magento/maintenance.flag (centOS + apache server)
  • Sushivam
    Sushivam over 7 years
    happening in Ubuntu VM but no flag file
  • Razvan Zamfir
    Razvan Zamfir over 6 years
    What if there is no maintenance.flag file?
  • elMarquis
    elMarquis over 6 years
    If 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
    DependencyHell over 4 years
    Had 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.