23

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?

Amir Katz
  • 643
  • 2
  • 10
  • 23
Ikarus
  • 1,169
  • 4
  • 14
  • 28

1 Answers1

23

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!

Community
  • 1
  • 1
Gabriele Santomaggio
  • 21,656
  • 4
  • 52
  • 52
  • 4
    None of those links helped me. Updating loopback_users or creating a separate admin user still results in the same error. RabbitMQ refuses all non-local connections. – Cerin Oct 19 '15 at 20:28
  • @Cerin this is not a good reason to vote down, maybe you have some other problem. Did you check the log? – Gabriele Santomaggio Oct 19 '15 at 20:29
  • 2
    @Cerin FYI I ran into the same thing (i.e. created new non-guest user but still couldn't log in with non-guest user). As per Gabriele's suggestion, I checked the rabbitmq sasl log (Simple Authentication and Security Layer) and saw that each log in was being shown as "guest". I tried doing firefox "private mode" with the new user and was successful. I went back to the regular firefox and did a "clear recent history" and made sure to "clear active logins". After this I was able to log into the management web-ui remotely. – Trevor Boyd Smith Nov 12 '15 at 20:05
  • for all who didn't found the solution use following steps rabbitmqctl add_user test test rabbitmqctl set_user_tags test administrator rabbitmqctl set_permissions -p / test ".*" ".*" ".*" – Tousif Aug 10 '20 at 14:18