Hotpot shows error "cannotexecduringupgrade" when upgrading to the latest version

Hotpot shows error "cannotexecduringupgrade" when upgrading to the latest version

by Ernst Varo -
Number of replies: 4

Hello everybody,

I've been reading this forum for several years, but it's the first time that I post here, because until now I have always found a solution already shared by somebody here.

I have just upgraded my Moodle from 2.6 to 3.5

I had the mod_hotpot2013121790 that didn't update during the process because of configuration issue with the certificate needed to check the updates.

Now I'm trying to upgrade it to mod_hotpot_moodle36_2018120832, but I get the error pasted below.

Could somebody help me with this issue?

Thanks in advance


-----

Upgrading to new version

mod_hotpot

Cannot be executed during upgrade

More information about this error

Debug info:
Error code: cannotexecduringupgrade
Stack trace:
  • line 1443 of /lib/setuplib.php: moodle_exception thrown
  • line 2159 of /lib/modinfolib.php: call to upgrade_ensure_not_running()
  • line 1363 of /course/lib.php: call to get_fast_modinfo()
  • line 531 of /lib/grade/grade_item.php: call to course_module_instance_pending_deletion()
  • line 131 of /lib/gradelib.php: call to grade_item->is_locked()
  • line 1130 of /mod/hotpot/lib.php: call to grade_update()
  • line 1277 of /mod/hotpot/lib.php: call to hotpot_grade_item_update()
  • line 1245 of /mod/hotpot/lib.php: call to hotpot_update_grades()
  • line 845 of /mod/hotpot/db/upgrade.php: call to hotpot_update_grades()
  • line 806 of /lib/upgradelib.php: call to xmldb_hotpot_upgrade()
  • line 512 of /lib/upgradelib.php: call to upgrade_plugins_modules()
  • line 1857 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 694 of /admin/index.php: call to upgrade_noncore()

Average of ratings: -
In reply to Ernst Varo

Re: Hotpot shows error "cannotexecduringupgrade" when upgrading to the latest version

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Ernst,
looks like your Moodle was stuck halfway through an update.

If I were you, I would do this:

  1. move, or remove, the "mod/hotpot" folder and try the upgrade again
    I expect the upgrade will succeed, in which case ..
  2. Replace, or restore, the "mod/hotpot" folder, and try the upgrade again
    I expect that will succeed too smile

Please try the above and let me know what happens.

Average of ratings: Useful (1)
In reply to Gordon Bateson

Re: Hotpot shows error "cannotexecduringupgrade" when upgrading to the latest version

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Ernst,
I investigated this issue a little more deeply, and I think I have located the source of the problem.

Please could you upgrade your HotPot module, either from the plugins repository on Moodle.org, or from github.com, and try the upgrade again.

Thanks approve
Gordon

Average of ratings: Useful (1)
In reply to Gordon Bateson

Re: Hotpot shows error "cannotexecduringupgrade" when upgrading to the latest version

by Ernst Varo -

Hi Gordon,

Wow, I'm really impressed! Many, many thanks for fixing this issue so quickly!

I have launched the upgrade automatically with the new version 36_20190121 that you have just released and it has worked like a charm! Everything perfect!

I still cannot believe that you could find the exact issue with the little information that I gave you :D

Thanks again!

Average of ratings: Useful (1)
In reply to Ernst Varo

Re: Hotpot shows error "cannotexecduringupgrade" when upgrading to the latest version

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Thanks for confirming the fix Ernst approve

The clues were in the chain of error messages you pasted, so thanks for that 👍

All the best,
Gordon