Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ client can't connect to remote RabbitMQ server [closed]

Tags:

I have a nodejs client that uses bramqp for connecting to RabbitMQ server. My client can connect to a Rabbit MQ server in localhost and works well. But it's unable to connect to a remote RabbitMQ server on other machine. I opened port 5672 in the remote server, so I think that the problem is in the configuration of rabbitMQ server. How can I solve this problem?

like image 757
Ikarus Avatar asked May 06 '14 06:05

Ikarus


People also ask

Why is RabbitMQ connection closed?

A common cause for connections being abruptly closed as soon as they're started is a TCP load balancer's heartbeat. If this is the case you should see these messages at very regular intervals, and the generally accepted practice seems to be to ignore them.

How do I connect to my RabbitMQ remote server?

Create new RabbitMQ user and set permissions To create a new RabbitMQ user to access the RabbitMQ server remotely: Open a browser and navigate to http://localhost:15672/. The RabbitMQ Management login screen displays. Log into RabbitMQ using guest as both the username and password.

Can't connect to RabbitMQ?

Make sure the node is running using rabbitmq-diagnostics status. Verify config file is correctly placed and has correct syntax/structure. Inspect listeners using rabbitmq-diagnostics listeners or the listeners section in rabbitmq-diagnostics status. Inspect effective configuration using rabbitmq-diagnostics environment.


1 Answers

The problem seems the new rabbitmq access control policy

Please read this post: Can't access RabbitMQ web management interface after fresh install

I think it can help you!

like image 178
Gabriele Santomaggio Avatar answered Oct 14 '22 04:10

Gabriele Santomaggio