I have a docker environment comprised of 3 docker containers:
php-fpm
nginx
mariadb
I'm trying to install a moodle in that environment. The install process gets stuck at the php script "user/editadvanced.php". "user/editadvanced.php" looks like so:
If I fill in the form and click "Update Profile" and get:
If I click on "Skip to main content" i get redirected to "user/editadvanced.php". Loading "user/editadvanced.php" In the console of the browser I can see "net::ERR_ABORTED 404 (Not Found)" for the file admin/index.php. That points to the line 33 (and lines 35 and 36) of user/editadvanced.php. In the line 33 the js-file "http://localhost:8080/lib/javascript.php/1723639906/lib/babel-polyfill/polyfill.min.js" is supposed to be loaded.
When I load "http://localhost:8080/lib/javascript.php/1723639906/lib/babel-polyfill/polyfill.min.js" maunally it gets redirected to "user/editadvanced.php". That goes for each file that has "1723639906" in its path. Is "1723639906" a key or similar in connection with boost theme ? And if so, is it possibleUseful to disable it ?
How ever the prob remains. In the Logs of the nginx container I get in case of a reload of "user/editadvanced.php" the following logs:
172.18.0.1 - - [16/Aug/2024:15:44:37 +0000] "GET /theme/styles.php/boost/1723822570_1/all HTTP/1.1" 303 447 "http://localhost:8080/user/editadvanced.php?id=2" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" "-"
2024/08/16 15:44:37 [error] 33#33: *203 FastCGI sent in stderr: "PHP message: Cannot find session record ie731vdqrb20msjtss8lohpus4 for user 2, creating new session" while reading response header from upstream, client: 172.18.0.1, server: localhost, request: "GET /lib/javascript.php/1723822570/lib/polyfills/polyfill.js HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "localhost:8080", referrer: "http://localhost:8080/user/editadvanced.php?id=2"
172.18.0.1 - - [16/Aug/2024:15:44:37 +0000] "GET /lib/javascript.php/1723822570/lib/polyfills/polyfill.js HTTP/1.1" 303 447 "http://localhost:8080/user/editadvanced.php?id=2" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" "-"
2024/08/16 15:44:37 [error] 33#33: *188 FastCGI sent in stderr: "PHP message: Cannot find session record ie731vdqrb20msjtss8lohpus4 for user 2, creating new session" while reading response header from upstream, client: 172.18.0.1, server: localhost, request: "GET /lib/javascript.php/1723822570/lib/babel-polyfill/polyfill.min.js HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "localhost:8080", referrer: "http://localhost:8080/user/editadvanced.php?id=2"
So this points to the session management. I made a php-test script for sessions. It files the session data correctly in the session path. So the path is writable.
Do you have experiences on how to set up sessions in such a set up ?
Thanks for any help, hint etc.
Best,
Steve