[rabbitmq-discuss] timeout error in Hello world tutorial send.py

Steve Powell steve at rabbitmq.com
Mon Mar 12 10:43:20 GMT 2012


Hi Jonas,

Instead of issuing 'rabbitmq-server status', please can you try issuing
'rabbitmqctl status', or 'rabbitmqctl report' to get information about the
running rabbit node.

You say 'I've tried running the python code on both the local host (ubuntu
10.04) and on osx.' but it would be quite useful to know a little more about
your setup. Are you trying to access the same server in both cases?

Steve Powell  (a loppy bunny)
----------some more definitions from the SPD----------
vermin (v.) Treating the dachshund for roundworm.
chinchilla (n.) Cooling device for the lower jaw.
socialcast (n.) Someone to whom everyone is speaking but nobody likes.

On 7 Mar 2012, at 19:30, Jonas Colmsjo wrote:

> I've copied the send.py and receive.py in the Hellow World tutorial and keep getting time out errors.I've tried running the python code on both the local host (ubuntu 10.04) and on osx. The Rabbit server seams to be up and running and I can login to the management console.
> 
> Any help is greatly appreciated!
> 
> root at rabbit-1:~/tmp# rabbitmq-server status
> Activating RabbitMQ plugins ...
> 
> ********************************************************************************
> ********************************************************************************
> 
> 6 plugins activated:
> * amqp_client-2.7.1
> * mochiweb-1.3-rmq2.7.1-git
> * rabbitmq_management-2.7.1
> * rabbitmq_management_agent-2.7.1
> * rabbitmq_mochiweb-2.7.1
> * webmachine-1.7.0-rmq2.7.1-hg
> 
> node with name "rabbit" already running on "rabbit-1"
> diagnostics:
> - nodes and their ports on rabbit-1: [{rabbit,39652},
>                                       {rabbitmqprelaunch17299,33245}]
> - current node: 'rabbitmqprelaunch17299 at rabbit-1'
> - current node home dir: /var/lib/rabbitmq
> - current node cookie hash: QtJhQHUnJDOWPtTEH/uY/g==
> 
> --- ERROR ---
> 
> root at rabbit-1:~/tmp# sudo python send.py
> Traceback (most recent call last):
>   File "send.py", line 5, in <module>
>     host='localhost'))
>   File "/usr/local/lib/python2.6/dist-packages/pika/adapters/blocking_connection.py", line 32, in __init__
>     BaseConnection.__init__(self, parameters, None, reconnection_strategy)
>   File "/usr/local/lib/python2.6/dist-packages/pika/adapters/base_connection.py", line 50, in __init__
>     reconnection_strategy)
>   File "/usr/local/lib/python2.6/dist-packages/pika/connection.py", line 170, in __init__
>     self._connect()
>   File "/usr/local/lib/python2.6/dist-packages/pika/connection.py", line 228, in _connect
>     self.parameters.port or  spec.PORT)
>   File "/usr/local/lib/python2.6/dist-packages/pika/adapters/blocking_connection.py", line 44, in _adapter_connect
>     self._handle_read()
>   File "/usr/local/lib/python2.6/dist-packages/pika/adapters/base_connection.py", line 151, in _handle_read
>     data = self.socket.recv(self._suggested_buffer_size)
> socket.timeout: timed out
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



More information about the rabbitmq-discuss mailing list