Cancel Stuck Task on Plesk

Menghentikan task yang stuck (error not responding) pada plesk dengan cli

Login ke server plesk dengan ssh, kemudian masuskan perintah berikut, sesuaikan angka id dengan task yang stuck.

[root@funny-volhard plesk]# plesk db dump > /root/psa_dump.sql
[root@funny-volhard plesk]# plesk db "SELECT id,type,status,finishTime FROM longtasks WHERE status <> 'done'"
+----+---------------------+---------+---------------------+
| id | type                | status  | finishTime          |
+----+---------------------+---------+---------------------+
| 34 | ext-catalog-install | started | 0000-00-00 00:00:00 |
+----+---------------------+---------+---------------------+
[root@funny-volhard plesk]# plesk db "DELETE FROM longtasks WHERE id=34"
[root@funny-volhard plesk]# plesk db "DELETE FROM longtaskparams WHERE task_id=34"
[root@funny-volhard plesk]# pkill task-async-executor
[root@funny-volhard plesk]#
[root@funny-volhard plesk]# service sw-engine stop
Stopping sw-engine (via systemctl):                        [  OK  ]
[root@funny-volhard plesk]# rm -rf /var/lock/lmlib/container_locks
[root@funny-volhard plesk]# rm -f /usr/local/psa/var/cache/*
[root@funny-volhard plesk]# service sw-engine start
Starting sw-engine (via systemctl):                        [  OK  ]
[root@funny-volhard plesk]#

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.