Greetings. I do not seem to be able to update to Moodle 4.1 using the usual method (https://moodlebox.net/en/help/moodle-version-update/#fn:2). Any advice?
Use
sudo -u www-data -g moodlebox git checkout MOODLE_401_STABLE
(I was not aware of the bizarre branch name)
Nicolas
Talking of "bizarre branch names", pl. see https://moodle.org/mod/forum/discuss.php?d=441054#p1774559.
This is the message that comes up: error: Your local changes to the following files would be overwritten by checkout: theme/boost/templates/footer.mustache Please commit your changes or stash them before you switch branches. Aborting
This message says the file theme/boost/templates/footer.mustache was modified, so the update fails.
theme/boost/templates/footer.mustache
You can try to type
sudo -u www-data -g moodlebox git stash
to discard all changes, then retry.
Nicolas Thanks - tried it and when I went to moodlebox.home/admin I got this message: Invalid permissions detected when trying to create a directory. I will copy a new image from backup and try again
Ian Impossible to say what's the problem, other that it is a consequence of manually modifying the Moodle source code without paying attention to the file permissions.
On last shot to try to fix the permissions:
sudo chmod -R ug+w /var/www/moodle sudo chown -R www-data.moodlebox /var/www/moodle
My MoodleBox 4.4.0 runs fine with Moodle 4.1. The update works as shown on https://moodlebox.net/en/help/moodle-version-update/ . The new branch is MOODLE_401_STABLE now.
Nicolas Thanks - it did not work. I am on Moodlebox 4.3 so I will upgrade to 4.4 and try again.
Maybe wait a bit until next version is out, with Moodle 4.1.
I could not wait :-) I updated already on Sunday to Moodle 4.1.
And I am looking forward because the new MoodleBox will have some new features. https://github.com/moodlebox/moodlebox/blob/main/CHANGELOG.md
Ratna Talking of "bizarre branch names"
Thank you, I was looking for such an explanation.