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

Moodle 3.10 - ObjectFS #421

Closed
akahky opened this issue May 19, 2021 · 6 comments
Closed

Moodle 3.10 - ObjectFS #421

akahky opened this issue May 19, 2021 · 6 comments

Comments

@akahky
Copy link

akahky commented May 19, 2021

Hello All,
I am currently running moodle 3.10 and objectfs to upload the files to DigitalOcean space, the issue is that the files are not being synchronized with DigitalOcean space.

I have a couple of questions:

in digitalocean space settings should the space name be written fully qualified such as "space.fra1.digitaloceanspaces.com" or just "space" and set the region to fr1?
is there anyway to run objectfs manually to force files synchronization?
is cron job required to synchronize the data? if yes, how can I do that?
Where can I find the logs of objectfs?
Appreciating your feedback.

@guillefd
Copy link

I'm using objectfs wth moodle 3.9 and Digitalocean, working good so far

  • digitalocean space settings space name:
    just the "space name", not the full url

  • run objectfs manually to force files synchronization:
    go to admin > server > scheduled tasks
    MOODLE_URL/admin/tool/task/scheduledtasks.php
    search for "Object file system upload task", click on "run now" (or run on moodle CLI)

-is cron job required to synchronize the data
yes, just setup standard moodle cron

-Where can I find the logs of objectfs?
go to MOODLE_URL/admin/tasklogs.php
filter by "objectfs"

@akahky
Copy link
Author

akahky commented May 19, 2021

Thanks a lot, I have the following tasks defined already and they are running successfully yet files are not being synchronized.
Object file system check objects location task
Object file system delete local empty directories task
Object file system delete local objects task
Object status report generator task
Object file system download objects task

Do I still need to have a cron job even if these tasks already defined?

@akahky
Copy link
Author

akahky commented May 19, 2021

one more issue, DigitalOcean Space has about 1800 files before the upgrade, all the files added after the upgrade are not synchronized to DigitalOcean space and there is no errors in the logs, how can I resynchronize and upload the missing files to Space?
Also I cannot see tool_objectfs_objects table in the database instead it is renamed to mdl_tool_objectfs_objects, does this cause any issues?

@akahky
Copy link
Author

akahky commented May 20, 2021

Any advises to get objectfs working again?

@guillefd
Copy link

guillefd commented May 20, 2021

have you checked this? #413
the master branch does not include this fix yet, apply mannualy and it should work

check if you have added this change to your files https://github.com/catalyst/moodle-tool_objectfs/pull/413/files

@akahky
Copy link
Author

akahky commented May 21, 2021

Thanks, this fixed the issue.

@akahky akahky closed this as completed May 21, 2021
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