[rabbitmq-discuss] [rabbitmql] pika throw exception following the Toturials

Russa Nayak/TVM/TCS russa.nayak at tcs.com
Mon Feb 11 05:57:36 GMT 2013


Reply

Hello,

It seems you are facing a AMQP Connection Error while connectinfg to RabbitMQ. The parameters passes like end uri(hostname +port address), username and password may be incorrect. It also can be the case that the RabbitMQ server itself is not running or installed incorrect.

Thanks and Regards,
Russa Nayak
Systems Engineer
Tata Consultancy Services
Mailto: russa.nayak at tcs.com
Website: http://www.tcs.com

----- Original Message -----
On Wednesday, February 6, 2013, Qinglong.Meng wrote: 



Hi, 
When I following the Totuials 'Hello World!', and I use pika==0.9.8, I got pika excetion: 
pika.exceptions.AMQPConnectionError: (0, '') 
File "/root/workspace/rabbitmq/01sample/011publisher.py", line 19, in <module> 
conn = pika.BlockingConnection(pika.ConnectionParameters(host='localhost')) 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/base_connection.py", line 61, in __init__ 
super(BaseConnection, self).__init__(parameters, on_open_callback) 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/connection.py", line 513, in __init__ 
self._connect() 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/connection.py", line 804, in _connect 
self._adapter_connect() 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 146, in _adapter_connect 
self.process_data_events() 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 88, in process_data_events 
if self._handle_read(): 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 184, in _handle_read 
super(BlockingConnection, self)._handle_read() 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/base_connection.py", line 300, in _handle_read 
return self._handle_error(error) 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/base_connection.py", line 264, in _handle_error 
self._handle_disconnect() 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 181, in _handle_disconnect 
self._on_connection_closed(None, True) 
File "/usr/local/lib/python2.7/dist-packages/pika-0.9.8-py2.7.egg/pika/adapters/blocking_connection.py", line 235, in _on_connection_closed 
raise exceptions.AMQPConnectionError(*self.closing) 


Can anybody help me.. 


Tks very much 
Best Regards, 

-- 




Lawrency Meng 
mail: mengql112233 at gmail.com _______________________________________________ 
Mailing list: https://launchpad.net/~openstack 
Post to : openstack at lists.launchpad.net 
Unsubscribe : https://launchpad.net/~openstack 
More help : https://help.launchpad.net/ListHelp 


-- 


Gavin M. Roy 
Chief Technology Officer 



100 Union Square Drive 
New Hope, PA 18938 
p. +1.215.862.1162 x263 
f. +1.215.862.0465 





The public market leader in social discovery. (NYSE MKT: MEET) 

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




More information about the rabbitmq-discuss mailing list