Exactly where are you seeing this 'course status freze'?
moodledata/temp/ is just that ... temp.
So nothing in moodledata/temp/backup/ now?
"deleted ... the records in the mdl_backup_controllers table with status 800 and execution times over 2 hours"
So what records are in mdl_backup_controllers now?
Then you say "The mdl_task_adhoc table has no records"
So when you make that same query, you get 0 records returned?
Same exact error?
There are task in the cron job.
Messing with DB is never a good idea, but in this case, both tables are 'tracker type tables' and I can't think of an alternative!!!
And I did suggest you run cron.php from the command line. Did you try that to see?
You have to find some way to regain control of an automatted thing.
What of a ps list ... ps aux |grep php
mysql> show tables like '%backup%';
+----------------------------+
| Tables_in_m44sb (%backup%) |
+----------------------------+
| mdl_backup_controllers |
| mdl_backup_courses |
| mdl_backup_logs |
+----------------------------+
3 rows in set (0.00 sec)
mysql> explain mdl_backup_courses;
+---------------+------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+------------+------+-----+---------+----------------+
| id | bigint | NO | PRI | NULL | auto_increment |
| courseid | bigint | NO | UNI | 0 | |
| laststarttime | bigint | NO | | 0 | |
| lastendtime | bigint | NO | | 0 | |
| laststatus | varchar(1) | NO | | 5 | |
| nextstarttime | bigint | NO | | 0 | |
+---------------+------------+------+-----+---------+----------------+
6 rows in set (0.00 sec)
mysql> explain mdl_backup_logs;
+-------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+-------------+------+-----+---------+----------------+
| id | bigint | NO | PRI | NULL | auto_increment |
| backupid | varchar(32) | NO | MUL | | |
| loglevel | smallint | NO | | NULL | |
| message | longtext | NO | | NULL | |
| timecreated | bigint | NO | | NULL | |
+-------------+-------------+------+-----+---------+----------------+
5 rows in set (0.01 sec)
mysql> explain mdl_backup_controllers;
+---------------+----------------+------+-----+------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------+----------------+------+-----+------------------+----------------+
| id | bigint | NO | PRI | NULL | auto_increment |
| backupid | varchar(32) | NO | UNI | | |
| operation | varchar(20) | NO | | backup | |
| type | varchar(10) | NO | MUL | | |
| itemid | bigint | NO | | NULL | |
| format | varchar(20) | NO | | | |
| interactive | smallint | NO | | NULL | |
| purpose | smallint | NO | | NULL | |
| userid | bigint | NO | MUL | NULL | |
| status | smallint | NO | | NULL | |
| execution | smallint | NO | | NULL | |
| executiontime | bigint | NO | | NULL | |
| checksum | varchar(32) | NO | | | |
| timecreated | bigint | NO | | NULL | |
| timemodified | bigint | NO | | NULL | |
| progress | decimal(15,14) | NO | | 0.00000000000000 | |
| controller | longtext | NO | | NULL | |
+---------------+----------------+------+-----+------------------+----------------+
17 rows in set (0.00 sec)
take a gander at data in all three of those tables.
'SoS', Ken