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

Users unenrolled after 249 million days of inactivity

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.1, 3.8.1, 3.9
    • Fix Version/s: 3.7.5, 3.8.2
    • Component/s: Enrolments
    • Labels:

      Description

      'evening, Everyone!

      Some of our recently enrolled users (K12 school) disappeared from their courses with their submissions, gradings, etc. Driven by an intuition I run the cron script in a browser and found some weird lines in the log:

      unenrolling user 2043 from course 823 as they have did not access course for at least 248832000 days

      249 million days... It must be a bug.

      User 2043 was enrolled 3 weeks ago into course 823 which is just 4 weeks old. Many of the un-enrolled users were active earlier today. Some users were un-enrolled from multiple courses.

      Not all students were removed from the courses and not all courses are affected. We have a course where 24 of 25 students were removed, 1 single user remained. No idea what makes the difference between them. We also have a course untouched since 2013 and it has all the enrolments.

      If 248832000 actually is not a number of days but a unix timestamp, then it's exactly 2880 days. Does it make any sense?

      There are no error messages. We are behind a firewall and no external access available.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              hellsing Rózsahegyi Péter
              Peer reviewer:
              Paul Holden
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/20

                  Time Tracking

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