[rabbitmq-discuss] Problem when running second consumer
tim at rabbitmq.com
Thu May 16 12:14:03 BST 2013
Urgh - this thread is getting very mixed up.
Putting the list back on CC.
On 16 May 2013, at 11:42, Balachandar R.A. wrote:
> I did telnet to the host and port as below:-
> telnet 126.96.36.199 5672
> Trying 188.8.131.52...
> Connected to 184.108.40.206.
> Escape character is '^]'.
> Connection closed by foreign host.
So the network connectivity between your virtual machines seems ok.
> I can do ping all nodes between each other.
The ability to send ICMP packets between machines doesn't confirm that all other kinds of communication will work, though it's useful to know. The fact that you can telnet to the broker means that you ought to be able to connect from a regular AMQP client.
> I did not create any configuration file for rabbit mq.
> The head node and compute node has only the client jars. (obtained from rabbitmq-java-client-bin-2.3.1)
Erm, where is the broker running exactly? On this HEAD node yes? Is *that* the machine with the IP address 220.127.116.11?
I note that in your producer code, you do not set the username or password, whereas in your consumer code you do. You should not need to set these explicitly, since "guest:guest" is the default.
Please consider running a network capture tool (such as wireshark) to confirm that AMQP frames are in fact being sent from the consumer's machine to the broker's machine correctly. If there is nothing in the rabbit.log or rabbit-sasl.log files, then the connection attempt *cannot* be getting through. If there *is* a connection being logged, then I need to know about it, even if there's nothing further in the logs about authentication failures or whatever.
Please confirm that you're not running any other AMQP brokers (e.g., OpenAMQ, etc) on any of your infrastructure, which the client might be erroneously connecting to. Please confirm that RabbitMQ is indeed running on the default port of 5672 - that seems to be the case, but I just want to make sure.
On 16 May 2013, at 11:24, Tim Watson wrote:
> On 05/16/2013 11:05 AM, Balachandar R.A. wrote:
>> telnet ip-of-server 15672
> That's the HTTP port, not the AMQP port. If you've not customised anything, then the broker will listen for AMQP connections on 5672. Can you telnet to *that* port?
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss