READONLY error when using Redis 6.2.2 Sentinel cluster on Kubernetes with dify-plugin-daemon 0.6.10-local
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
The error occurs in internal/cluster/cluster_lifetime.go at line 111. Start by examining the Redis client configuration and Sentinel connection logic in the cluster package. Check how the master address is resolved from Sentinel and ensure write operations target the master, not a replica. Review the Redis client library usage and any Sentinel-specific settings. Running the daemon in a test Kubernetes environment with a similar Sentinel setup would help reproduce and debug the issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
dify version: 1.17.1
dify-plugin-daemon version: 0.6.10-local
Redis version: 6.2.22 with Sentinel cluster
Error log:
2026-09-23T15:11:03.617246426+08:00 2026-09-23T07:11:03.617064805Z ERROR dify-plugin-daemon cluster_lifetime.go:111 failed to lock the slot to be the master of the cluster error="READONLY You can't write against a read only replica.\nREADONLY You can't write against a read only replica.\nREADONLY You can't write against a read only replica."
2026-09-23T15:11:03.617266044+08:00 https://github.com/langgenius/dify-plugin-daemon/internal/cluster.(*Cluster).clusterLifetime
2026-09-23T15:11:03.617268602+08:00 /app/internal/cluster/cluster_lifetime.go:111
Bug description (ready for GitHub issue)
When running dify-plugin-daemon 0.6.10-local with Redis 6.2.2 Sentinel cluster, the daemon fails to acquire cluster slot lock. It reports READONLY You can't write against a read only replica. repeatedly at cluster_lifetime.go:111. It seems the Redis client is connecting to a replica node instead of the current master returned by Sentinel, causing write operations to fail.
Is dify-plugin-daemon-0.6.10-local not well supported for Redis 6.2.2 Sentinel clusters? Please help diagnose the root cause and provide a solution.It is deployed on Kubernetes.
- Lingua principale
- Go
- Stelle
- 462
- Fork
- 326
- Merge medio
- 22h 15m
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di langgenius/dify-plugin-daemon
-
Agent strategy run cut by PLUGIN_MAX_EXECUTION_TIMEOUT is reported only as "Internal Server Error"Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
langgenius/dify-plugin-daemon#863 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
langgenius/dify-plugin-daemon#862 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(install): prevent mirror settings from changing dependency resolution inputsForse già presa @WH-2099 l’ha presa 5 giorni fa. Apertaproject#dify-plugin-daemon
langgenius/dify-plugin-daemon#860 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
uninstall the plugin, but the plugin package is not removedForse già presa @fatelei l’ha presa 111 giorni fa. Apertabug plugin-daemon
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
langgenius/dify-plugin-daemon#797 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug plugin-daemon project#dify-plugin-daemon
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
langgenius/dify-plugin-daemon#771 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di langgenius/dify-plugin-daemon
Issue simili
-
Add Alice&BotAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
eryajf/learning-weekly#235 ·
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
github/github-mcp-server#3960 ·
I maintainer di solito rispondono entro 3 giorni