terraform-provider-proxmox: Error: 500 CT 241 already running, `v3.0.1-rc5`

Abstract

I faced an Error Error: 500 CT 241 already running when I create Proxmox LXC with version v3.0.1-rc5 After terraform apply, I got this error but Proxmox LXC is working properly. So, I guess health check system is something wrong. And also, I can not do terraform destroy on this LXC for some reason. It’s really inconvenient. I’m really grad if it’s fixed

Checked

  • v3.0.1-rc4 does not have this issue
  • If start=false, I can not see this issue. I can do terraform apply and terraform destroy
  • v3.0.1-rc6 has same issue

Full Error Log

module.proxmox_lxc.proxmox_lxc.basic: Creating...
module.proxmox_lxc.proxmox_lxc.basic: Still creating... [10s elapsed]

│ Error: 500 CT 241 already running
│ 
│   with module.proxmox_lxc.proxmox_lxc.basic,
│   on ../../modules/proxmox_lxc/main.tf line 1, in resource "proxmox_lxc" "basic":
│    1: resource "proxmox_lxc" "basic" {

Environment

Here’s my environment If you need more info, please tell me.

  • Ubuntu: 24.10
  • Terraform: v1.9.8
  • tfenv: 3.0.0
  • Proxmox: 8.3.0
  • proxmox provider: 3.0.1-rc5

My Proxmox LXC Module

resource "proxmox_lxc" "basic" {
  features {
      nesting = true
  }
  
  vmid = var.vmid
  target_node  = var.target_node
  hostname     = var.hostname
  ssh_public_keys = var.public_key

  ostemplate   = "local:vztmpl/${var.template}.tar.zst"

  cores  = var.cores
  memory = var.memory

  unprivileged = true
  start       = true

  // Terraform will crash without rootfs defined
  rootfs {
    storage = var.storage
    size    = "${var.disk_size}G"
  }

    network {
        name = "eth0"
        bridge = var.bridge
        ip = "${var.ip_address}/24"
        gw = var.gateway
    }
}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Is there an estimate on a release date for this fix? I am running into the same issue on rc6.

Submitted PR to resolve issue. As Sonlis stated here, the code block was unnecessary.

I also confirm the same issue using proxmox 8.3.2 with Terrform v1.10.3 and provider /telmate/proxmox v3.0.1-rc6