terraform-provider-proxmox: Error: 500 can't lock file

Hi,

does anyone had similar error? Any solution for that?


Error: 500 can't lock file '/var/lock/qemu-server/lock-104.conf' - got timeout

  on vm-gitlab.tf line 2, in resource "proxmox_vm_qemu" "gitlab":
   2: resource "proxmox_vm_qemu" "gitlab" {



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

  on vm-squid.tf line 2, in resource "proxmox_vm_qemu" "squid":
   2: resource "proxmox_vm_qemu" "squid" {

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 23 (3 by maintainers)

Most upvoted comments

I just ran into the same problem using v3.0.1-rc4. I was creating multiple VMs in parallel cloning the same template.

I can confirm setting pm_parallel = 1 in the provider config fixes the problem.

pm_parallel defaults to 4. I guess it’s probably a good idea to change these default setting to 1 as a bunch of other users will run right away into that problem.

Aha! Okay, I was able to reproduce this. Looks like @rpelissi was on the right path in suggesting the timeout parameter is not being honored somewhere. I dropped the timeout to 5 seconds in my testing but I had to clone a massive enough VM to cause the lock error to occur after 5 minutes of waiting for the clone to finish. I’ll dive in here and update when I think I’ve found a solution. In the meanwhile I do believe the clone_wait attribute should be a valid workaround.