[rabbitmq-discuss] Pika IncompatibleProtocolError

Gavin M. Roy gmr at meetme.com
Fri Apr 5 14:41:22 BST 2013


Is a pre-release tag of the next version. Please file a bug report on github. I'll look at it later today. Is likely a new bug Introduced with the re-factored connection handling.


Gavin

On Fri, Apr 5, 2013 at 6:51 AM, Simon MacMullen <simon at rabbitmq.com>
wrote:

> Hmm. I'm no Pika expert but that seems wrong. Is there anything 
> interesting-looking in the server logs at that point?
> Cheers, Simon
> On 05/04/13 03:51, William Daly wrote:
>> Hi,
>>
>> I'm trying to use rabbitmq and pika on localhost for testing purposes,
>> and I am receiving an IncompatibleProtocolError.
>>
>> Here are the steps I'm following:
>>
>> 1) I start up rabbitmq-server, and when I run rabbitmqctl status I get:
>> Status of node rabbit at localhost ...
>> [{pid,390},
>>   {running_applications,
>>       [{rabbitmq_management_visualiser,"RabbitMQ Visualiser","3.0.4"},
>>        {rabbitmq_management,"RabbitMQ Management Console","3.0.4"},
>>        {rabbitmq_management_agent,"RabbitMQ Management Agent","3.0.4"},
>>        {rabbit,"RabbitMQ","3.0.4"},
>>        {os_mon,"CPO  CXC 138 46","2.2.10"},
>>        {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.0.4"},
>>        {webmachine,"webmachine","1.9.1-rmq3.0.4-git52e62bc"},
>>        {mochiweb,"MochiMedia Web Server","2.3.1-rmq3.0.4-gitd541e9a"},
>>        {xmerl,"XML parser","1.3.2"},
>>        {inets,"INETS  CXC 138 49","5.9.2"},
>>        {mnesia,"MNESIA  CXC 138 12","4.7.1"},
>>        {amqp_client,"RabbitMQ AMQP Client","3.0.4"},
>>        {sasl,"SASL  CXC 138 11","2.2.1"},
>>        {stdlib,"ERTS  CXC 138 10","1.18.3"},
>>        {kernel,"ERTS  CXC 138 10","2.15.3"}]},
>>   {os,{unix,darwin}},
>>   {erlang_version,
>>       "Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:8:8]
>> [async-threads:30] [hipe] [kernel-poll:true] [dtrace]\n"},
>>   {memory,
>>       [{total,35653280},
>>        {connection_procs,5696},
>>        {queue_procs,27576},
>>        {plugins,152984},
>>        {other_proc,9868108},
>>        {mnesia,62360},
>>        {mgmt_db,47384},
>>        {msg_index,22960},
>>        {other_ets,1239568},
>>        {binary,522528},
>>        {code,18264216},
>>        {atom,695185},
>>        {other_system,4744715}]},
>>   {vm_memory_high_watermark,0.4},
>>   {vm_memory_limit,6523774566},
>>   {disk_free_limit,1000000000},
>>   {disk_free,199230787584},
>>   {file_descriptors,
>>
>>   [{total_limit,156},{total_used,4},{sockets_limit,138},{sockets_used,1}]},
>>   {processes,[{limit,1048576},{used,196}]},
>>   {run_queue,0},
>>   {uptime,2667}]
>> ...done.
>>
>> 2) I run the following code (RABBITMQ_USER='guest',
>> RABBITMQ_PASS='guest', RABBIT_HOST='localhost')
>>
>> credentials = pika.PlainCredentials(settings.RABBITMQ_USER,
>>                                              settings.RABBITMQ_PASS)
>> parameters = pika.ConnectionParameters(heartbeat_interval=5,
>>                                                 credentials=credentials,
>>                                                 host=settings.RABBIT_HOST)
>> self.channel = None
>> self.connection = pika.SelectConnection(parameters, self.on_connected)
>>
>> # ....
>>
>> self.connection.ioloop.start()
>>
>> 3) I get the following traceback:
>>
>> Traceback (most recent call last):
>>    File
>> "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py",
>> line 258, in _bootstrap
>>      self.run()
>>    File "/Users/will/queue/consumer.py", line 237, in run
>>      self.connection.ioloop.start()
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/select_connection.py",
>> line 108, in start
>>      self.poller.start()
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/select_connection.py",
>> line 336, in start
>>      self.poll()
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/select_connection.py",
>> line 351, in poll
>>      return self._handler(self.fileno, ERROR, error)
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
>> line 315, in _handle_events
>>      self._handle_error(error)
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
>> line 291, in _handle_error
>>      self._handle_disconnect()
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
>> line 240, in _handle_disconnect
>>      self._adapter_disconnect()
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
>> line 131, in _adapter_disconnect
>>      self._check_state_on_disconnect()
>>    File
>> "/Users/will/python/lib/python2.7/site-packages/pika-0.9.13p0-py2.7.egg/pika/adapters/base_connection.py",
>> line 143, in _check_state_on_disconnect
>>      raise exceptions.IncompatibleProtocolError
>> IncompatibleProtocolError
>>
>> Any idea what could be causing this?  I'm running Mac OS X Mountain
>> Lion.  Any help would be greatly appreciated.
>>
>> Thanks!
>> -- Will
>>
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
> -- 
> Simon MacMullen
> RabbitMQ, VMware
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130405/0bbc70e3/attachment.htm>


More information about the rabbitmq-discuss mailing list