-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Closed
Copy link
Labels
🐛 bugSomething isn't workingSomething isn't working
Description
What happened?
When running LibreChat with USE_REDIS=true in an AWS ECS Fargate (multi-instance) deployment, changes to environment variables like ALLOW_EMAIL_LOGIN, ALLOW_SOCIAL_LOGIN, etc. are not reflected in the application after redeployment, even though the container's env output confirms the new values are set.
The root cause is that CONFIG_STORE and APP_CONFIG cache namespaces are stored in Redis and served from the shared cache rather than being re-read from the current process environment. A new container with updated env vars still reads stale config from Redis until the cache TTL expires (or Redis is flushed).
Version Information
ghcr.io/danny-avila/librechat-dev:latest
Steps to Reproduce
- Deploy LibreChat with
USE_REDIS=trueandALLOW_EMAIL_LOGIN=false(or any auth-related env var) - Confirm the UI reflects the setting (e.g., email login is hidden)
- Update the env var to
ALLOW_EMAIL_LOGIN=trueand redeploy (new ECS task / new container) - Exec into the new container and verify:
env | grep ALLOW_EMAIL_LOGIN→ showstrue - Open the UI → email login is still not shown (stale cached config from Redis)
- Adding
CONFIG_STORE,APP_CONFIGtoFORCED_IN_MEMORY_CACHE_NAMESPACESand redeploying fixes the issue
What browsers are you seeing the problem on?
No response
Relevant log output
No relevant error logs — the application does not log a warning when serving cached config
that differs from the current environment variables.
Container env confirms the correct values:
$ env | grep -E "ALLOW_|CONFIG_|FORCED_|USE_REDIS"
ALLOW_EMAIL_LOGIN=true
ALLOW_SOCIAL_LOGIN=true
ALLOW_REGISTRATION=true
CONFIG_PATH=/app/librechat/config/librechat-custom.yaml
FORCED_IN_MEMORY_CACHE_NAMESPACES=ROLES,MESSAGES
USE_REDIS=true
Despite ALLOW_EMAIL_LOGIN=true being set, the login page only shows the SSO/OpenID button
until CONFIG_STORE,APP_CONFIG is added to FORCED_IN_MEMORY_CACHE_NAMESPACES.Screenshots
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐛 bugSomething isn't workingSomething isn't working