0

Problem is it does not take me to the admin panel. When I go to Magento through localhost it shows error message "Service Temporarily Unavailable".

Magento 2.1.7 is successfully installed on the database and I added Magento to the htdocs folder on Mac.

  • 1
    Please mention Magento version you have installed, so that other users can answer for that particular Magento version. – Mohit Kumar Arora Jun 27 '17 at 4:32
  • hi Mohit I have installed Magento 2.1.7 – sumeet shienh Jun 27 '17 at 5:39
  • In my opinion, answer from @vinod-kumar is correct. Please check /var/log folder for the exception if you can't find maintenance.flag file. – Mohit Kumar Arora Jun 27 '17 at 6:41
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.

  • Hi vinod I checked I found about maintenance files like maintenance.php etc. but i cannot find maintenance.flag file – sumeet shienh Jun 27 '17 at 5:26
0

Kindly remove the following file in magento root directory,

maintenance.flag
  • Hi Pasupathi I checked I found about 20 maintenance files like maintenance.php etc. but i cannot find maintenance.flag file – sumeet shienh Jun 27 '17 at 5:27
  • If maintenance.flag file was not found means follow this instructions.clear the cache and open the project in private window and check it now.Then check what error shows in home page. – Pasupathi Thangavel Jun 27 '17 at 5:41
  • I am totally new to this. can you please explain in an easy way. – sumeet shienh Jun 27 '17 at 5:47
0

There is a slightly change between Magento 1 and 2 in the maintenance mode because these are the locations of the maintenance flags

Magento 1 = in the root

Magento 2 = in the var folder

The strangest thing is that in Magento 2 the file is a hidden file

.maintenance.flag

NOTE : The maintenance file in Magento 2 is a hidden file and will only be listed when you use ls -la

  • The maintenance file in Magento 2 is a hidden file and will only be listed when you use ls -la – Mr. Lewis Aug 22 '17 at 5:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.