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

Working with pre-populated bucket #651

Open
asafo opened this issue Nov 24, 2024 · 1 comment
Open

Working with pre-populated bucket #651

asafo opened this issue Nov 24, 2024 · 1 comment

Comments

@asafo
Copy link

asafo commented Nov 24, 2024

Hello,

I've manually uploaded all objects to bucket and configured ObjectFS to use it.
It works fine - I can access the files which are only in the bucket.

But reports are wrong - Object status looks wrong:
Marked as only in filedir 1,455,991 1.2TB
Duplicated in filedir and external storage 0 0 bytes
Only in external storage 0 0 bytes
Delta (objectfs - filedir) 1,455,991 1.2TB
Filedir 0 0 bytes
Total 1,455,991 1.2TB

Additionally the task check_objects_location overloads the database in a level requiring us to stop it

Is there any process to synchronize the status in this scenario ?

@asafo
Copy link
Author

asafo commented Nov 24, 2024

Here's cron output finally raising exception:
Execute scheduled task: Object file system check objects location task (tool_objectfs\task\check_objects_location)
... started 12:02:27. Current memory use 5.2MB.
... used 36575 dbqueries
... used 2437.2535638809 seconds
Scheduled task failed: Object file system check objects location task (tool_objectfs\task\check_objects_location),
[24-Nov-2024 12:43:05 Asia/Jerusalem] Default exception handler: Debug: SSL SYSCALL error: EOF detected
SELECT pg_advisory_unlock($1, $2) AS unlocked
[array (
0 => 587100915,
1 => 113801282,
)]
Error code: dmlreadexception

  • line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
  • line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
  • line 338 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->read_slave_query_end()
  • line 986 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
  • line 1671 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql()
  • line 198 of /lib/classes/lock/postgres_lock_factory.php: call to moodle_database->get_record_sql()
  • line 107 of /lib/classes/lock/lock.php: call to core\lock\postgres_lock_factory->release_lock()
  • line 130 of /lib/cronlib.php: call to core\lock\lock->release()
  • line 73 of /lib/cronlib.php: call to cron_run_scheduled_tasks()
  • line 178 of /admin/cli/cron.php: call to cron_run()

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

1 participant