Applicable to:
- SolusVM 2
Symptoms
- The task in SolusVM 2 goes to Queued state and hangs.
- After cancelling the stuck task in SolusVM 2 > Tasks it remains stuck inside the RabbitMQ container on the Management Server:
# docker exec -ti $(docker ps --format '{{ .ID }}' -f name=solus_rabbitmq) sh
# rabbitmqctl list_queues | grep <queued_task>
...
vm-<queued_task>-1-v1 12Note: Replace <queued_task> with the actual value. It can be seen in SolusVM 2 > Tasks > Action.
Cause
SolusVM 2 bug with ID #SIO-3662 which has been fixed in version 1.1.20949.
Resolution
Update SolusVM 2 by following the article.
For already affected tasks use the following workaround:
Note: There should not be any running tasks in SolusVM 2.
- Log in to the Management Server via SSH.
- Backup SolusVM 2 Management node.
-
Enter the rabbitmq container on the Management Server:
# docker exec -ti $(docker ps --format '{{ .ID }}' -f name=solus_rabbitmq) sh
-
Fetch the list of all queues:
# rabbitmqctl list_queues | grep <queued_task>
vm-<queued_task>-1-v1 12
vm-<queued_task>-4-v1 0
vm-<queued_task>-5-v1 0Note: the affected queue is vm-<queued_task>-1-v1 where the value is not zero.
-
Delete all messages from this queue like below:
# rabbitmqctl delete_queue vm-<queued_task>-1-v1
For example,
# rabbitmqctl delete_queue vm-backup-create-1-v1
- Log in to the Compute Resource via SSH where the VPS with the stuck backup task is hosted.
-
Restart the agent service:
# systemctl restart solus-agent
Comments
0 commentsPlease sign in to leave a comment.