catalyst / moodle-tool_objectfs

Object file storage system for Moodle
https://moodle.org/plugins/tool_objectfs
86 stars 72 forks source link

objectfs not uploading anything to Azure. #591

Open hjlinde opened 10 months ago

hjlinde commented 10 months ago

I configured objectfs with Azure blob storage. To the best of my knowledge I followed all the steps correctly. On blob storage I see the two files it created called 'connection_check_file' and 'permissions_check_file'. Under Azure Blob Storage Settings, it shows green for 'could establish connection to the external object storage. Also shows green for 'Permissions check passed.'

I've created a course that contain several documents and files. However despite the setting 'Prefer external objects'. To date (after several days) it does not appear to upload anything ever to the external storage.

I've yet to find anything like an error. At a bit of a loss trying to understand why it is not trying to upload anything? Any potential assistance would be greatly appreciated!

hjlinde commented 10 months ago

Here is an example of one of the upload tasks. I don't understand why it is not attempting to upload to object storage, but instead 'local > local' ?

Execute scheduled task: Object file system upload task (tool_objectfs\task\push_objects_to_storage) ... started 16:55:04. Current memory use 7.1 MB. copy_object_from_local_to_external. Total time taken: 0.0015759468078613 seconds. Location change summary: local -> local. Objects moved: 705. Total size: 1.4 GB. ... used 2116 dbqueries ... used 6.0282571315765 seconds Scheduled task complete: Object file system upload task (tool_objectfs\task\push_objects_to_storage)

brendanheywood commented 9 months ago

There is a few reasons this could be doing what it is told: 1) the files are small and fit under the 'sizethreshold' setting 2) is enabletasks also on? 3) there is a bug specific to the azure store (long shot)

hjlinde commented 9 months ago

Points 1 and 2 I can account for. Files are defintiely above threshold, and enabletasks is also on.

Looking over the installation instructions. Being on Moodle 4.1 (as this is supported as per moodle.org) - the first step "1. If not on Moodle 3.3, backport the file system API. See [Backporting]"

The documentation is very confusing as to what should be done here. The link to #backporting does not work on Github. Assuming backporting refers to the section: "Applying core patches" - There are no references to Moodle 4 and no mandatory patches listed for 3.9. This makes it seem like step 1 is irrelevant and does not apply to newer versions of Moodle. Is it still relevant? If so, what must be done?