unable to connect rabbitmq server from client VM...

261 views
Skip to first unread message

azher shaikh

unread,
May 9, 2019, 12:02:17 AM5/9/19
to rabbitm...@googlegroups.com
Hi,

I am unable to connect rabbitmq server hosted in google cloud platform (gcp) ubuntu VM from java client unless we run gcloud command.
Below is the scenario.

We have 2 VM in GCP where one VM is java test client to send message to queue and other VM is where rabbitmq server is installed.

When we try to run java client then it says connection refused error. Then upon investigation , we tried running below command on client VM as it opens up
the ssh tunnel between 2 VM.
gcloud compute ssh rabbitmq-1-stats-vm-0 --ssh-flag="-L" --ssh-flag="15672:localhost:15672" --project=ach-shd-test --zone=us-east1-b

The question is client don't want to run the gcloud command and open ssh to rabbitmq server VM instead it needs to run without that dependency.

Here is my Rabbitmq-env.config file on server contains

NODE_IPAddress=0.0.0.0.

rabbitmq.config file content is :

[{
        rabbit, [
                {loopback_users, []},
                {tcp_listeners,[{"localhost",5672}]}
        ]
}].


When I run following command on my client VM it says connection refused unless gcloud command is ran and ssh tunnel is being opened.
telnet hostip 5672

We need this command up and running on client VM without any glcoud command and ssh tunnel dependency

Any pointers/help is much appreciated as we are blocked completely on this?


--Azher

Michael Klishin

unread,
May 13, 2019, 4:29:13 PM5/13/19
to rabbitmq-users
[1] is the only pointer I can provide.


--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/CABUp7e6VX0heW2o0dDxaux%3D%2BZeyuSU1t2bM-9ZJmbTUS0POukg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages