[rabbitmq-discuss] erlang client blowing chunks

Jon Brisbin jon.brisbin at npcinternational.com
Wed Sep 1 15:06:34 BST 2010


I'm still getting the error.

I hope I'm doing this right. I did a fresh checkout of that tag:

hg clone -u rabbitmq_v2_0_0 http://hg.rabbitmq.com/rabbitmq-server
destination directory: rabbitmq-server
requesting all changes
adding changesets
adding manifests
adding file changes
added 4652 changesets with 8132 changes to 265 files (+27 heads)
updating to branch default
141 files updated, 0 files merged, 0 files removed, 0 files unresolved
...
hg clone -u rabbitmq_v2_0_0 http://hg.rabbitmq.com/rabbitmq-erlang-client
destination directory: rabbitmq-erlang-client
requesting all changes
adding changesets
adding manifests
adding file changes
added 823 changesets with 1788 changes to 136 files (+10 heads)
updating to branch default
26 files updated, 0 files merged, 0 files removed, 0 files unresolved
...

Build was okay. Had to copy the actual source files rather than the .ez files because rebar doesn't handle .ez files (c'est très ennuyant!).

Re-generated the OTP application from scratch (which includes the new .beams). Still getting an error:

worker: {error,
            {bad_return_value,
                {error,
                    {auth_failure_likely,
                        {error,
                            {undef,
                                [{rabbit_writer,start_link,
                                     [#Port<0.704>,0,4096,
                                      rabbit_framing_amqp_0_9_1]},
                                 {amqp_channel_util,
                                     start_channel_infrastructure,3},
                                 {amqp_network_connection,do_handshake,1},
                                 {amqp_network_connection,init,1},
                                 {gen_server,init_it,6},
                                 {proc_lib,init_p_do_apply,3}]}}}}}}


When using:

		BrokerHost = proplists:get_value(host, AmqpConfig, <<"localhost">>),
		BrokerPort = proplists:get_value(port, AmqpConfig, 5672),
		BrokerUser = proplists:get_value(username, AmqpConfig, <<"guest">>),
		BrokerPass = proplists:get_value(password, AmqpConfig, <<"guest">>),
		BrokerVhost = proplists:get_value(vhost, AmqpConfig, <<"/">>),
		Connection = amqp_connection:start_network(#amqp_params{ host=BrokerHost, 
																														 port=BrokerPort, 
																														 username=BrokerUser, 
																														 password=BrokerPass, 
																														 virtual_host=BrokerVhost }),
		Channel = amqp_connection:open_channel(Connection),

I'm sure I'm not doing something right. I just don't know what it is. :/

Jon Brisbin
Portal Webmaster
NPC International, Inc.



On Aug 31, 2010, at 10:27 PM, Matthias Radestock wrote:

> Jon,
> 
> Jon Brisbin wrote:
>> Can I just put the .ez that make builds into deps/ and have it picked up by rebar?
> 
> It would be two .ez files - rabbit_common.ez, which contains the portions of the code shared with the server, and amqp_client.ez, which is the actual Erlang client.
> 
>> I was under the impression I had to have the source but that  seems
>> like overkill to me.
> 
> If rebar can't handle "binary" dependencies then rebar needs improving :)
> 
> 
> Regards,
> 
> Matthias.
> _______________________________________________
> 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