Looks like the team came through in identifying and developing a solution to your problem. Cheers!
Just wondering. Any way to know if the script was updated? Is there a public or with login with VirtualMin Pro credentials URL for tracking the updates for VirtualMin Pro scripts anyway?
Regards,
Rob Oudendijk
Yes, in this particular case you should see Moodle version 4.2.3 back again, e.g.:
You can however force pull latest scripts by going to Webmin ⇾ Webmin Configuration: Webmin Scheduled Functions page and manually re-run scriptlatest.pl
.
Llia,
Thanks for the explanation.
I did run V4.3 a few days ago, and it messed up the setup. I manually downgraded Moodle back to V4.2.3. The script still thinks V4.3 is installed. What do you advise me to do?
Run script V4.2.3 first and then after that update to V4.3?
Regards,
Rob Oudendijk
What script? Do you mean Virtualmin thinks that you still on version 4.2? If so you can just click on the Moodle script name under Installed Scripts tab and upgrade to unsupported version by entering 4.3 in the field, e.g.:
Llia,
No Virtualmin thinks I run V4.3 after I did update first with the script and after the botched update, manually downgraded to V4.2.3 by a server restore of the files.
Regards,
Rob
Now, just manually install/reinstall Moodle 4.3 as explained in my previous post.
Llia,
If I do the manual update , I assume I have to copy the added plugins and mod to the new folder?
So basically do something like this:
- cp -pr public_html/config.php moodle
- cp -pr public_html/theme/adaptable moodle/theme/adaptable
- cp -pr public_html/mod moodle/
- cp -pr public_html/blocks moodle/
- cp -pr public_html/question/type moodle/
- cp -pr public_html/admin/report moodle/
Regards
Rob Oudendijk
Hello Rob!
No, the new script should do it all automatically.
I’m not sure though about question/type
directory. What’s that for?
The other content is automatically diffed and migrated to the new version.
LLia,
The folders I have mentioned before are folder with custom plugins. I for got tho mention that I also have a mapped drive from another VPS (with rot credentials) that maps a big storage to the public_html folder. Would that mapped storage also be migrated?
So If I do run update to V4.3, that is all I have to do now?
Regards,
rob
Hey Rob!
Look I forgot about /question/type/
migration in Moodle upgrades. I have just ran some additional tests and fixed Moodle install script once again to migrate /question/type/
too! It should arrive at your system within next 24 hours.
Yes, when update arrives you will be able to just run it from Virtualmin Pro UI and it will just install new Moodle 4.3 and preserve all your plugins and data.
We so far don’t have a mechanism of showing Virtualmin install script version but I will look into implementing this. For now you can run the following command to understand if Moodle install script update has arrived:
grep -Rsi 'question/type' /etc
… if it did, the command above will return something.
Alright, next Virtualmin release will show script version based on the script installer file timestamp.
It will make it easier to understand when script installer was updated.
Llia,
Thanks for all your help.
I did run “grep -Rsi ‘question/type’ /etc” but not response yet…
Shall I wait 8 more hours to be sure?
Regards,
Rob Oudendijk
Hello, Rob!
You don’t need to wait. You should just run the following command to force-fetch the latest Moodle script:
/etc/webmin/virtual-server/scriptlatest.pl --debug
Regards,
Ilia
LLia,
Thanks, here is the result from the command:
root@transom:~# /etc/webmin/virtual-server/scriptlatest.pl --debug
Found 119 available scripts
No needed script installer updates found
root@transom:~#
That means all is updated?
Regards,
Rob
If you get the output from grep -Rsi 'question/type' /etc/webmin
then it’s okay, if not, then try to manually delete the latest update of Moodle installer by running the following command:
rm -f /etc/webmin/virtual-server/latest-scripts/moodle.pl
… and re-running:
/etc/webmin/virtual-server/scriptlatest.pl --debug
Llia,
Seems to have done the job:
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:~#
Later I will run at and report back to you.
Regards,
Rob Oudendijk
Alright, thanks.