moodle-tool_objectfs
moodle-tool_objectfs copied to clipboard
Objects are not removed from local even when enabled "Delete local objects"
In my case I am using Amazon s3 as external object and files are synced after running cron job. Now it is bit confusing whether files are from local or external object. I have enabled Delete local objects but still the size before sync and after sync are same.
Here is my object report

I would only expect 14mb to be locally. It will take some time for the local files to cleanup and be removed (it isn't instant)
@kisonay Problem exists since yesterday. You know how to cross check? Also in above screenshot "Only in External storage" is 0 still.
I would only expect 14mb to be locally. It will take some time for the local files to cleanup and be removed (it isn't instant)
May I know the settings for this to happen?
I would only expect 14mb to be locally. It will take some time for the local files to cleanup and be removed (it isn't instant)
If not instant is this related to CRON job timing which we schedule?
Have you regenerated a report?
The report is created by a nightly task \tool_objectfs\task\generate_status_report
So while change may have occured you don't have an up to date report
@aspark21 thank you for the response. Yes I have regenerated. This is my recent report, If you see Only in External storage is still 0

are you running cron on your site correctly? - or are you manually triggering events/cron when needed? This plugin requires multiple cron tasks to run multiple times overnight and with larger sites the process can take some time (days/weeks) as it tries to be kind to the API's and doesn't do everything all at once but slowly migrates the content and deletes the local data when ready.
@danmarsden I have few questions
- Only after migrating everything, local data will be deleted?
- In my server data directory is 148GB and in Amazon s3 also size is 148.1GB, So I assume everything is transferred.
This is my cronjob schedular in server, running for the past 3 days.
* * * * * /opt/cpanel/ea-php74/root/usr/bin/php /to/public_html/admin/cli/cron.php > /dev/null 2>&1
And in application

@danmarsden still files are removed from my the server. Cron are running regularly
not sure what else I can suggest sorry - it works for us - and we have this running in a massive number of sites...