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

Fix problems reported in apache logs before 3.8 release

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_38_STABLE

      Description

      This is about to inspect apache logs for complete behat runs and fix as many notices / problems are shown there. Aggregating information from all supported themes.

      Note that we still have the 3.6 issue (MDL-64177) open, so some of the problems may belong there. The 3.7 sister issue (MDL-65359) has been recently close.

      Used this regexp against goutte and chrome webserver logs, for reference:

      ag -v 'POST|GET|OPTIONS|\] (checking plan|(saving|calculating|loading|setting) controller|(applying|loading|instantiating) (backup|restore|plan)|(activity|section) skipped|setting file inclusion|processing file aliases|Unknown setting: (questionbank|overwrite_conf|course_shortname|course_fullname|course_startdate))|Failed Login: ' aggregated.txt > results.txt
      

      (where aggregated.txt is the union of goutte and chrome web server logs)

      You can see the actual results @ results.txt

      Summary:

      Problem A: Cannot find session record (maybe it's ok). It happens 1 times.

      49296:[Tue Oct 08 07:09:50.150609 2019] [php7:notice] [pid 2653] [client 192.168.160.16:40410] Cannot find session record e17248867b31b58a4b39d4c91c7a7b00 for user 111000, creating new session., referer: http://run2914d83c5cd0f778/behatrun2/user/profile.php?id=111000

      Problem B: Missing pageid paramente. It happens 4 times.

      69501:[Tue Oct 08 08:08:48.753973 2019] [php7:notice] [pid 19619] [client 192.168.160.16:43604] Default exception handler: A required parameter (pageid) was missing Debug:
      Error code: missingparam

      Problem C: Course or activity not accessible (maybe it's ok). It happens 2 times

      71254:[Tue Oct 08 08:12:52.176878 2019] [php7:notice] [pid 2442] [client 192.168.160.15:47340] Default exception handler: Course or activity not accessible. Debug: You are not logged in
      Error code: requireloginerror

      Problem D: User already has a grade (recyclebin restore, maybe it's ok). It happens 1 times.

      85561:[Tue Oct 08 08:48:20.760895 2019] [php7:notice] [pid 20367] [client 192.168.160.16:47208] User id '111001' already has a grade entry for grade item id '251000', referer: http://run2914d83c5cd0f778/behatrun2/admin/tool/recyclebin/index.php?contextid=104002

      That's all. Surely the only real problem is "Problem B"... for your consideration.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: