TASK ERROR: can't lock file '/var/lock/qemu-server/lock-103.conf' - got timeout

thusband

Member
Jun 30, 2022
146
6
23
I set up a VM using the tteck Ubuntu VM script with the default options. After it was running I decided I wasn't going to use it so I tried to shut the VM down before removing it but couldn't. All I get is the error message:

trying to acquire lock...

TASK ERROR: can't lock file '/var/lock/qemu-server/lock-103.conf' - got timeout

I finally got into the server via ssh and ran systemctl restart pveproxy pvedaemon pvestatd
It stopped the hang up but I still can't remove the VM. I can't shutdown, pause, stop or reboot.

When I start Proxmox in Syslog I get: Apr 11 17:44:21 pve pvedaemon[15053]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - got timeout

I just want to remove the VM. Here's my Syslog for that time frame when everything locked up:
Apr 11 15:56:26 pve pvedaemon[1070]: <root@pam> successful auth for user 'root@pam'

Apr 11 15:56:40 pve pvedaemon[1070]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - got timeout

Apr 11 15:56:48 pve pvedaemon[1070]: <root@pam> starting task UPID:pve:000032E4:0003AB3B:6617FA30:qmshutdown:103:root@pam:

Apr 11 15:56:48 pve pvedaemon[13028]: shutdown VM 103: UPID:pve:000032E4:0003AB3B:6617FA30:qmshutdown:103:root@pam:

Apr 11 15:56:59 pve pvedaemon[1071]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - got timeout

Apr 11 15:57:18 pve pvedaemon[1070]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - got timeout

Apr 11 15:57:37 pve pvedaemon[1071]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - unable to connect to VM 103 qga socket - timeout after 31 retries

Apr 11 15:57:50 pve pvedaemon[1070]: <root@pam> starting task UPID:pve:000033B0:0003C324:6617FA6E:qmshutdown:103:root@pam:

Apr 11 15:57:50 pve pvedaemon[13232]: shutdown VM 103: UPID:pve:000033B0:0003C324:6617FA6E:qmshutdown:103:root@pam:

Apr 11 15:57:56 pve pvedaemon[1070]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - unable to connect to VM 103 qga socket - timeout after 31 retries

Apr 11 15:58:00 pve pvedaemon[13232]: can't lock file '/var/lock/qemu-server/lock-103.conf' - got timeout

Apr 11 15:58:00 pve pvedaemon[1070]: <root@pam> end task UPID:pve:000033B0:0003C324:6617FA6E:qmshutdown:103:root@pam: can't lock file '/var/lock/qemu-server/lock-103.conf' - got timeout

Apr 11 15:58:16 pve pvedaemon[1071]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - unable to connect to VM 103 qga socket - timeout after 31 retries

Apr 11 15:58:36 pve pvedaemon[1070]: VM 103 qmp command failed - VM 103 qmp command 'guest-ping' failed - unable to connect to VM 103 qga socket - timeout after 31 retries

Any hints greatly appreciated.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!