Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64353

Unable to upgrade to 3.6 - Cannot be executed during upgrade



    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.1
    • Fix Version/s: None
    • Component/s: Blocks
    • Affected Branches:


      This happened to me while attempting to upgrade moodle.org to 3.6.1:

      3.6.1 (BUILD: 20181205) (2018120301)
      Once you do this you can not go back again. Please note that this process
      can take a long time.
      Are you sure you want to upgrade this server to this version?
      type y (means yes) or n (means no)
      : y
      Database transaction aborted automatically in /var/www/html/admin/cli/upgrade.php
      Default exception handler: Cannot be executed during upgrade Debug: 
      Error code: cannotexecduringupgrade
      * line 1455 of /lib/setuplib.php: moodle_exception thrown
      * line 2159 of /lib/modinfolib.php: call to upgrade_ensure_not_running()
      * line 184 of /blocks/glossary_random/block_glossary_random.php: call to get_fast_modinfo()
      * line 67 of /blocks/glossary_random/block_glossary_random.php: call to block_glossary_random->get_glossary_cm()
      * line 458 of /blocks/moodleblock.class.php: call to block_glossary_random->specialization()
      * line 2021 of /lib/blocklib.php: call to block_base->_load_instance()
      * line 2382 of /lib/blocklib.php: call to block_instance()
      * line 2438 of /lib/blocklib.php: call to blocks_delete_instance()
      * line 5242 of /lib/accesslib.php: call to blocks_delete_all_for_context()
      * line 5304 of /lib/accesslib.php: call to context->delete_content()
      * line 5768 of /lib/accesslib.php: call to context->delete()
      * line 1819 of /lib/upgradelib.php: call to context_helper::cleanup_instances()
      * line 180 of /admin/cli/upgrade.php: call to upgrade_core()




            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: