by Hafriz Azhan.
Hi,
Currently, we are facing issues with Asynchronous Restore in Moodle. When performing some restores using asynchronous restore, certain processes take very long and eventually fail, showing the following error in the log:
Execute adhoc task: core\task\asynchronous_restore_task
Adhoc task id: 205171094
Adhoc task custom data: {"backupid":"2ca63fe63a308dc64f26c6d0d5c77272"}
... started 07:45:37. Current memory use 43.4 MB.
Debugging increased temporarily due to faildelay of 60
Processing asynchronous restore for id: 2ca63fe63a308dc64f26c6d0d5c77272
Bad backup controller status, is: 800 should be 700, marking job as failed.
Restore completed in: 0 seconds
... used 5 dbqueries
... used 0.072203159332275 seconds
Adhoc task complete: core\task\asynchronous_restore_taskInterestingly, using the same failed backup file, when we disable asynchronous restore and use synchronous restore instead, the restore process completes successfully.
Is there anywhere specific I can check to identify the root cause of the issue with asynchronous restore?
Additionally, I read somewhere that Moodle plans to remove synchronous restore in future releases and replace it entirely with asynchronous restore. Any insights on this transition and how to best prepare for it would also be appreciated.
Thank you.