Trouble upgrading from 3.1.1 to 3.2

Trouble upgrading from 3.1.1 to 3.2

by Fred Frazelle -
Number of replies: 8

Am running 3.1.1+ (Build: 20160804)

on paid hosting site and have performed this process several times in the past without any problems.  However this time i try the same proceedure but get "This page can't be displayed" error.

i've been following the upgrade instructions by renaming my Moodle folder and then uploading the new version, unzipping it, and then moving the old config file over.  i see the file permissions on the config file as 644 and the folders as 755.

But after that when I try to load the page I get a "This page can't be displayed" error.

Hope someone can help me out.

i've tried from Maintainence Mode as well as non-M Mode, but am getting the same error. 

Have a great day!  smile


Average of ratings: -
In reply to Fred Frazelle

Re: Trouble upgrading from 3.1.1 to 3.2

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Check your web server's error log...

Average of ratings: Useful (1)
In reply to Howard Miller

Re: Trouble upgrading from 3.1.1 to 3.2

by Fred Frazelle -

Howard, thank you for your suggestion!  i checked what i think is my server's logs and found the output from one of them to be

[Sun Jan 01 07:54:40 2017] [error] [client 163.172.68.122] [client 163.172.68.122] ModSecurity: Access denied with code 412 (phase 2). Pattern match "MJ12bot" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "353"] [id "333515"] [rev "4"] [msg "Atomicorp.com WAF Rules: MJ12 Distributed bot detected (Disable this rule if you want to allow this bot)"] [severity "ERROR"] [tag "no_ar"]  [hostname "www.fundacionanisa.org"] [uri "/robots.txt"]
[Sun Jan 01 08:04:47 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "www.fundacionanisa.org"] [uri "/moodle"]
[Sun Jan 01 08:04:47 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "www.fundacionanisa.org"] [uri "/moodle/mod/upgrade.txt"]
[Sun Jan 01 08:07:44 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "fundacionanisa.org"] [uri "/moodle"]
[Sun Jan 01 08:07:44 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "fundacionanisa.org"] [uri "/moodle/mod/upgrade.txt"]
[Sun Jan 01 09:19:38 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "www.fundacionanisa.org"] [uri "/distance"]
[Sun Jan 01 09:19:38 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "www.fundacionanisa.org"] [uri "/distance/mod/upgrade.txt"]
[Sun Jan 01 09:42:03 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "fundacionanisa.org"] [uri "/moodle_anisa"]
[Sun Jan 01 09:42:03 2017] [error] [client 78.46.16.75] [client 78.46.16.75] ModSecurity: Access denied with code 412 (phase 2). Pattern match "python-requests/" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "191"] [id "332039"] [rev "4"] [msg "Atomicorp.com WAF Rules: Suspicious Unusual User Agent (python-requests).  Disable this rule if you use python-requests/. "] [severity "CRITICAL"]  [hostname "fundacionanisa.org"] [uri "/moodle_anisa/mod/upgrade.txt"]
[Sun Jan 01 18:06:19 2017] [error] [client 95.91.12.188] [client 95.91.12.188] ModSecurity: Access denied with code 412 (phase 2). Pattern match "MJ12bot" at REQUEST_HEADERS:User-Agent. [file "/services/mod_security-rules/20_asl_useragents.conf"] [line "353"] [id "333515"] [rev "4"] [msg "Atomicorp.com WAF Rules: MJ12 Distributed bot detected (Disable this rule if you want to allow this bot)"] [severity "ERROR"] [tag "no_ar"]  [hostname "www.fundacionanisa.org"] [uri "/robots.txt"]
[Sun Jan 01 18:35:06 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  Creating default object from empty value in /home/www/fundacionanisa.org/libraries/joomla/updater/update.php on line 267
[Sun Jan 01 19:42:06 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:43:36 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:43:49 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:44:32 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:47:37 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:48:01 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:48:46 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:48:50 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 19:49:14 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/setup.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/config.php on line 27
[Sun Jan 01 20:03:57 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/classes/component.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/lib/setup.php on line 396
[Sun Jan 01 20:04:04 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/classes/component.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/lib/setup.php on line 396
[Sun Jan 01 20:29:55 2017] [error] [client 157.55.39.230] mod_fcgid: stderr: PHP Warning:  require_once(/home/www/fundacionanisa.org/distance/lib/classes/component.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/lib/setup.php on line 396

i was hoping to find a "Code" button but i didn't see any for the above output.

It seems to indicate lacking a file or directory but i'm not sure.
Have a great afternoon! :)

In reply to Fred Frazelle

Re: Trouble upgrading from 3.1.1 to 3.2

by Fred Frazelle -

i unzipped the files again into a new folder and proceeded to take the site into Maint. Mode.  Renamed the folders distance to distance_old and distance_new to distance and took the site out of Maint. Mode.  After a minute or so, got the message>

Error Reading From Database

Here is the new output from my Error Log>

[Mon Jan 02 01:36:57 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016120500.03

[Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04 [Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04

[Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04

[Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04

Have a super evening!  smile


In reply to Fred Frazelle

Re: Trouble upgrading from 3.1.1 to 3.2

by Fred Frazelle -

This time i just renamed moodledata cache and localcache to moodledata_to_be_deleted and localcache_to_be_deleted and placed in Maint. Mode and switched folders again (this time w/o any new unzipping).

Erro Log output>

[Mon Jan 02 01:36:57 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016120500.03
[Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04
[Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04
[Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04
[Mon Jan 02 01:38:10 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04
[Mon Jan 02 02:06:18 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016052301.04
Again, have a super evening!  smile
In reply to Fred Frazelle

Re: Trouble upgrading from 3.1.1 to 3.2

by Fred Frazelle -

Have successfully upgraded from 3.1.1 to 3.1.3.  Tomorrow will try to upgrade to 3.2 again.  Maybe it'll go off w/o a hitch.

Have a great evening!  smile

In reply to Fred Frazelle

Re: Trouble upgrading from 3.1.1 to 3.2

by Fred Frazelle -

Well, still getting pretty much the same Error Reading Database as before.

[Tue Jan 03 02:49:16 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(../config.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/admin/settings.php on line 3
[Tue Jan 03 02:49:35 2017] [error] [client 163.172.66.56] mod_fcgid: stderr: PHP Warning:  require_once(../config.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/calendar/view.php on line 48
[Tue Jan 03 02:51:36 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(../config.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/admin/settings.php on line 3
[Tue Jan 03 02:55:14 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(../config.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/admin/settings.php on line 3
[Tue Jan 03 02:55:33 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(../config.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/admin/settings.php on line 3
[Tue Jan 03 02:55:38 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: PHP Warning:  require_once(../config.php): failed to open stream: No such file or directory in /home/www/fundacionanisa.org/distance/admin/settings.php on line 3
[Tue Jan 03 02:58:24 2017] [error] [client 189.222.53.203] mod_fcgid: stderr: Resetting core_component cache after core upgrade to version 2016120500.03
i think i'm going to ask my Hosting Co. to unzip the moodle32 file because i think that it's taking too long and not working correctly.  i even have trouble unzipping it through FTP it seems.

Grrr.  Have a wonderful evening!  smile

In reply to Fred Frazelle

Re: Trouble upgrading from 3.1.1 to 3.2 [SOLVED]

by Fred Frazelle -

Well, this is strange.  We to wash dishes - something i know more about than Moodle - and when i came back to the compu the screen displayed the first screen of the update process.  All i had to do was pretty much click O.K. for each screen, just like always and we're now in

3.2!!!  Yea!

Thanks to all who have offered help and encouragement.  And, as always, have a great evening!  smile

In reply to Fred Frazelle

Re: Trouble upgrading from 3.1.1 to 3.2

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

I find it interesting that the first line references the 3.2 version and then the rest reference the previous version.  I suggest redownloading a fresh version of 3.2 before trying again.