Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objectfs not uploading anything to Azure. #591

Open
hjlinde opened this issue Jan 10, 2024 · 3 comments
Open

objectfs not uploading anything to Azure. #591

hjlinde opened this issue Jan 10, 2024 · 3 comments

Comments

@hjlinde
Copy link

hjlinde commented Jan 10, 2024

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
Copy link
Author

hjlinde commented Jan 10, 2024

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
Copy link
Contributor

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
Copy link
Author

hjlinde commented Jan 15, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants