Articles in this section

Domain creation/removal task is stuck in Plesk

kb: technical

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.longtasks database 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

For Plesk on Linux
  1. Connect to your Plesk server via SSH.
  2. Created a backup of the Plesk database:

    # plesk db dump psa > /root/psa.sql

  3. 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 |

  4. Using the ID, remove this task from longtasks and longtaskparams database tables:

    # plesk db "DELETE FROM longtasks WHERE id=88282"

    # plesk db "DELETE FROM longtaskparams WHERE task_id=88282"

  5. Restart the the Plesk Task Manager service:

    # service plesk-task-manager restart

For Plesk on Windows Server
  1. Connect to your Plesk server via RDP.
  2. Start a command prompt as an Administrator.
  3. Created a backup of the Plesk database:

    C:\> plesk db dump psa > C:\psa_dump.sql

  4. 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 |

  5. Using the ID, remove this task from longtasks and longtaskparams database tables:

    C:\> plesk db "DELETE FROM longtasks WHERE id=88282"

    C:\> plesk db "DELETE FROM longtaskparams WHERE task_id=88282"

  6. Restart the the Plesk Task Manager service:

    C:\> net stop PleskTaskManager && net start PleskTaskManager 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.