saleyn / eixx

Erlang C++ Interface
Apache License 2.0
137 stars 26 forks source link

test_node doesn't connect to Erlang node #1

Closed rwbr closed 12 years ago

rwbr commented 13 years ago

Hallo! I try with your implementation of eixx library. When I start the Erlang node as well as the example program, all I get is:

$ erl -sname test -setcookie abc Erlang R14B01 (erts-5.8.2) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.2 (abort with ^G) (test@macbook)1> =ERROR REPORT==== 13-Jan-2011::21:42:49 === * Connection attempt from disallowed node eixx@macbook *

and on the test_node side: [macbook: src (dev)]$ ./test_node -n eixx@macbook -r test@macbook -c abc -v trace Calling connection::connection(type=1) -> sending epmd port req for 'test': <<0,5,122,116,101,115,116>> <- response from epmd: 0 (ok) <- epmd returned: port=51851,ntype=77,proto=0,dist_high=5,dist_low=5 <- Connected to node: test@macbook -> sending name 21 bytes:<<0,19,110,0,5,0,0,9,156,101,105,120,120,64,109,97,99,98,111,111,107>> <- got auth challenge (version=5, flags=32764, remote_challenge=1199743460) -> sending challenge reply 23 bytes:<<0,21,114,188,139,248,119,217,82,143,132,169,139,199,177,186,112,38,51,27,135,227,176>> Error reading auth challenge ack from node 'test@macbook': Possibly bad cookie?

This leaves me helpless. Both sides make use of the same cookie. Do you have an idea, why the authentication fails? Regards, Ralf

saleyn commented 12 years ago

Sorry for a belated response. This error message reported on the Erlang side indicates that the cookie used on two sides is not the same, hence the authentication problem.

rwbr commented 12 years ago

Ok!. I'll try it again. Thank you.