LibreChat assumes that Redis is operating in Cluster mode; just hangs when trying to connect to a Standalone Redis server. #2844
cmurtaugh
started this conversation in
Feature Requests & Suggestions
Replies: 1 comment
-
Redis integration is considered experimental, and no official configuration is recommended/tested. I think both usages are quite separate in scope. I’ve thought about setting different URI env var for user sessions. But if using the same can work with the exact mode set, than I can look into this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
We've set the
USE_REDIS
andREDIS_URI
variables to point to our Redis installation (an AWS ElastiCache cluster) which is operating in Standalone mode. If we don't enable social logins, LibreChat operates normally and thekeyv
module successfully caches data in our Redis server. However, if we enable social logins, LibreChat creates another Redis client for use byconnect-redis
for storing the user sessions. The code that creates this client object assumes that the server is operating in Cluster mode, and fails to connect (times out) if the server is not in Cluster mode.By contrast,
keyv
uses more sophisticated logic to create the correct Redis client for the server mode being used, so it works with both Standalone and Cluster modes.One possible solution would be to add a
REDIS_MODE
env var or something similar so that we could specify whether our Redis server is Standalone or Cluster.Steps to Reproduce
USE_REDIS
andREDIS_URI
env vars.What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions