terraform-provider-rabbitmq icon indicating copy to clipboard operation
terraform-provider-rabbitmq copied to clipboard

Rabbitmq-3.9.6 no users/vhost being created

Open Sweatha-g opened this issue 3 years ago • 4 comments

@cyrilgdn I am using rabbit version 3.9.6 and using latest provider v1.6.0 to create resources and it throws error while creating my vhost and user " Error 405 from RabbitMQ:EOF"

Sweatha-g avatar Jan 31 '22 19:01 Sweatha-g

Hi @Sweatha-g

Could you provide a configuration example of your vhost/user? Is it on a used cluster or one you are creating?

cyrilgdn avatar Feb 01 '22 08:02 cyrilgdn

I have the same error.

Terraform version: Terraform v1.2.3 on windows_amd64

provider 1.6.0

Brand new linux container (rabbitmq:3.10-management-alpine), login with guest user created by default. Rabbitmq runs behind a traefik reverse proxy acting just as an ssl endpoint

vhost declaration:

resource "rabbitmq_vhost" "bla" {
  name = "bla"
}

Error: Error 405 (Error 405 from RabbitMQ: EOF):

******************* EDIT **********************************

-> found the issue, i let a trailing slash (https://myhost/) in the rabbitmq endpoint in the configuration of the provider.... maybe a good idea to sanitize inputs for dummy people like me

deejayprod avatar Aug 16 '22 15:08 deejayprod

Same issue here using provider v1.8.0 and RabbitMQ 3.12.6.

No trailing slash on the endpoint. :)

I can use curl to create the vhost but when using this provider I get:

Error: Error 405 (Error 405 from RabbitMQ: EOF): 

with rabbitmq_vhost.primary,
  on rabbitmq.tf line 1, in resource "rabbitmq_vhost" "primary":
  1: resource "rabbitmq_vhost" "primary" {

Found it per this the endpoint URL shouldn't have /api on the end, nor should it have a trailing /.