Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
- Domain creation task is stuck in Plesk.
-
The task has a "not_started" status in
psa.longtasksdatabase table:# plesk db "SELECT id,type,status,finishTime FROM longtasks WHERE status <> 'done'"
+------+------------------------------------------+-------------+---------------------+
| id | type | status | finishTime |
+------+------------------------------------------+-------------+---------------------+
| 88282| domain-create | not_started | 0000-00-00 00:00:00 |
Cause
Unclear.
Resolution
- Connect to your Plesk server via SSH.
-
Created a backup of the Plesk database:
# plesk db dump psa > /root/psa.sql
-
Find the ID of the stuck task that has status "not_started" (in this example, it is 88282):
# plesk db "SELECT id,type,status,finishTime FROM longtasks WHERE status <> 'done'"
+------+------------------------------------------+-------------+---------------------+
| id | type | status | finishTime |
+------+------------------------------------------+-------------+---------------------+
| 88282| domain-create | not_started | 0000-00-00 00:00:00 | -
Using the ID, remove this task from
longtasksandlongtaskparamsdatabase tables:# plesk db "DELETE FROM longtasks WHERE id=88282"
# plesk db "DELETE FROM longtaskparams WHERE task_id=88282"
-
Restart the the Plesk Task Manager service:
# service plesk-task-manager restart
- Connect to your Plesk server via RDP.
- Start a command prompt as an Administrator.
-
Created a backup of the Plesk database:
C:\> plesk db dump psa > C:\psa_dump.sql
-
Find the ID of the stuck task that has status "not_started" (in this example, it is 88282):
C:\> plesk db "SELECT id,type,status,finishTime FROM longtasks WHERE status <> 'done'"
+------+------------------------------------------+-------------+---------------------+
| id | type | status | finishTime |
+------+------------------------------------------+-------------+---------------------+
| 88282| domain-create | not_started | 0000-00-00 00:00:00 | -
Using the ID, remove this task from
longtasksandlongtaskparamsdatabase tables:C:\> plesk db "DELETE FROM longtasks WHERE id=88282"
C:\> plesk db "DELETE FROM longtaskparams WHERE task_id=88282"
-
Restart the the Plesk Task Manager service:
C:\> net stop PleskTaskManager && net start PleskTaskManager
Comments
Please sign in to leave a comment.