Config cached in Redis not refreshed on container restart / env var change #11957
-
What happened?When running LibreChat with The root cause is that Version Informationghcr.io/danny-avila/librechat-dev:latest Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log outputNo 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.ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is already the default value: LibreChat/packages/api/src/cache/cacheConfig.ts Lines 32 to 38 in 59bd27b |
Beta Was this translation helpful? Give feedback.
-
|
Hey @danny-avila , sorry for the trouble and thanks for your help on this. Turns out one of my team members had set Adding |
Beta Was this translation helpful? Give feedback.
This is already the default value:
LibreChat/packages/api/src/cache/cacheConfig.ts
Lines 32 to 38 in 59bd27b