rethinkdb / rethinkdb-python

Python driver for RethinkDB
https://rethinkdb.com/api/python/
Apache License 2.0
64 stars 35 forks source link

Test fail. #266

Open odidev opened 2 years ago

odidev commented 2 years ago

I have been working to build and test this package for amd64 and arm64 architectures. While testing this package with “pytest” getting connection error, it is trying to create a connection string to connect rethink db server.

rethinkdb.errors.ReqlDriverError: Could not connect to 127.0.0.1:28015. Error: [Errno 111] Connection refused

Also installed and start rethinkdb using below commands:

$ source /etc/lsb-release && echo "deb https://download.rethinkdb.com/repository/ubuntu-$DISTRIB_CODENAME $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list 
$ wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo apt-key add - 
$ sudo apt-get update 
$ sudo apt-get install rethinkdb  
$ rethinkdb 

Then try to change the default port using, “rethinkdb --bind all --http-port 8085” but still it is showing the same above error.

It would be helpful if you could share some pointers on it

lsabi commented 2 years ago

Have you tested if the database can be reached? It seems more a problem with the database instance not being reachable.