Abort a restore in process pending

Re: Abort a restore in process pending

by Beowulf Blockchain -
Number of replies: 3
I have the same problem.
I need a way to see all running/pending backups in the system and a way to stop/cancel/abort them.
I'm using Moodle ver 3.9
In reply to Beowulf Blockchain

Re: Abort a restore in process pending

by Mohamed Herzallah -

I have the same problem.

Have any one have an obvious solution to it

In reply to Mohamed Herzallah

Re: Abort a restore in process pending

by Jim Johnson -
I just fixed *our* issue, which was the restore/backup/import/duplicate/whatever would stall/process pending only when we included questions & question banks in the backups/restore.

Once we stopped including the question banks, the backup & restore & import & duplicate functions worked perfectly.

It took me two days of reading many moodle posts to figure this out.

To stop the process pending, I went to moodledata/temp/ and deleted everything *mostly the backup folder* and in moodledata/lock/ deleted that folder, also purged all caches ; we restarted our server and killed the mysql connections, restarted again and waited 24 hours. We then went to admin/tools/scheduled tasks and admin/tasks running (admin/tool/task/runningtasks.php). I also ran from cli php admin/cli/adhoc_task.php --execute

The backups & restores with questions in them randomly finished incorrectly over the 24 hours by themselves and we no longer restore courses with question banks. It's a hassle but we download the .gfts and rebuild the quizzes each time.
Average of ratings: Useful (1)
In reply to Jim Johnson

Re: Abort a restore in process pending

by Ken Task -
Picture of Particularly helpful Moodlers

@Jim Johnson ...

First, congrats on solving!   Wow!
Don't mean to 'burst bubbles', but sounds like there is a serious
problem concerning quiz bank.

Suggest picking a non-prime time to run the Health Tool.
https://yoursite/admin/tool/health/

The above URL will run the tool without any prompt or option ... that's why non-prime time suggested.   Have no idea as to how intensive it might be.

It's not found in admin menus and it is not officially supported but it might provide some clues as well as SQL query fixes to quiz bank issues.   I too have seen quiz bank issues (not yours specifically) and the suggested fixes (DB queries run on DB for moodle) did resolve some issues.   Enough to fix some courses.

Good luck!

'SoS', Ken