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

Connecting using MySQL CLI on OS X fails with error #68

Open
sabyasachi opened this issue Oct 10, 2018 · 5 comments
Open

Connecting using MySQL CLI on OS X fails with error #68

sabyasachi opened this issue Oct 10, 2018 · 5 comments

Comments

@sabyasachi
Copy link

I've started ActorDB and initialized it using init.example.sql.

When I try to connect it via MySQL CLI, I get below error.

mysql -h 127.0.0.1 -P 33307 -u myser -p
Enter password:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

Is it possible to connect using MySQL CLI?

mysql --version
mysql  Ver 14.14 Distrib 5.7.13, for osx10.11 (x86_64) using  EditLine wrapper
@SergejJurecko
Copy link
Contributor

Is actordb listening on port 33307? Check with: telnet 127.0.0.1 33307

If it is not check app.config

If it is check actordb logs

@sabyasachi
Copy link
Author

Thanks for the quick response!

Yes, it is running on 33307. Below are the logs just when I try to connect using the MySQL CLI.

==> console.log <==
2018-10-10 17:30:36.252 [error] emulator Undefined Undefined Error in process <0.610.0> on node 'node1@127.0.0.1' with exit value:
{undef,[{crypto,rand_bytes,[20],[]},{myactor_util,genhash,0,[{file,"src/myactor_util.erl"},{line,169}]},{myactor_proto,init,4,[{file,"src/myactor_proto.erl"},{line,70}]}]}
2018-10-10 17:30:36.252 [error] emulator Undefined Undefined Error in process <0.610.0> on node 'node1@127.0.0.1' with exit value:
{undef,[{crypto,rand_bytes,[20],[]},{myactor_util,genhash,0,[{file,"src/myactor_util.erl"},{line,169}]},{myactor_proto,init,4,[{file,"src/myactor_proto.erl"},{line,70}]}]}

==> crash.log <==
2018-10-10 17:30:36 =ERROR REPORT====
Error in process <0.610.0> on node 'node1@127.0.0.1' with exit value:
{undef,[{crypto,rand_bytes,[20],[]},{myactor_util,genhash,0,[{file,"src/myactor_util.erl"},{line,169}]},{myactor_proto,init,4,[{file,"src/myactor_proto.erl"},{line,70}]}]}
2018-10-10 17:30:36 =ERROR REPORT====
Ranch listener myactor had connection process started with myactor_proto:start_link/4 at <0.610.0> exit with reason: {undef,[{crypto,rand_bytes,[20],[]},{myactor_util,genhash,0,[{file,"src/myactor_util.erl"},{line,169}]},{myactor_proto,init,4,[{file,"src/myactor_proto.erl"},{line,70}]}]}

==> error.log <==
2018-10-10 17:30:36.252 [error] emulator Undefined Undefined Error in process <0.610.0> on node 'node1@127.0.0.1' with exit value:
{undef,[{crypto,rand_bytes,[20],[]},{myactor_util,genhash,0,[{file,"src/myactor_util.erl"},{line,169}]},{myactor_proto,init,4,[{file,"src/myactor_proto.erl"},{line,70}]}]}

==> console.log <==
2018-10-10 17:30:36.253 [error] <0.610.0> Undefined Undefined Ranch listener myactor terminated with reason: call to undefined function crypto:rand_bytes(20)

==> error.log <==
2018-10-10 17:30:36.253 [error] <0.610.0> Undefined Undefined Ranch listener myactor terminated with reason: call to undefined function crypto:rand_bytes(20)

@SergejJurecko
Copy link
Contributor

What OS are you running?

@sabyasachi
Copy link
Author

macOS High Sierra Version 10.13.4 (17E199)

@SergejJurecko
Copy link
Contributor

I have updated the osx package. Try downloading again.

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

No branches or pull requests

2 participants