Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78862

Error renaming localcachedir monologo.svg since Moodle 4.2

XMLWordPrintable

    • 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

      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

      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

            meirza.arson@moodle.com Meirza
            stronk7 Eloy Lafuente (stronk7)
            David Woloszyn David Woloszyn
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 22 minutes
                6h 22m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.