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
- setting extremely permissive permissions (eg chmod -R a+w)
- fully and recursively chowning the directory to apache user and group
No joy. File stays.