The site is being updated, please try again later.

Re: The site is being updated, please try again later.

by Armando Silva -
Number of replies: 2

Hi I am having same issues upgrading from moodle 3.4 to 3.7.1 
Here is my debugging error message:

  • Site is being upgraded, please retry later.
    Debug info: 
    Error code: upgraderunning
    Stack trace:
    • line 494 of /lib/setuplib.php: moodle_exception thrown
    • line 688 of /lib/setup.php: call to print_error()
    • line 45 of /config.php: call to require_once()
    • line 88 of /admin/index.php: call to require()

      Very similar error, wondering any tips on how to get something figured out. Thank you!

In reply to Armando Silva

Re: The site is being updated, please try again later.

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
You run the upgrade script on the web front end, I believe. This could happen if the script takes a long time and cause the browser to time out. Reload may help. Otherwise try restoring the site to the starting version (3.4) and running the upgrade in the back end, on the command line.
Average of ratings: Useful (2)
In reply to Visvanath Ratnaweera

Re: The site is being updated, please try again later.

by Armando Silva -

This was definitely the case, the script made the browser time out. By updating from the command line, I was able to update. 

Moodle can be upgraded from the command line. As with the installation script, there is either interactive or non-interactive mode of the upgrade. The script itself does not put the site into the maintenance mode, you have to do it on your own. Also, the script does not backup any data (if you read this page, you probably have some own scripts to backup your moodledata and the database, right?)

   $ sudo -u apache /usr/bin/php admin/cli/upgrade.php