Too many failed tasks in the Background tasks
Symptoms
There are old tasks in the “Monitoring and logs” - “Background tasks” section that ended more than 24 hours ago with the status “Error running task”.
Causes
PID files of failed tasks were not removed automatically.
Solution
To clear the list of background tasks from failed ones you have to delete their PID files.
PID files are stored in “/usr/local/mgr5/var/run/” in subdirectories named after their queue name. PID file name consists of a script name and a task identifier.
For example, task’s PID file from queue named “backup2” with the script name “backup2” and the identifier “isptest” will be stored in “/usr/local/mgr5/var/run/backup2/backup2.isptest”:
root@example:~# ls -la /usr/local/mgr5/var/run/backup2/
total 24
drwxr-xr-x 2 root root 4096 Jun 5 06:01 .
drwxr-xr-x 24 root root 4096 Jun 5 22:59 ..
-rw-r----- 1 root root 240 Jun 5 03:02 backup2.isptest
-rw-r----- 1 root root 254 Jun 5 03:05 backup2.isqptestik.com
-rw------- 1 root root 263 May 22 09:01 backup2.manual_isptest
-rw-r----- 1 root root 229 Feb 8 02:42 backup2.www-root
-rw-r----- 1 root root 0 Jun 5 06:01 .state