ad hoc tasks fail during async backup for course copy routine
Wondering if anyone can steer me in the right direction. I am troubleshooting the failure of these adhoc tasks. For some reason, it seems like only one user of mine is having an issue with the Copy Course functionality..which seems to involve taking/restoring an asynchronous backup (which is have enabled).
I am running Moodle 4.2.3 on Windows Server and SQL Server...when browsing the adhoc task table, i am noticing a few fields are NULL....Moodle is not throwing an error, but it seems weird that 'component' is blank, 'userid' , 'hostname', & 'pid' are NULL, right?
In the query below, i had already updated userid from NULL to 4...but it did not make a difference.
In the course of troubleshooting this, i have picked up that we had some plugins that needs to be removed/uninstalled...that has been done, so both my web servers show identical info on active plugins.
So does anything stick out?
Thanks for reading this...
WH
Re: ad hoc tasks fail during async backup for course copy routine
Perhaps a way to find the problem is
- disabling asynchronous backup
- enable debugging
- enable display debugging
- create a manual backup of the course with id 470.
Re: ad hoc tasks fail during async backup for course copy routine
Admittedly, we started on Moodle 1.x way back when and have tried to keep up as versions change. Through the last few major version changes, I have not done as much testing as I should have. This is the first time I’ve ever had to investigate scheduled or adhoc task issues, as most of our prior issues seem to clear when cron runs from windows scheduled tasks. The documentation I read on the course copy/move feature seemed to change recently, leading me to turn on async backups…
To confirm your approach, I should enable debugging from front end settings and inside config.php, then disable async backups and take a manual backup to test if the course itself has issues? Great input…thank you vm…I’ll try that asap.
Moments after I submitted this post, a transformer at my office park blew and now am in darkness for the next 3-4 hours. I’ll be back….