Moodle
  1. Moodle
  2. MDL-16396

Random users disappearing from course

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.1
    • Fix Version/s: None
    • Component/s: Course, Unknown
    • Labels:
      None
    • Environment:
      Front End - Red hat EL4, Apache, PHP, FreeTDS
      Back End - MS SQL 2005
      LDAP - Windows 2003
    • Database:
      Microsoft SQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Rank:
      2175

      Description

      We have some students disappearing from different courses randomly. Each day we may have around 5-10 students disappearing from a course whilst they are still enrolled into other courses. Students cannot unenrol themselves and the cleanup option is set to never. All students are authenticated via LDAP.

      I cannot reproduce the problem and it appears to happen randomly to different students each day in different courses.

        Activity

        Mark created issue -
        Hide
        Tom Banaszewski added a comment -

        I'm experiencing this also. Students are still there as users, but not from the groups in the courses they were enrolled in.

        Show
        Tom Banaszewski added a comment - I'm experiencing this also. Students are still there as users, but not from the groups in the courses they were enrolled in.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        AFAIK that uses to be caused by the "Enrolment duration" course setting. Any user that was enrolled with that setting "enabled" (different from "unlimited") will be unenrolled after the specified period, no matter if the setting has been changed later to "unlimited".

        Could that be the cause?

        Ciao

        Show
        Eloy Lafuente (stronk7) added a comment - AFAIK that uses to be caused by the "Enrolment duration" course setting. Any user that was enrolled with that setting "enabled" (different from "unlimited") will be unenrolled after the specified period, no matter if the setting has been changed later to "unlimited". Could that be the cause? Ciao
        Hide
        Samir added a comment -

        This is happening to us as well. It happens to all roles (not only students) and we are on 1.9.4 and MySQL.

        Enrolment duration doesn't affect this.

        Show
        Samir added a comment - This is happening to us as well. It happens to all roles (not only students) and we are on 1.9.4 and MySQL. Enrolment duration doesn't affect this.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Hi,

        just trying to imagine which could be the cause for that... what mathod or enrolments are you using? Manual, upload file of enrolments, ldap, db....

        I really cannot imagine any cause for that (but the setting in course commented above) and some sort of bug in some enrolment plugin.

        Adding some more (imaginative) people here... ciao

        Show
        Eloy Lafuente (stronk7) added a comment - Hi, just trying to imagine which could be the cause for that... what mathod or enrolments are you using? Manual, upload file of enrolments, ldap, db.... I really cannot imagine any cause for that (but the setting in course commented above) and some sort of bug in some enrolment plugin. Adding some more (imaginative) people here... ciao
        Hide
        Samir added a comment -

        Hi, we manually enroll everybody and everything seems to be well in the beginning. This makes me think it's not the enrolment issue.

        Thanks.

        Show
        Samir added a comment - Hi, we manually enroll everybody and everything seems to be well in the beginning. This makes me think it's not the enrolment issue. Thanks.
        Hide
        Caroline Moore added a comment -

        This is happening to me in 1.9.7 as well. (It never happened to me, that I know of, in previous versions.) When instructors manually add students, some of those students disappear, seemingly at random.

        This is not happening to students who are enrolled via flatfile enrollment, only to those added to courses manually.

        All of the students authenticate to Moodle via LDAP. Only authentication is done via LDAP, not account creation or enrollment.

        Show
        Caroline Moore added a comment - This is happening to me in 1.9.7 as well. (It never happened to me, that I know of, in previous versions.) When instructors manually add students, some of those students disappear, seemingly at random. This is not happening to students who are enrolled via flatfile enrollment, only to those added to courses manually. All of the students authenticate to Moodle via LDAP. Only authentication is done via LDAP, not account creation or enrollment.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Hi Caroline,

        firstly, can you check if the enrolments in your server have any expiration date? To do so execute this, plz:

        SELECT * FROM mdl_role_assignments
        WHERE timeend > 0

        does that return any assignment? If so, it means the course has some "enrol duration" defines, as commented above, and that means that all the enrolments in those curses will have expiration date (i.e. will be removed).

        The 2nd cause I can imagine for users being unenroled is that you have defined the "longtimenosee" variable and the students you are being unenroled as they are more than ZZZ days without access to the course. Plz, check it (if you use to save moodle cron output, you can look for the "removing user XXX from course YYY as they have not accessed the course for over ZZZ days" string.

        And those are the only two causes for "automatic unenrolments" to happen if using manual enrolments. I really cannot imagine another one. Could you, plz, check them?

        TIA and ciao

        Show
        Eloy Lafuente (stronk7) added a comment - Hi Caroline, firstly, can you check if the enrolments in your server have any expiration date? To do so execute this, plz: SELECT * FROM mdl_role_assignments WHERE timeend > 0 does that return any assignment? If so, it means the course has some "enrol duration" defines, as commented above, and that means that all the enrolments in those curses will have expiration date (i.e. will be removed). The 2nd cause I can imagine for users being unenroled is that you have defined the "longtimenosee" variable and the students you are being unenroled as they are more than ZZZ days without access to the course. Plz, check it (if you use to save moodle cron output, you can look for the "removing user XXX from course YYY as they have not accessed the course for over ZZZ days" string. And those are the only two causes for "automatic unenrolments" to happen if using manual enrolments. I really cannot imagine another one. Could you, plz, check them? TIA and ciao
        Hide
        Dan Jeffries added a comment -

        Hi

        We are having the same issues, and cannot figure out why.

        We have tried all the server commands as listed above, changed the admin settings for 'longtimenosee' as well.

        It is now a real issue as some students have lost work. On the whole, if a student is enrolled again by the tutor (manually) then all their work returns. However, this hasn't happened for a couple of students - not great.

        I also know it's a random feature as we have teachers who are enrolled as students for Teacher Training courses and they have 'vanished' from the course too.

        We are running 1.9.5+ and wont be upgrading until July.

        Show
        Dan Jeffries added a comment - Hi We are having the same issues, and cannot figure out why. We have tried all the server commands as listed above, changed the admin settings for 'longtimenosee' as well. It is now a real issue as some students have lost work. On the whole, if a student is enrolled again by the tutor (manually) then all their work returns. However, this hasn't happened for a couple of students - not great. I also know it's a random feature as we have teachers who are enrolled as students for Teacher Training courses and they have 'vanished' from the course too. We are running 1.9.5+ and wont be upgrading until July.
        Hide
        Murphy Wong added a comment -

        Did you set the "Unsubscribe users from" to "None" at the Site Administration -> Server -> Cleanup?

        Second, if you have logged the output from the cron job, did you see something like the following:
        Running clean-up tasks...
        removing user 454 from course 5 as they have not accessed the course for over 120 days
        removing user 454 from course 7 as they have not accessed the course for over 120 days

        please check.

        Show
        Murphy Wong added a comment - Did you set the "Unsubscribe users from" to "None" at the Site Administration -> Server -> Cleanup? Second, if you have logged the output from the cron job, did you see something like the following: Running clean-up tasks... removing user 454 from course 5 as they have not accessed the course for over 120 days removing user 454 from course 7 as they have not accessed the course for over 120 days please check.
        Hide
        Caroline Moore added a comment -

        I am having this problem again in 1.9.9. Again, it seems to be affecting only manually-added users.

        I ran the query Eloy suggested (SELECT * FROM mdl_role_assignments WHERE timeend > 0) and it turned up only one record, which expired back in 2008.

        When I manually run cron.php, it tells me "Removing expired enrolments ...none found."

        My longtimenosee variable is set to "Never."

        All courses have an enrollment duration of "Unlimited."

        Has anyone found a solution to this problem?

        Show
        Caroline Moore added a comment - I am having this problem again in 1.9.9. Again, it seems to be affecting only manually-added users. I ran the query Eloy suggested (SELECT * FROM mdl_role_assignments WHERE timeend > 0) and it turned up only one record, which expired back in 2008. When I manually run cron.php, it tells me "Removing expired enrolments ...none found." My longtimenosee variable is set to "Never." All courses have an enrollment duration of "Unlimited." Has anyone found a solution to this problem?
        Hide
        Mete added a comment -

        we're experiencing this problem on 1.9.7+. All courses have an enrollment duration of "Unlimited." But this problem occurs only on "resetted courses".
        is it possible the "resetted courses" cause this problem?

        Show
        Mete added a comment - we're experiencing this problem on 1.9.7+. All courses have an enrollment duration of "Unlimited." But this problem occurs only on "resetted courses". is it possible the "resetted courses" cause this problem?
        Hide
        Caroline Moore added a comment -

        At my institution we don't reset courses, so that can't be the whole cause of the issue. However, now that Mete mentioned this, I wonder if it's only happening for us on courses that have had content imported or restored from another Moodle course. It's certainly possible that that is the case, since most of our "power Moodle users" copy their course content from semester to semester.

        Show
        Caroline Moore added a comment - At my institution we don't reset courses, so that can't be the whole cause of the issue. However, now that Mete mentioned this, I wonder if it's only happening for us on courses that have had content imported or restored from another Moodle course. It's certainly possible that that is the case, since most of our "power Moodle users" copy their course content from semester to semester.
        Martin Dougiamas made changes -
        Field Original Value New Value
        Workflow jira [ 28336 ] MDL Workflow [ 43869 ]
        Martin Dougiamas made changes -
        Workflow MDL Workflow [ 43869 ] MDL Full Workflow [ 72253 ]
        Hide
        Michael Dillon added a comment -

        I am runnig 1.9.5+. Any news for this issue?
        Thanks

        Show
        Michael Dillon added a comment - I am runnig 1.9.5+. Any news for this issue? Thanks
        Hide
        Kieran Briggs added a comment -

        We are having the same problem. Our automatic unenrol is set at 365 days, but there are teachers dropping off courses after 10-15 days randomly. Need to find out what the cause of this is. We are on 1.9.15

        Show
        Kieran Briggs added a comment - We are having the same problem. Our automatic unenrol is set at 365 days, but there are teachers dropping off courses after 10-15 days randomly. Need to find out what the cause of this is. We are on 1.9.15
        Hide
        Michael de Raadt added a comment -

        Thanks for reporting this issue.

        We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

        If you believe that this issue is still relevant to current versions (2.3 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

        Michael d;

        4d6f6f646c6521

        Show
        Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.3 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; 4d6f6f646c6521
        Hide
        Michael de Raadt added a comment -

        I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported.

        If you still believe this is an issue in supported versions, please report a new issue.

        Show
        Michael de Raadt added a comment - I'm closing this issue as it has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you still believe this is an issue in supported versions, please report a new issue.
        Michael de Raadt made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]

          People

          • Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: