Moodle V4.3 update script fails

LLia,

The script came back with the below error. Site is accessible. I will restore a backup.

Regards
Rob

LLia,

Uninstalled Moodle,
Installed V4.2.3
Restored backup database and files from Moodle V4.2.3
Updated to V4.3 with the script and the following errors:



Finally, uninstalled again, installed V4.2.3 and restored the site.
Seems the script still has serious issues.

Regards
Rob Oudendijk

It works for me! Do you install Moodle under a sub-directory, i.e. public_html/moodle or directly into public_html/`?

I tried installing Moodle to / directory and later also installing handful of various plugins and it seems that upgrade works just fine!

I will fix those duplicates in the post-message though.

Llia,

Moodle is installed In the /public_html directory.

I have also seen an issue (I did not take screenshots) about an index error that needed to be deleted before the update could continue). Sorry, I do not recall details.

Regards,
Rob

Alright, I see the bug that’s causing it. I have made changes to the Moodle install script. Please give it a try tomorrow, when the updated version of the script can be installed.

You can check if update arrived by running:

grep -Rsi '/atto/' /etc/webmin
1 Like

Llia,

Thanks, I will check tomorrow.

Regards
Rob

Llia,

Did run the latest… Seems no update yet.

root@transom:~# /etc/webmin/virtual-server/scriptlatest.pl --debug
Found 119 available scripts
No needed script installer updates found
root@transom:~#

Regards
Rob Oudendijk

It has been just updated, please try again!

Llia,

Tried:

root@transom:~# /etc/webmin/virtual-server/scriptlatest.pl --debug
Found 119 available scripts
nextcloud has latest 27.1.3 installed 27.1.2
phpmyfaq has latest 3.2.2 installed 3.2.1
Updating nextcloud …
Updated nextcloud to latest version
Updating phpmyfaq …
Updated phpmyfaq to latest version
root@transom:~#

Seems not yet.

Regards,
Rob Oudendijk

@Jamie, why we cannot get more than one update for the install script?

@robouden1 For /etc/webmin/virtual-server/scriptlatest.pl --debug to work, you need to manually delete moodle.pl file first, by running rm -f /etc/webmin/virtual-server/latest-scripts/moodle.pl command.

Llia,

If I remove it , how to run it. I could not download the link you emailed me?

Regards,
Rob Oudendijk

@Jamie, I see now, we only update scripts if the script version in script_*_versions changes. Well, okay, but this is suboptimal for delivering latest (fixed) version of the script installer.

You’ll be fine. It just lets it to be redownloaded.

Before performing and actual upgrade to 4.3 make sure that you really have the latest Moodle version of instal script by running:

grep -Rsi '/atto/' /etc/webmin

There’s also a script_moodle_release function in the script you can bump up to trigger an update in this kind of situation.

Llia,

How to run the script_moodle_release function ?

Regards,
Rob Oudendijk

That’s something we have to update so that your system will detect a new version of the Moodle installer. I’ve done it now, so you should pick up the new version in 24 hours or less…

Excellent! Thanks!

You don’t need to do this. For now just do the following.

Simply:

  1. Delete the previously downloaded Virtualmin installer for the Moodle script by running:

    rm -f /etc/webmin/virtual-server/latest-scripts/moodle.pl
    
  2. Re-run the download script:

    /etc/webmin/virtual-server/scriptlatest.pl --debug
    
  3. Verify the updated script version has arrived:

    grep -Rsi '/atto/' /etc/webmin
    
  4. Install Moodle 4.3 using Virtualmin UI

As it’s done, let me know if everything works flawlessly for you this time.

Llia,

Seems the script is now updated:

root@transom:~# /etc/webmin/virtual-server/scriptlatest.pl --debug
Found 119 available scripts
ghost has latest 5.71.0 installed 5.70.2
tikiwiki has latest 18.12 installed 18.11
moodle has 5 latest versions 4 installed versions
Updating ghost …
Updated ghost to latest version
Updating tikiwiki …
Updated tikiwiki to latest version
Updating moodle …
Updated moodle to latest version
root@transom:~#

A bit later today, I will update Moodle by the Virtualmin UI and report back.

Regards,
Rob Oudendijk

LLia,

Still errors… :frowning:

And:

Seems the script needs more work and testing.

Regards,
Rob

Llia,

This time, for rolling the site back to V4.2.3, I just renamed the moodel_4.2.3_backup to public_html. Before that, I had removed the newly (by the moodle.pl files) created public_html. Then the site was back fast.

Regards
Rob Oudendijk