-
Notifications
You must be signed in to change notification settings - Fork 41
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
Cannot connect to redis-stack container running on Docker #235
Comments
Can you confirm which version of redisvl you are on? Also can you confirm which command you use to start redis? |
@tylerhutcherson Yes, the redisvl version is 0.3.4 and the command to start the Docker is the one found on the website (https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/): |
Still unable to reproduce this issue... here is my code run from the root of from redisvl.index import SearchIndex
idx = SearchIndex.from_yaml("schemas/schema.yaml")
idx.connect("redis://localhost:6379") This is assuming you have redis stack running on localhost:6379.
|
On SearchIndex.connect(...), I am getting the following message:
The ports are properly redirected to localhost. Redis Insight works and is hosted at localhost:8001 where it was directed.
If I run
It shows
However, if I print the modules (
client.module_list()
) from theredisvl.redis.connection.get_modules
method, I get an empty list.I think it is not connecting at all. The exact same exception and message (redisvl.exceptions.RedisModuleVersionError: Required Redis db module search >= 20600 OR searchlight >= 20600 not installed. See Redis Stack docs at https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/.) occurs if the container is not running.
I have tried connecting in various ways, via
SearchIndex.set_client(redisClient)
and alsoSearchIndex.connect(redis_url="redis://localhost:6379")
.The text was updated successfully, but these errors were encountered: