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

Cannot find session record in logs (h5p/embed.php) since Moodle 4.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2, 4.3
    • H5P
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • 3

      Since Moodle 4.2 (see MDL-77758, problem D) and confirmed when examining logs as part of the PHP 8.2 epic (see MDL-76407, problem C), we are getting the following in web server logs:

      210776:[Fri Jul 28 10:08:19.256826 2023] [php:notice] [pid 5357] [client 192.168.80.13:50730] Cannot find session record 5d5152bd57ab374bcd3b28655334925c for user 103000, creating new session., referer: http://webserverc5be55ab646ca4e0/behatrun2/h5p/embed.php?url=http%3A%2F%2Fwebserverc5be55ab646ca4e0%2Fbehatrun2%2Fpluginfile.php%2F104005%2Fmod_h5pactivity%2Fpackage%2F0%2Ffilltheblanks.h5p&preventredirect=1&component=mod_h5pactivity

      I've been unable to reproduce it locally (both full runs and individual component runs), but for sure the information is consistently in logs for all CI behat executions.

      The problem (Cannot find session record) is similar to the called "Problem A" (see linked issues, but in that case we were able to confirm that it's expected information).

      So this issue is about to:

      1. Try to be able to reproduce the problem.
      2. Check if it's expected (the test is exactly testing something without a session started).
      3. Fix it, if there is something to fix.

      Ciao

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 30 minutes
                1d 30m

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