PossibleDB icon indicating copy to clipboard operation
PossibleDB copied to clipboard

Could not connect to localhost.

Open leontalbot opened this issue 9 years ago • 1 comments

Hi. Newbie here. I've followed the installation process. When running: $ ./possibledb.js

I get:

Listening on  12345
Loading RethinkDB config from  possibledb.config
Creating RethinkDB connection
Couldn't create RethinkDB connection  #<RqlDriverError: Could not connect to localhost:28015.
connect ECONNREFUSED>
Checking/Creating main RethinkDB =>  dsdb
Unhandled rejection RqlDriverError: First argument to `run` must be an open connection.
    at new RqlDriverError (/Users/local/node_modules/rethinkdb/errors.js:14:13)
    at DbCreate.TermBase.run (/Users/local/node_modules/rethinkdb/ast.js:129:29)
    at /Users/local/clj/PossibleDB/possibledb/possibledb.js:24724:24
    at d (/Users/local/clj/PossibleDB/possibledb/possibledb.js:24674:31)
    at b (/Users/local/clj/PossibleDB/possibledb/possibledb.js:24701:26)
    at cljs.core.async.impl.ioc_helpers.run_state_machine (/Users/local/clj/PossibleDB/possibledb/possibledb.js:20580:110)
    at cljs.core.async.impl.ioc_helpers.run_state_machine_wrapped (/Users/local/clj/PossibleDB/possibledb/possibledb.js:20584:63)
    at /Users/local/clj/PossibleDB/possibledb/possibledb.js:20593:71
    at /Users/local/clj/PossibleDB/possibledb/possibledb.js:20442:18
    at Object.cljs.core.async.impl.dispatch.process_messages [as _onImmediate] (/Users/local/clj/PossibleDB/possibledb/possibledb.js:20206:25)
    at processImmediate [as _immediateCallback] (timers.js:330:15)

What could be the problem?

leontalbot avatar Mar 18 '15 15:03 leontalbot

Ok. I just needed to launch rethinkdb in another terminal tab.

Now I get stuck further:

(db/connect! "localhost" 28015)
;;=> #<Socket Socket[addr=localhost/127.0.0.1,port=28015,localport=62511]>
(db/create-db! "mytest")
;;=> java.lang.RuntimeException: Invalid token: 

Any clue what is going on?

Thank you!

leontalbot avatar Mar 18 '15 17:03 leontalbot