Performed all of the plugin updates. Checked the Environment one last time, and got this:
As yet, the link for more info is empty. Please advise.
What versions of PHP/Moodle do you have and on what platform (planet)?
Is there an environment.xml file in /admin/ of your moodle code?
You should have php extensions for xml and xmlreader as well as libxml.
php -m |grep xml
'SoS', Ken
Follow up ...
using command line and in the code directory, execute:
fgrep igbinary admin/environment.xml
That should return the following:
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_igbinary322_version" level="optional">
<ON_CHECK message="igbinary322buggyversion" />
<CUSTOM_CHECK file="lib/upgradelib.php" function="check_igbinary322_version" level="optional">
<ON_CHECK message="igbinary322buggyversion" />
One more command from same location:
fgrep '$release' version.php
That will/should show with the code you have:
$release = '4.0dev (Build: 20210827)'; // Human-friendly version name
Note the 'bolded' above.
So if your intent is to upgrade whatever version you have of moodle to a 4.0dev version, that igbinary322 version check is right on target but see 'buggy' in there .... uhhh ... not good!
Maybe there will be a new requirement for 4.0 when released for igbinary, but if you are just trying to upgrade code to a supported version ... like 3.11.highest ... you need to acquire the 3.11.highest code.
'SoS', Ken
Hope you began this update/upgrade by making a minimal site backup of code and DB dump. 'Under the gun' sounds like you did this on production server without first testing on a dev instance/clone of your production. :|
Have a 3.9.highest and just now did environment check and updated component. No such error nor recommendation for igbinary in the check for 3.11.
The only place I can find such a check is in the case of having 4.0Dev code. The environment check updated in my 3.9.highest does list a 4.0 version, but when selecting that, no igbinary check or warning. None for the drop down set to 3.11 either.
Since you are using git, mind describing how you are trying to upgrade from your 3.9.x to 3.11.highest using git? And was the 3.9.x you have originally installed via git?
The actual git commands (hint: command line 'history' command might help you re-call).
Do these commands however ... and share back what you see ...
cd /path/to/moodlecode/
fgrep '$release' version.php
That will show us what version of code you have.
git branch -a |grep '*'
will show what branch your git is currently tracking.
'SoS', Ken
If the site was already installed using git and a 3.9.something, one would NOT need to use the following:
$ git clone git://git.moodle.org/moodle.git
$ cd moodle
You've already the code and just need to update or upgrade.
To update
cd /path/to/moodlecode/
git branch -a
php admin/cli/cron.php;
php admin/cli/maintenance.php --enable;
git pull;
php admin/cli/upgrade.php --non-interactive;
php admin/cli/maintenance.php --disable;
The git pull above should show something like (just did this a minute ago):
remote: Counting objects: 4475, done.
remote: Compressing objects: 100% (1900/1900), done.
remote: Total 4475 (delta 2628), reused 3581 (delta 2405)
Receiving objects: 100% (4475/4475), 3.73 MiB | 2.89 MiB/s, done.
Resolving deltas: 100% (2628/2628), done.
From git://git.moodle.org/moodle
c66c1a0..089f5bb MOODLE_39_STABLE -> origin/MOODLE_39_STABLE
3a3060a..3e69001 MOODLE_310_STABLE -> origin/MOODLE_310_STABLE
605ce278..7fdf72a MOODLE_311_STABLE -> origin/MOODLE_311_STABLE
0d0e66d..443a980 master -> origin/master
Updating c66c1a0..089f5bb
Fast-forward
.github/workflows/push.yml | 8 +
admin/environment.xml | 10 +
admin/tests/behat/behat_admin.php | 7 +-
admin/tool/dataprivacy/tests/behat/manage_data_requests.feature | 6 +-
admin/tool/log/stores.php | 2 +
admin/tool/log/tests/behat/logstore_store_visibility_change.feature | 19 +
auth/tests/behat/login.feature | 4 +-
backup/controller/backup_controller.class.php | 9 +
backup/controller/restore_controller.class.php | 9 +
backup/moodle2/restore_stepslib.php | 5 +-
backup/tests/roles_backup_restore_test.php | 179 +++++
backup/util/plan/base_plan.class.php | 13 +
backup/util/ui/tests/behat/duplicate_activities.feature | 6 +-
blocks/site_main_menu/tests/behat/edit_activities.feature | 4 +-
blocks/social_activities/tests/behat/edit_activities.feature | 4 +-
course/tests/behat/activities_visibility_icons.feature | 4 +-
course/tests/behat/activity_navigation.feature | 4 +-
course/tests/behat/add_activities.feature | 19 +-
course/tests/behat/course_relativedatesmode.feature | 13 +-
course/tests/behat/course_request.feature | 6 +-
install/lang/es/install.php | 12 +-
install/lang/fi/admin.php | 1 +
install/lang/pt/admin.php | 4 +-
install/lang/sl/install.php | 1 +
lang/en/admin.php | 1 +
lib/db/access.php | 3 +
lib/tests/behat/behat_general.php | 11 +-
lib/upgradelib.php | 53 ++
mod/feedback/tests/behat/anonymous.feature | 8 +-
mod/h5pactivity/tests/behat/result_fillin.feature | 6 +-
mod/h5pactivity/tests/behat/result_longfillin.feature | 6 +-
npm-shrinkwrap.json | 1422 ++++++++++++++++++++--------------
package.json | 6 +-
report/participation/tests/behat/message_participants.feature | 23 +-
user/tests/behat/user_grade_navigation.feature | 8 +-
version.php | 4 +-
36 files changed, 1224 insertions(+), 676 deletions(-)
create mode 100644 admin/tool/log/tests/behat/logstore_store_visibility_change.feature
create mode 100644 backup/tests/roles_backup_restore_test.php
Note 2 things ... second line of git pull shows it acquired a new environment.xml
admin/environment.xml
and the last line shows an update to version.php
The summary:
36 files changed, 1224 insertions(+), 676 deletions(-)
create mode 100644 admin/tool/log/tests/behat/logstore_store_visibility_change.feature
create mode 100644 backup/tests/roles_backup_restore_test.php
If you did this for a 3.9 site, you should be getting the highest available 3.9 which is $release = '3.9.9+ (Build: 20210902)'
To upgrade an existing 3.9 ... the following shows just one hop up to 310.
php admin/cli/maintenance.php --enable;
git branch --track MOODLE_310_STABLE origin/MOODLE_310_STABLE
git checkout MOODLE_310_STABLE
php admin/cli/upgrade.php --non-interactive;
php admin/cli/maintenance.php --disable;
And then check:
fgrep '$release' version.php
I have a preference for not doing hyperjumps ... skipping versions to a destination version ... but rather 'marching' .... up one version at a time ... checking site/acquiring updates to plugins, site backup again, then next hop.
Takes a little longer, but better me thinks.
'SoS', Ken
Does it matter? Yes.
The git branch -a command shows at the top which branch is being tracked ... marked with a *.
In the code directory ... which on centos 7 is probably in /var/www/html/ ... there should be a hidden .git directory.
cd /var/www/html/
ls -ld .git
Inside that hidden directory:
cd .git
ls -l
drwxr-xr-x. 2 root root 4096 Jun 22 2020 branches
-rw-r--r--. 1 root root 338 Jun 22 2020 config
-rw-r--r--. 1 root root 73 Jun 22 2020 description
-rw-r--r--. 1 root root 3339 Sep 2 11:57 FETCH_HEAD
-rw-r--r--. 1 root root 33 Jun 22 2020 HEAD
drwxr-xr-x. 2 root root 4096 Jun 22 2020 hooks
-rw-r--r--. 1 root root 2375232 Sep 2 11:57 index
drwxr-xr-x. 2 root root 4096 Jun 22 2020 info
drwxr-xr-x. 3 root root 4096 Jun 22 2020 logs
drwxr-xr-x. 4 root root 4096 Jun 22 2020 objects
-rw-r--r--. 1 root root 41 Sep 2 11:57 ORIG_HEAD
-rw-r--r--. 1 root root 38716 Jun 22 2020 packed-refs
drwxr-xr-x. 5 root root 4096 Jun 22 2020 refs
Your other posting that aborted and complained about merge would change ... then it listed files ...
Git does track every file ... including it's bite size ... it knows if a file has been edited. So did the former admin hack any core code?
'SoS', Ken
Sent you a private message here in these forums - contains my cell number.
I see that both production and your test instance are in maintenance mode. So is your entity expecting the production instance to be upgraded soon?
Using forums is delayed ... and communications can be behind in sequence ... in this case, a voice call might be 'just in time' support.
'SoS', Ken
Hi Eno,
Unfortunately I was never able to find a solution to this problem. I ended up building a new server with 3.11, and migrated my database over.
Hello Brian,
Thank you for the feedback and an alternative solution to the issue. I will rebuild a new server on my test server.
Kind regards,
Eno Otuokon