bchavez / RethinkDb.Driver

:headphones: A NoSQL C#/.NET RethinkDB database driver with 100% ReQL API coverage.

Home Page:http://rethinkdb.com/api/java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not connect to RethinkDB localhost database.

sanzor opened this issue Β· comments

I am trying to simply establish a connection with the rethink db.
I set up a server on port 9300.The localhost rethinkdb interface works.However when i try to connect to the database using this simple command it wont get past the connect.It will wait forever and never connect nor display an error message.Am i missing anything?

RethinkDB r = new RethinkDB();
Connection con=await r.Connection().Hostname("localhost").Port(9300).ConnectAsync();
DbCreate rt=r.DbCreate("testdb");

Hey @sanzor,

Thank you for your question. I hope I don't sound rude, but the best place to get basic help is from RethinkDB's slack channel here: https://github.com/bchavez/RethinkDb.Driver#getting-help

GitHub issues in this repository, as outlined in our issue template, are mostly reserved for bugs, feature requests, and issues related directly to the source code in the repository. Not so much for help related requests.

But to answer your question, RethinkDB opens 3 ports, 1) for the UI admin, 2) for cluster communication, and 3) for driver clients. You want to make sure that you're connecting the C# driver to the proper driver client port (No. 3). Also, you'll want to double check your firewall rules.

If you have any other questions, please feel free to start a discussion on the slack channel. You can tag me @bchavez in Slack and I'll try to help you when I have some free time.

Thanks, I appreciate it.
Brian

πŸ–οΈ 🎺 Beach Boys - Good Vibrations (Nick Warren bootleg)

Hey Adrian,

Ah, okay. No problem. Yea, it does seems like they've been having issues lately: rethinkdb/rethinkdb#6626

So, were you able to resolve your connection issue? If the problem persists, have you tried using the --bind all command line argument?

Correct. You should not be connecting the C# driver to the HTTP UI port (--http-port).

The correct port number the C# driver should be connecting to is the one specified by --driver-port argument. By default, IIRC is 28015. The C# driver will automatically use 28015 by default without having to call .Port() method.

Let me know if that helps!

Brian

πŸ’₯ πŸ’« "Crashing, hit a wall. Right now I need a miracle..."

Hi Adrian,

I tried to see what was going on with slack signups few days ago and didn't get much of a response. I think, right now, your best bet is voice your concern and make your request known here: rethinkdb/rethinkdb#6626

I tired looking for some kind of invite link, but couldn't find one.