-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
4.2, 4.3, 4.4
-
2
-
Team Hedgehog 2024 Sprint 3.3, Team Hedgehog 2024 Sprint 4.3
Since Moodle 4.2 (see MDL-77758, problem E) and confirmed/expanded when examining logs as part of the PHP 8.2 epic (see MDL-76407, problems D and E), we are getting the following in web server logs:
1. For course/modedit.php (36 times):
35014:[Fri Jul 28 06:35:58.857171 2023] [php:notice] [pid 427] [client 192.168.80.14:34604] Default exception handler: Exception - Warning: rename([localcachedir]/theme/1690526055/boost/pix/assign/monologo.svg.tmp,[localcachedir]/theme/1690526055/boost/pix/assign/monologo.svg): No such file or directory in [dirroot]/theme/image.php on line 319 Debug:
Error code: generalexceptionmessage
- line 157 of /lib/behat/lib.php: Exception thrown
- line ? of unknownfile: call to behat_error_handler()
- line 319 of /theme/image.php: call to rename()
- line 181 of /theme/image.php: call to cache_image()
- , referer: http://webserverc5be55ab646ca4e0/behatrun3/course/modedit.php?update=110000
2. For course/view.php (9 times):
381570:[Fri Jul 28 07:09:38.656181 2023] [php:notice] [pid 990] [client 192.168.16.6:57006] Default exception handler: Exception - Warning: rename([localcachedir]/theme/1690526082/classic/pix/forum/monologo.svg.tmp,[localcachedir]/theme/1690526082/classic/pix/forum/monologo.svg): No such file or directory in [dirroot]/theme/image.php on line 319 Debug:
Error code: generalexceptionmessage
- line 157 of /lib/behat/lib.php: Exception thrown
- line ? of unknownfile: call to behat_error_handler()
- line 319 of /theme/image.php: call to rename()
- line 181 of /theme/image.php: call to cache_image()
- , referer: http://webserver169508c574c4de45/behatrun2/course/view.php?id=101000
I've been unable to reproduce it locally but in CI behat runs it happens consistently. Maybe it's some caching race conditions or similar because the # of occurrences is not constant.
This issue is about to investigate why it's happening and fix the problem.
Ciao
- Discovered while testing
-
MDL-77758 Fix problems reported in apache logs before 4.2 release
-
- Closed
-
-
MDL-76407 Verify that the apache logs are clean of PHP 8.2 notices/warnings/errors
-
- Closed
-
-
MDL-76444 Verify that the apache logs are clean of PHP 8.3 notices/warnings/errors
-
- Closed
-
-
MDL-79317 Fix problems reported in Apache logs before 4.3 release
-
- Closed
-