[rabbitmq-discuss] Alice wonderland and RabbitMQ issue

Wilson Ke wilson.ke at wealthcraft.com
Mon Dec 21 10:23:16 GMT 2009


Hi Ari,

Do you have mochiweb_server.erl and mochiweb.app sample code?
if have ,please send to me. I think these maybe help me find issue key.

Best Regards,
Wilson

________________________________
From: Wilson Ke
Sent: 2009年12月21日 18:16
To: 'Ari Lerner'
Cc: 'RabbitMQ Discuss'
Subject: RE: [rabbitmq-discuss] Alice wonderland and RabbitMQ issue

Hi Ari,
       When I start alice, and on the erl environment run rabint:rabbit_node().
I can get node information as below.

(rabbit at centos)1> rabint:rabbit_node().
rabbit at centos

Best Regards,
Wilson

________________________________
From: Ari Lerner [mailto:arilerner at mac.com]
Sent: 2009年12月21日 18:04
To: Wilson Ke
Cc: 'RabbitMQ Discuss'
Subject: Re: [rabbitmq-discuss] Alice wonderland and RabbitMQ issue

Wilson,

Hey, sorry, I've been away from my email for a little while. Does he have the rabbit source?

It's called in an rpc: rabint:rpc_call(rabbit_networking, connection_info_all, []).

where rabint rpc_call looks like:

rpc_call(Mod, Fun, Args)  -> rpc:call(rabbit_node(), Mod, Fun, Args, ?RPC_TIMEOUT).

So it's coming from the remote node. Wilson, what does: rabint:rabbit_node() look like?

Cheers,
Ari Lerner

On Dec 21, 2009, at 1:27 AM, Wilson Ke wrote:

Hi Ari,
         Do you have any suggestions?

Best Regards,
Wilson

________________________________
From: Wilson Ke
Sent: 2009年12月21日 17:24
To: 'Matthias Radestock'
Cc: 'mabrek'; 'RabbitMQ Discuss'
Subject: RE: [rabbitmq-discuss] Alice wonderland and RabbitMQ issue


Matthias,

    I did following your suggestions.

Use rabbit at centos as node name;

Set "UD/8aYoam23kYFz4aWO2bA==" as /root/.erlang.cookie content;

./start.sh -alice rabbithost "rabbit at centos";



But when is use  the bellow curl command to test.

curl -i http://localhost:9999/conn

it still throw bellow exception



=INFO REPORT==== 22-Dec-2009::01:12:26 ===

(rest_server:237) Error in rest server: {function_clause,

                                         [{lists,map,

                                           [#Fun<conn.0.20985291>,

                                            {badrpc,

                                             {'EXIT',

                                              {undef,

                                               [{rabbit_networking,

                                                 connection_info_all,[]},

                                                {rpc,local_call,3},

                                                {conn,get,1},

                                                {rest_server,run_controller,4},

                                                {mochiweb_http,headers,5},

                                                {proc_lib,init_p_do_apply,

                                                 3}]}}}]},

                                          {conn,get,1},

                                          {rest_server,run_controller,4},

                                          {mochiweb_http,headers,5},

                                          {proc_lib,init_p_do_apply,3}]}





Do you have mochiweb_server.erl and mochiweb.app sample code,if have ,please send to me. I think these maybe help me find issue key.



Thanks,

Wilson.



-----Original Message-----
From: Matthias Radestock [mailto:matthias at lshift.net]
Sent: 2009年12月21日 16:31
To: Wilson Ke
Cc: 'mabrek'; 'RabbitMQ Discuss'
Subject: Re: [rabbitmq-discuss] Alice wonderland and RabbitMQ issue



Wilson,



Wilson Ke wrote:

> *My rabbitmq work normal,the start information as bellow*

> node          : rabbit at centos



In that case ...



> ./start.sh -alice rabbithost "alice at centos" -setcookie

> "UD/8aYoam23kYFz4aWO2bA=="



the above should say "rabbit at centos".



Also, the cookie information is wrong; you set it to what rabbit

displays here:



> cookie hash   : UD/8aYoam23kYFz4aWO2bA==



but that is the *hash* of the cookie, not the cookie itself. You can

find the cookie in rabbit's home dir under .erlang.cookie, e.g. given



> home dir      : /root



the cookie should be in /root/.erlang.cookie. The contents of that file

should be supplied to -setcookie.





Regards,



Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20091221/2b6c3b85/attachment.htm 


More information about the rabbitmq-discuss mailing list