Plesk Obsidian 18.0.20 Update #1, CentOS 7.7 でブラウザ右下のタスク進行中メッセージが0%のまま消えない。
https://support.plesk.com/hc/en-us/articles/115002120793-How-to-delete-a-stuck-task-
上記参考ページの通り。実施した内容を記載する。
$ sudo plesk db
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 323
Server version: 5.5.64-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [psa]> SELECT id,type,status,finishTime FROM longtasks WHERE status <> 'done';
+----+--------------+----------+---------------------+
| id | type | status | finishTime |
+----+--------------+----------+---------------------+
| 41 | panel-update | canceled | 0000-00-00 00:00:00 |
+----+--------------+----------+---------------------+
1 row in set (0.00 sec)
MariaDB [psa]> DELETE FROM longtasks WHERE id=41;
Query OK, 1 row affected (0.00 sec)
MariaDB [psa]> DELETE FROM longtaskparams WHERE task_id=41;
Query OK, 1 row affected (0.01 sec)
MariaDB [psa]> quit
Bye
$ pkill task-async-executor
今回dbのバックアップは行わなかったが、説明通り実施したほうが良いだろう。
上記のアクションを実行した後もタスクがスタックし続ける場合は以下のコマンドを使用してロックマネージャーをクリアする。
$ service sw-engine stop
$ rm -rf /var/lock/lmlib/container_locks
$ rm -f /usr/local/psa/var/cache/*
$ service sw-engine start