I have an unusual error when marking assignments. I have posted in the main user forums but received no joy; I think this is more of a developer-level question.
When marking 'assignments' using the graphical interface (the one that puts PDFs on the left and marking tools on the right), I am now getting a 'storedfilecannotcreateacess' error. This seems to be the case in particular for assignments that do not have an upload element (i.e. where marking 'offline' work.) We still want to use the graphical interface as we are using marking rubrics etc. This always worked fine, it is only this week that this error has been seen.
Error code: storedfilecannotcreatefile * line 466 of /lib/filestorage/file_system_filedir.php: file_exception thrown * line 1803 of /lib/filestorage/file_storage.php: call to file_system_filedir->add_file_from_string() * line 1435 of /lib/filestorage/file_storage.php: call to file_storage->add_string_to_pool() * line 331 of /mod/assign/feedback/editpdf/classes/combined_document.php: call to file_storage->create_file_from_string() * line 214 of /mod/assign/feedback/editpdf/classes/combined_document.php: call to assignfeedback_editpdf\combined_document->store_empty_document() * line 310 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\combined_document->combine_files() * line 349 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\document_services::get_combined_pdf_for_attempt() * line 193 of /mod/assign/feedback/editpdf/locallib.php: call to assignfeedback_editpdf\document_services::page_number_for_attempt() * line 7940 of /mod/assign/locallib.php: call to assign_feedback_editpdf->is_feedback_modified() * line 8108 of /mod/assign/locallib.php: call to assign->apply_grade_to_user() * line 1559 of /mod/assign/externallib.php: call to assign->save_grade() * line 228 of /lib/externallib.php: call to mod_assign_external::submit_grading_form() * line 59 of /lib/ajax/service.php: call to external_api::call_external_function()Simialr lines are appearing in /var/log/apache2/error.log.
This might suggest user permissions or lack of space, but this seems unlikely:
/srv/moodledata is the data dir with read and write permissions for group www-data [/srv/moodledata/filedir is a link to /srv/mnt/moodledata which is remote; has always worked fine in current setup]
/var/www/moodle is the web root with read permissions for www-data
There is plenty of space left on this server:
user #$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 41M 355M 11% /run
/dev/mapper/<serveridentifier>--PP--vg-root 28G 15G 12G 56% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda1 472M 58M 390M 13% /boot
<internal 10.... IP>:/MoodleData 14T 3.6T 11T 26% /srv/mnt/moodledata
tmpfs 396M 0 396M 0% /run/user/1001
Today, just to be sure, I ran a chgrp -R www-data and chmod g+w on /srv/moodledata. As a last-ditch attempt, I even tried re-starting the webserver but still get the same error. Would really appreciate any help that could be offered.