Run RabbitMQ in a separate server

77 Views Asked by At

I have a separate server where I've installed RabbitMQ. I have set NODE_IP_ADDRESS to be 0.0.0.0 in /etc/rabbitmq/rabbitmq-env.conf so it can be accessible from outside. And also enabled the port 5672 in the firewall ufw allow 5672. But still, when I try to produce a message I get

Could not connect to the AMQP server. Please verify the provided DSN.

Here is the DNS string i'm using to connect ( Symfony app )

MESSENGER_TRANSPORT_DSN=amqp://rabbitmq_user:rabbitmq_pswd@ip_of_the_server:5672/%2f

btw, the web interface works just fine

Does anyone know what could be the problem? Thanks in advance

1

There are 1 best solutions below

0
arakibi On

I found the solution after displaying the real exception message, I figured out that the user was not allowed to login to the vhost /