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