Coder Social home page Coder Social logo

Comments (4)

hhsecond avatar hhsecond commented on August 24, 2024

Hi @BnJam Thanks for raising the issue. I have tried reproducing your issue in locally without any luck. I'll try to set up a remote and see if network has any effect on this. Can you tell me whether you have a connection timeout issue always or is it only on specific instances like when you try with big tensors etc?

from redisai-py.

BnJam avatar BnJam commented on August 24, 2024

I always have a connection timeout. I have tried .ping() with no luck.

I should mention that this is trying to connect to a remote VM (in Azure) running the latest docker image of redisai, using the command:
sudo docker run --name test -v /path/to/redis_conf/redis.conf:/redis.conf -p 6379:6379 --gpus all -it --rm redisai/redisai:latest-gpu redis-server /redis.conf

I have bind commented out and requirepass set.
Having 127.0.0.1 or 0.0.0.0 in bind does not change anything.

The client is on a different Azure VM and attempting the following test snippet

import redisai
import numpy as np

if __name__ == '__main__':
     r = redisai.Client(host=<host>, port=<port>, password=<password>, db=0)
     print(r) # prints connection object no problem
     r.ping() # hangs and times out here
     r.tensorset('x', np.array([2]))
     r.tensorget('x')

I'm not even trying a big tensor.

from redisai-py.

BnJam avatar BnJam commented on August 24, 2024

https://stackoverflow.com/questions/62768421/redisai-client-password-auth-process/62790078#62790078

I solved my issue with this workaround. I suspect that dropping the port argument (although, I can't seen to fully understand why that solved my connection issue) may in fact let me connect with a password.
As of right now, the redisai database is isolated on the VNet in Azure where the workers reside. However, I was first attempting to connect to an exposed database that required a password - I will test and report back here.

from redisai-py.

hhsecond avatar hhsecond commented on August 24, 2024

Closing this issue as it couldn't be reproduced. Feel free to re-open if you still face issues. Also, it might be worth looking at base redis package since the connection issue doesn't have to be specific to redisai-py

from redisai-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.