vatesfr / terraform-provider-xenorchestra

Xen Orchestra provider for Terraform
MIT License
151 stars 32 forks source link

websocket: bad handshake #250

Closed zee67 closed 9 months ago

zee67 commented 1 year ago

Error output: with provider["registry.terraform.io/terra-farm/xenorchestra"], │ on provider.tf line 10, in provider "xenorchestra": │ 10: provider "xenorchestra" {

my terraform config is below:

terraform {
  required_providers {
    xenorchestra = {
      source = "terra-farm/xenorchestra"
    }
  }
}

# Configure the XenServer Provider
provider "xenorchestra" {
  # Must be ws or wss
  url      = "ws://$private IP 192.168.1.1/24" # Or set XOA_URL environment variable
  username = "$admin"              # Or set XOA_USER environment variable
  password = "$password"              # Or set XOA_PASSWORD environment variable

  # This is false by default and
  # will disable ssl verification if true.
  # This is useful if your deployment uses
  # a self signed certificate but should be
  # used sparingly!
  #insecure = <false|true>              # Or set XOA_INSECURE environment variable to any value
}

any suggestion will be helpful, I am building a homelab. Thank you!

ddelnano commented 1 year ago

Hi @zee67, can you run terraform with debug logging enabled and provide the full output? You can do this by re-running the command that triggered this error with the following environment variable set -- TF_LOG=DEBUG. This may print your credentials so please check the output and redact anything sensitive.

ddelnano commented 9 months ago

I'm closing this since the issue has been stale. I'm more than happy to help debug this if you can provide the diagnostic information I've requested above.