-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Gitea not accepting "redis-cluster" as cache adapter/session provider #30534
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
Comments
The documentation was updated by #24717 . Maybe you can use |
Yes as mentioned in the issue , I had tried using redis instead of redis-cluster and it works fine. But since the documentation is different it should be updated. |
kemzeb
added a commit
to kemzeb/gitea
that referenced
this issue
May 1, 2024
…o-gitea#30794) Backport go-gitea#30794 This is because it doesn't exist as an adapter. The `redis` adapter already handles Redis cluster configurations. Fixes go-gitea#30534.
kemzeb
added a commit
to kemzeb/gitea
that referenced
this issue
May 1, 2024
…o-gitea#30794) Backport go-gitea#30794 This is because it doesn't exist as an adapter. The `redis` adapter already handles Redis cluster configurations. Fixes go-gitea#30534.
kemzeb
added a commit
to kemzeb/gitea
that referenced
this issue
May 1, 2024
…o-gitea#30794) Backport go-gitea#30794 This is because it doesn't exist as an adapter. The `redis` adapter already handles Redis cluster configurations. Fixes go-gitea#30534.
kemzeb
added a commit
to kemzeb/gitea
that referenced
this issue
May 1, 2024
…o-gitea#30794) This is because it doesn't exist as an adapter. The `redis` adapter already handles Redis cluster configurations. Fixes go-gitea#30534.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Gitea is not accepting Cache ADAPTER or Session PROVIDER as "redis-cluster".
In the documentation it is mentioned to use string "redis-cluster" when redis cluster instance is used for cache/session. But when Gitea is installed with ADAPTER/PROVIDER set to redis-cluster, it is instead configuring it to memory.
On analysis of code, it seems string "redis-cluster" is not supported for ADAPTER/PROVIDER.
Cache :
gitea/modules/setting/cache.go
Line 53 in 58b204b
Session:
gitea/modules/setting/session.go
Line 44 in 58b204b
gitea/modules/setting/session.go
Line 45 in 58b204b
Documentation Reference
Cache - https://docs.gitea.com/1.20/administration/config-cheat-sheet#cache-cache
Session - https://docs.gitea.com/1.20/administration/config-cheat-sheet#session-session
When it is set to "redis" both cache/session seems to be working fine even for redis cluster instances.
Gitea Version
1.21.7
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
When redis-cluster is used for ADAPTER/SESSION

When using redis as ADAPTER

Git Version
No response
Operating System
No response
How are you running Gitea?
Gitea installed in a K8s environment with charts taken from https://dl.gitea.com/charts/
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: