Upgrade from 3.8.3 to 3.11.6

Upgrade from 3.8.3 to 3.11.6

by Francky NGUEMA -
Number of replies: 8

I upgraded Moodle using Git as in the doumentation and everything went well. I have access to the app but when I try to log in, after a few seconds I ERR_CONNECTION_RESET I am redirected to moodle / admin / index.php but the page displays the error ERR_CONNECTION_RESET.

I'm using XAMPP 7.4.6 on Windows 10

PHP 7.4.6

MariaDB 10.4.11

Can someone help me? I've been on it for a week.

Thank you

Average of ratings: -
In reply to Francky NGUEMA

Re: Upgrade from 3.8.3 to 3.11.6

by Ken Task -
Picture of Particularly helpful Moodlers

Google for 'XAMPP ERR_CONNECTION_RESET' begets hits for other applications and the fixes had to do with PHP.ini settings for sessions.

You could manually remove the contents of moodledata/sessions/ to see if your issue goes away.

When ever I update or upgrade now, the first thing I do right after update/upgrade is to purge all caches/sessions - done at the tail end and via scripts found in code/admin/cli/

'SoS', Ken


In reply to Ken Task

Re: Upgrade from 3.8.3 to 3.11.6

by Francky NGUEMA -

After remove the contents of moodledata/sessions/ i got a blank screen

In reply to Francky NGUEMA

Re: Upgrade from 3.8.3 to 3.11.6

by Ken Task -
Picture of Particularly helpful Moodlers

The 'white screen of death' is usually an indication of an ownerships/permissions issue ... you did do git upgrade via command line as a user.  Was that user the web service user or admin of machine?

config.php of code needs to be readable by the globe ... all ... moodledata/sessions/ has to be writable by the web service user - as does all of moodledata really.

Is there any file in moodledata/sessions/?

Did you google for that error as suggested?  Please do.

First hit pointed to this resource:

https://stackoverflow.com/questions/34709407/what-may-cause-an-err-connection-reset-error-on-xampp-while-using-session

Does your error log show something similar?

The answer in above link said this:

"changed in php.ini: session.use_only_cookies from 0 to 1 and all works."

'SoS', Ken

In reply to Ken Task

Re: Upgrade from 3.8.3 to 3.11.6

by Francky NGUEMA -
For the git upgrade via command line, i did it as admin of machine.

config.php is readable but i don't know who is the web service user maybe the admin of machine.

Each time i try to connect to moodle, a file is created in moodledata/sessions/

In php.ini, "session.use_only_cookies" and "use_strict_mode" were already set to 1.

So i'm at the same point.

And sorry for replying late.
In reply to Francky NGUEMA

Re: Upgrade from 3.8.3 to 3.11.6

by Ken Task -
Picture of Particularly helpful Moodlers

Check private messaging on this system.

'SoS', Ken

In reply to Francky NGUEMA

Re: Upgrade from 3.8.3 to 3.11.6

by Ken Task -
Picture of Particularly helpful Moodlers

Let's rewind this ... so you already had a 3.8.3 under XAMPP (which installs the entire stack + moodle code [version 3.8.3] in a moodle directory.

Was the hidden .git directory already in the moodle code directory?

You then decided, rather than getting the entire XAMPP stack to attempt upgrading the moodle you had to the highest version via git.

You say that went well ... so you had to change into the existing moodle code directory, and issue at least 3 git commands.

git branch --track MOODLE_311_STABLE origin/MOODLE_311_STABLE

git checkout MOODLE_311_STABLE

and then, finally,

git pull

Then run the upgrade.php script in admin/cli/

From the moodle code directory, what does the command: git branch -a

show?

And what version of code do you have?   Look at version.php file at code root for a 'release' line.   What does that show/say?

Comment: the git repo for Moodle doesn't have a linux version and a windows version repo.   If one goes to just downloads and looks, one will see a .zip for Windows.   That's actually a larger download than the gzip for Linux.   So using git on Windows in your case might not work at all!!!

If you want a tinker thing and have Windows 10 ... doesn't that now have the Linux subsystem?

If so, a better option for your tinker site might be this:

https://docs.moodle.org/311/en/Installation_guide_for_Windows_using_WSL_(Windows_Subsystem_for_Linux)

Big advantage to that approach ... you have to install Ubuntu Linux first before everything for Moodle and that means your tinker site will be almost the same environment as what most have for hosting a moodle remotely.

My 2 'sense' of course! (Nope!  That's not a typo but 'play on words'!)

'SoS', Ken


In reply to Ken Task

Re: Upgrade from 3.8.3 to 3.11.6

by Francky NGUEMA -
git branch -a show a list of branch i guess.
On version.php i have version 3.11.6

For information, I opted for the update via git because I already tried the update with the .zip file but the result was the same.
In reply to Francky NGUEMA

Re: Upgrade from 3.8.3 to 3.11.6

by Ken Task -
Picture of Particularly helpful Moodlers

git branch -a shows the version git is tracking at the very top of the display/listing that scrolls.    Like so:

git branch -a
* MOODLE_311_STABLE
  master
  remotes/origin/HEAD -> origin/master

* above indicates the branch tracked.

In order to use git on the moodle code the hidden .git directory and hidden .gitother files need be present:

.gitattributes

.gitignore

.github

and the .git directory which looks like this on Linux server:

.git:
total 2520
drwxr-xr-x. 2 root root    4096 Jun  5  2021 branches
-rw-r--r--. 1 root root     340 Jun  5  2021 config
-rw-r--r--. 1 root root      73 Jun  5  2021 description
-rw-r--r--. 1 root root    3339 Mar 30 09:06 FETCH_HEAD
-rw-r--r--. 1 root root      34 Jun  5  2021 HEAD
drwxr-xr-x. 2 root root    4096 Jun  5  2021 hooks
-rw-r--r--. 1 root root 2486872 Mar 30 09:06 index
drwxr-xr-x. 2 root root    4096 Jun  5  2021 info
drwxr-xr-x. 3 root root    4096 Jun  5  2021 logs
drwxr-xr-x. 4 root root    4096 Jun  5  2021 objects
-rw-r--r--. 1 root root      41 Mar 30 09:06 ORIG_HEAD
-rw-r--r--. 1 root root   42318 Jun  5  2021 packed-refs
drwxr-xr-x. 5 root root    4096 Jun  5  2021 refs

'SoS', Ken