Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect to erlang 20 failed #1

Closed
ziyouchutuwenwu opened this issue Oct 14, 2017 · 3 comments
Closed

connect to erlang 20 failed #1

ziyouchutuwenwu opened this issue Oct 14, 2017 · 3 comments
Labels

Comments

@ziyouchutuwenwu
Copy link

erl -name rico@127.0.0.1 --setcookie 123
Erlang/OTP 20 [erts-9.1.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V9.1.2  (abort with ^G)
(rico@127.0.0.1)2> net_adm:ping('examplenode@127.0.0.1').
pang
(rico@127.0.0.1)3>
=ERROR REPORT==== 14-Oct-2017::21:45:42 ===
** 'rico@127.0.0.1': Connection attempt to node 'examplenode@127.0.0.1' aborted since it cannot handle ["UTF8_ATOMS"].**

(rico@127.0.0.1)3> erlang:system_info(otp_release).
"20"
@halturin
Copy link
Collaborator

Hi

could you please run the node with enabled debug information like this

./gonode -cookie 123 -epmd_port 12321 -trace.node -trace.dist

and show me the log.

@ziyouchutuwenwu
Copy link
Author

test code

https://github.com/halturin/ergonode/blob/master/examples/gonode.go

run go app from shell

./my_app -cookie 123 -epmd_port 12321 -trace.node -trace.dist

log from golang console

017/10/14 22:35:55 Start with name 'examplenode@127.0.0.1' and cookie '123'
2017/10/14 22:35:55 Read from EPMD 4: [121 0 0 2]
2017/10/14 22:35:55 From EPMD: [121 0 0 2]
2017/10/14 22:35:55 NET_KERNEL: Init: []interface {}(nil)
2017/10/14 22:35:55 GLOBAL_NAME_SERVER: Init: []interface {}(nil)
2017/10/14 22:35:55 REX: Init: []interface {}(nil)
2017/10/14 22:35:55 Provide: rpc:call (ergonode.rpcFunction)(0x111b420)
Allowed commands...
gen_server:cast({examplegs,'examplenode@127.0.0.1'}, stop).
gen_server:call({examplegs,'examplenode@127.0.0.1'}, pid).
gen_server:cast({examplegs,'examplenode@127.0.0.1'}, {ping, self()}), flush().
make remote call by golang node...
gen_server:call({examplegs,'examplenode@127.0.0.1'}, {testcall, {Pid, Message}}).
gen_server:call({examplegs,'examplenode@127.0.0.1'}, {testcall, {{pname, remotenode}, Message}}).

run connect from erlang shell

net_adm:ping('examplenode@127.0.0.1').

fail info from erlang shell

pang

=ERROR REPORT==== 14-Oct-2017::22:36:10 ===
** 'rico@127.0.0.1': Connection attempt to node 'examplenode@127.0.0.1' aborted since it cannot handle ["UTF8_ATOMS"].**

go app log after erlang node try to connect

2017/10/14 22:36:10 Accepted new connection from 127.0.0.1:55567
2017/10/14 22:36:10 d# Read from enode 21: [110 0 5 0 7 127 253 114 105 99 111 64 49 50 55 46 48 46 48 46 49]
2017/10/14 22:36:10 d# Write to enode: [0 3 115 111 107]
2017/10/14 22:36:10 d# Write to enode: [0 32 110 0 5 0 0 113 69 65 198 28 181 101 120 97 109 112 108 101 110 111 100 101 64 49 50 55 46 48 46 48 46 49]
2017/10/14 22:36:10 Node terms: []etf.Term(nil)
2017/10/14 22:36:10 Enode error (reading): EOF

@halturin halturin added the bug label Oct 14, 2017
@halturin
Copy link
Collaborator

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants