moodle display "Sorry, maintenance in progress". Please help

Re: moodle display "Sorry, maintenance in progress". Please help

by Rahul Rai -
Number of replies: 4

HI Edwin

The steps which you can take to restore your site back are:

  • Appending ‘/login/index.php’ in the URL of your site name – If you add ‘/login/index.php’ in the site URL then you can access the login page of your Moodle site e.g. if your site is running with a domain name http://yourdomainname.com then you can directly type http://yourdomainname.com/login/index.php in the address bar of your browser. It will allow you to login into your Moodle site and turn off the maintenance mode in the settings through Site Administration > Server > Maintenance Mode.
  • Directly trying the URL – http://yourdomainname.com/admin/settings.php?section=maintenancemode which will again takes you to the login page and then redirects you to the maintenance page where you can turn off the maintenance mode.
  • Through Command line (CLI) –
         cd moodlecode/admin/cli/
         php maintenance.php --disable
  • Through Database – If you have database access then also you can deactivate the maintenance mode by changing the variable named “maintenance_enabled” to “0” in the “mdl_config table“. (that’s a zero.  1 is on)
  • Editing the config.php file – If you have access to your config.php file then you can add the following line in your config.php file:
    • $CFG->maintenance_enabled=0; (that's a zero and be sure to include the ';' at the end of that line.

Also check for a file maintenance.html in the Moodledata directory and delete it.


Average of ratings: Useful (2)
In reply to Rahul Rai

Re: moodle display "Sorry, maintenance in progress". Please help

by ADAN MARTINEZ SANCHEZ -

Thank you, that's work for me!!

In reply to ADAN MARTINEZ SANCHEZ

Re: moodle display "Sorry, maintenance in progress". Please help

by deva m -

Hi,

I checked for the variable "maintenance mode" and its value is 0, in mdl_config table

but still i'm facing the same issue !

any suggestions do you guys have ?

Attachment 2018-10-05_11-42-43.png
In reply to deva m

Re: moodle display "Sorry, maintenance in progress". Please help

by Miguel Gisbert Osuna -

Hello,


I've got the same problem. Maintenance mode to 0 in data base and also in config.php and still showing the message. Unable to acces with /login/index.php either.

Any solution?


Thank you very much.

In reply to Miguel Gisbert Osuna

Re: moodle display "Sorry, maintenance in progress". Please help

by Ken Task -
Picture of Particularly helpful Moodlers

Is the 'in progress' part of the message as set before putting server in maintenance mode?  Reason I ask, there is no 'progress' to the maintenance mode ... either it is or it isn't.

What does that line look like in config.php?

Show the query which shows maintenance mode in DB.

Did you try to go to: https://server/admin/ and login?

How about going to moodlecode/admin/cli and issuing:

php maintenance.php --disable

What does that return?

'spirit of sharing', Ken