installation error (2022041901.10 - clean install)

installation error (2022041901.10 - clean install)

by Александр Ермаков -
Number of replies: 7

Greetings to all!

I downloaded the latest version - I install it, and after completion an error occurs when automatically switching to the page after installation:

../user/editadvanced.php?id=2

debug info:

Notice: Undefined property: stdClass::$navcourselimit in /home/aermakov/a-ermakov.com/docs/moodle/lib/navigationlib.php on line 3188
Notice: Undefined property: stdClass::$maxbytes in /home/aermakov/a-ermakov.com/docs/moodle/user/editadvanced.php on line 126
Notice: Undefined property: stdClass::$maxbytes in /home/aermakov/a-ermakov.com/docs/moodle/user/editadvanced.php on line 148
Notice: Undefined property: stdClass::$defaultcity in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 676
Notice: Undefined property: stdClass::$country in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 677
Notice: Undefined property: stdClass::$calendartype in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 682
Notice: Undefined property: stdClass::$defaultpreference_mailformat in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 698
Notice: Undefined property: stdClass::$defaultpreference_maildigest in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 700
Notice: Undefined property: stdClass::$defaultpreference_maildisplay in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 702
Notice: Undefined property: stdClass::$defaultpreference_autosubscribe in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 704
Notice: Undefined property: stdClass::$defaultpreference_trackforums in /home/aermakov/a-ermakov.com/docs/moodle/lib/classes/user.php on line 706
Notice: Undefined property: stdClass::$fullnamedisplay in /home/aermakov/a-ermakov.com/docs/moodle/user/editlib.php on line 430
Notice: Undefined property: stdClass::$fullnamedisplay in /home/aermakov/a-ermakov.com/docs/moodle/user/editlib.php on line 467
Notice: Undefined property: stdClass::$fullnamedisplay in /home/aermakov/a-ermakov.com/docs/moodle/user/editlib.php on line 467
Notice: Undefined property: stdClass::$fullnamedisplay in /home/aermakov/a-ermakov.com/docs/moodle/user/editlib.php on line 467
Notice: Undefined property: stdClass::$fullnamedisplay in /home/aermakov/a-ermakov.com/docs/moodle/user/editlib.php on line 467
Notice: Undefined property: stdClass::$fullnamedisplay in /home/aermakov/a-ermakov.com/docs/moodle/user/editlib.php on line 473



Average of ratings: -
In reply to Александр Ермаков

Re: installation error (2022041901.10 - clean install)

by Ken Task -
Picture of Particularly helpful Moodlers

Install hasn't created DB yet.   Trying to create the initial admin user (user ID 2) and is failing.   The password box for that user has special protections that can be averted by doing a command line install - ssh'd into server.

cd /home/aermakov/a-ermakov.com/docs/moodle/admin/cli/

php install.php - will prompt for the same site setup dialog boxes and the password for user id 2 will be in clear text.

Before doing that, however, appears to be some issue with ssl setup on server.

Check your self with a curl -I https://yourdomain/ from command line.

curl: (35) error:1404B410:SSL routines:ST_CONNECT:sslv3 alert handshake failure

Are you attempting install using http:// rather than https://?

Web server is openresty?   A fork of Nginx?

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: installation error (2022041901.10 - clean install)

by Александр Ермаков -
Hosting - https://www.nic.ru
3.2 had no problems at all...
Maybe try installing an earlier version - and smoothly improve it to the current one?

DB created and working, the only thing I manually registered the version of the kernel in the database - I created the line version
In reply to Александр Ермаков

Re: installation error (2022041901.10 - clean install)

by Ken Task -
Picture of Particularly helpful Moodlers

Take it that www.nic.ru is hosting provider?

The FQDN seen in debug:

curl -I https://a-ermakov.com/ - returns:
curl: (35) error:1404B410:SSL routines:ST_CONNECT:sslv3 alert handshake failure

however, a curl to http shows

HTTP/1.1 301 Moved Permanently
Server: openresty/1.19.9.1
Date: Sat, 02 Jul 2022 22:53:19 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/7.4.14
X-Redirect-By: WordPress
Location: http://www.a-ermakov.com/

You have a WordPress which if running http:// could be a security issue for your moodle.   The WP is on top of the moodle which is in /docs/moodle/

curl -I https://a-ermakov.com/docs/moodle/
curl: (35) error:1404B410:SSL routines:ST_CONNECT:sslv3 alert handshake failure

All your errant traffic is being redirected by the WP.   Check for an .htaccess file if openresty/1.19.9.1 uses .htaccess or if nginx, check config files for ssl.

For your server to talk moodle.org (install plugins via the web interface), your server will have to have a valid SSL cert ... one that works ... or you will have issues.  Hint on ssl config ... should be using TLS - not sslv3

"manually registered the version of the kernel in the database - I created the line version"

?????? have not a clue as to what that means!   Moodle database has never required a 'kernel' entry.   There is a mdl_config and mdl_config_plugins table that has the release version .... as well as a bunch of tables that have a version column.   Moodle does ask for installer to register with Moodle.org, however.

Soooo????

3.2?   Why not a 3.11?   That's closer to 4.0.x than 3.2.

Not sure which version of moodle intro'd that special protection for the password of the admin user.

Since you have a linux flavored server, consider installing moodle via git ... 100% command line.

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: installation error (2022041901.10 - clean install)

by Александр Ермаков -
the mdl_config table did not contain a version entry - the installation stopped at this point until this line was added to the table
I'll deal with the rest)
thanks for the help, Ken

upd
I ran the installation on another hosting and everything went quickly and without errors...
In reply to Александр Ермаков

Re: installation error (2022041901.10 - clean install)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
That just means that installation didn't complete. There'll almost certainly be other database problems.
Average of ratings: Useful (1)
In reply to Александр Ермаков

Re: installation error (2022041901.10 - clean install)

by Ken Task -
Picture of Particularly helpful Moodlers

mdl_config table does indeed have a reference to 'version' and on
my 4.0.1+ it's value is 2022041901.1 - the core version.  And you had to add that?

IF so the install was in-complete as Howard has also stated.

And, you said install on another server completed with no issues, soooooo????

Anyhoo, glad you got one up and running.

'SoS', Ken

Average of ratings: Useful (1)