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

Flat file enrolments - file not being deleted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.1
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
      None
    • Environment:
      CentOS Linux 4.6 (x86_64)
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Flat file enrolment enabled and directory set in Moodle admin interface. Set emails to come to admins.
      Flat file directory is owned by apache (Moodle runs under apache user).
      Flat CSV file placed in directory.
      Every 5 minutes (under cron), the file is found.

      WHAT WAS EXPECTED

      • The file should be deleted.

      WHAT ACTUALLY HAPPENS

      • The file is not deleted. It stays there.

      Email messages received every 5 minutes:

      "Important error: Enrolment file"
      The text file you are using for file-based enrolments
      (/home/moodle19/enrolments) can not be deleted by the cron process. This
      usually means the permissions are wrong on it. Please fix the permissions so
      that Moodle can delete the file, otherwise it might be processed repeatedly.

      "Flatfile Enrolment Log"
      Tuesday, 29 July 2008, 12:56 PM
      Flatfile enrol cron found file: /home/moodle19/enrolments
      Error unlinking file /home/moodle19/enrolments

      I've tried

      • setting extremely permissive permissions (eg chmod -R a+w)
      • fully and recursively chowning the directory to apache user and group

      No joy. File stays.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: