I updated to the latest code last week and over the weekend I started getting errors in the backups of two of my course. The regular emails detailing the backup status reported the following
Summary
==================================================
Courses: 240
OK: 0
Skipped: 238
Error: 0
Unfinished: 2
Warning: 0
Some of your courses weren't saved!!
I received this email continually, every 30 minutes, over the weekend like it was stuck in a loop. (Note that the cron job runs every 10 minutes)
Looking at the backup logs reports at http://My.site/report/backups/index.php it shows a couple of courses with a status of “Unfinished”. When I go into the courses all seems fine but if I try and run a backup of the course or if I try and restore a copy of this course from a backup I get an error page showing 2 lines:
Error writing to database
Error reading from database
Sometimes I also get the added information
Warning: Error while sending QUERY packet. PID=3832 in C:\moodle\lib\dml\mysqli_native_moodle_database.php on line 902
Any ideas?
Background information
2 servers
Front server is Windows 2008 R2 x64, IIS 7.5, PHP 5.3.8, Moodle 2.3.3+ (Build: 20121123)
Back server is Windows 2008 R2 x64, MySQL 5.1.33,
Server check reports that all is OK