Moodle V4.3 update script fails

Llia,

Could it be that the missing plugins of Moodle (see red arrows) are in a different folder than that you have duplicated in the update with the moodle.pl?
image

Regards,
rob

Yeah, where are those plugins located in your original installation?

LLia,

Yes, the plugins were installed after my original installation by plugins install in Moodle.

regards
Rob

Example. https://moodle.org/plugins/paygw_stripe

Yes, I understood that. Where are those missing plugins installed exactly in your Moodle 4.2.3?

1 Like

LLia,

Example stripe is installed in /public_html/payment.
The other plugins are installed in /public_html/local

That seems to be all. If we can include those in the script, I think we are done.

Regards
Rob

@Ilia, I think it’s important that there is also a stamp that shows the last installation test done on the script.
I gave up on installing Django at this point because there was something wrong after several attempts and simulations.

Could you just make a backup of the virtual server that contains your Moodle installation 4.2.3 (before the upgrade) and DM me the download link? It would help me a lot to deduct the right logic for the Moodle upgrade process.

You should open a separate thread for Django, providing more details about what was tried and what has gone wrong, preferably sharing some screenshots.

LLia,

Sorry, I can not give you access. The site, a private site.
I can make tests for you.

Regards,
Rob

Alright, no problem. I will try to fix it the other way 
 and let you know.

Llia,

Thanks!! Looking forwards testing the update.
Let me know when you are done.

Regards
Rob Oudendijk

Alright, I have upgraded Moodle install script once again. This time upgrades should work correctly.

@Jamie, can you push updates faster so @robouden1 could try it sooner?

Sure, doing it now 


LLia,

Still waiting for my client’s ok to test the new script out.

Regards,
Rob

Llia,

I did get an ok from my client. Removed the old script and updated moodle scirpt.
That went well.

I noticed that the moodle script was not downloading V4.2.3, because it still had the idea that V4.3 was installed (seems to pick up the last installed version from Virtualmin).

I saw the script downloaded V4.3 two times (before script installed downloaded V4.3 and V4.2.3. This time not.

I went to the website of the installment and opened up the LMS. Moodle could not be updated
 :frowning:

Now restoring the site. From backup.

Regards,
Rob Oudendijk

LLia,

Probably, I should have reinstalled V4.2. with the script and then update to V4.3 :frowning:
Seems the script is not yet bulletproof and need some more work.

Regards,
Rob Oudendijk

It works for me pretty well! Also, I would expect the error message as you shown in the screenshot above in case the Moodle installer wasn’t updated correctly.

What is the output of the following command on your system:

grep -Rsi script_moodle_release -A 2 /usr/share/webmin

Llia,

Output of the command line you asked me to run:

/usr/share/webmin/virtual-server/pro/scripts/moodle.pl:sub script_moodle_release
/usr/share/webmin/virtual-server/pro/scripts/moodle.pl-{
/usr/share/webmin/virtual-server/pro/scripts/moodle.pl-return 2;        # Fix download URL

No wonder it doesn’t work. The release version should be 4 not 2. Please use the instructions provided above to update Virtualmin installer for Moodle script to the latest version, i.e.:

  1. Clean

    rm -f /etc/webmin/virtual-server/latest-scripts/moodle.pl
    
  2. Pull

    /etc/webmin/virtual-server/scriptlatest.pl --debug
    

    * (to update)

  3. Check

    grep -Rsi script_moodle_release -A 2 /usr/share/webmin
    

    * (to make sure you have version 4 installed)

As you confirm that you have version 4 installed, you’re good to go with the upgrade!

Llia,

This is what I did and the results:

  • root@transom:~# rm -f /etc/webmin/virtual-server/latest-scripts/moodle.pl
  • root@transom:~# /etc/webmin/virtual-server/scriptlatest.pl --debug
  • Found 119 available scripts
  • moodle has 5 latest versions 4 installed versions
  • Updating moodle 

  • Updated moodle to latest version
  • root@transom:~# grep -Rsi script_moodle_release -A 2 /usr/share/webmin
  • /usr/share/webmin/virtual-server/pro/scripts/moodle.pl:sub script_moodle_release
  • /usr/share/webmin/virtual-server/pro/scripts/moodle.pl-{
  • /usr/share/webmin/virtual-server/pro/scripts/moodle.pl-return 2; # Fix download URL
  • root@transom:~#

Seems to be the same reply?

Regards
rob