On Thu, Jan 3, 2013 at 11:13 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 03/01/13 15:50, Murray Williams wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Everything compiles, and I can install and enable the plugin, but right<br>
now it looks like the supervisor keeps shutting down for some reason<br>
that I can't quite figure out yet.<br>
</blockquote>
<br></div>
If you point me at the source I might be able to help.</blockquote><div><br><br>Okay, I've made some progress since this morning—but at this point I'm completely gobsmacked as to what might be going on. I forked the github rabitmq/rmq-0mq repository and then remote-pulled and merged the commits from Luis Rascão's outstanding pull request (<a href="https://github.com/lrascao/rmq-0mq">https://github.com/lrascao/rmq-0mq</a>), and then re-did the work I'd done before replacing the erlzmq (zmq:) API calls with erlzmq2 (erlzmq:) calls.<br>
<br>You can see my work at <a href="https://github.com/murraytodd/rmq-0mq">https://github.com/murraytodd/rmq-0mq</a><br><br>I can actually build and deploy the plugin, and things appear to be starting up, but I'm getting an error in the strangest of places: not from the <i>zeromq</i> part but rather from the aqmp_client. Specifically, my r0mq_service.erl file at line 43 calls:<br>
<br> {ok, Connection} = amqp_connection:start(<b>#amqp_params_direct{}</b>)<br><br>and my RabbitMQ server crashes at amqp_connection_sup.erl line 34:<br><br> case AmqpParams of<br> <b>#amqp_params_direct{}</b> -> {direct, amqp_direct_connection};<br>
#amqp_params_network{} -> {network, amqp_network_connection}<br> end,<br><br>with a server response of<br><br>{{<b>badmatch</b>,<br> {error,<br> {'EXIT',<br> {{case_clause,<br> {amqp_params_direct,<<"guest">>,none, <<"/">>,'Thor@thor',none,[]}},<br>
[{amqp_connection_sup,start_link,1,<br> [{file,"src/amqp_connection_sup.erl"},{line,34}]},<br><br>My RabbitMQ installation (MacPorts) says it's v 2.8.7 and the plugins directory says it has amqp_client-2.8.7.ez in it. But it seems that the rabbit-public-unbrella repository, whether I use the "default / stable" branch or even the branch marked "rabbitmq_v2_8_x", I find that the amqp_client.hrl include file has an extra "password" field for the amqp_params_direct record.<br>
<br>Do you have any idea what might be going on? Do you think it's my MacPorts version of RabbitMQ?<br><br>Cheers,<br><br>Murray<br></div></div>