READONLY error when using Redis 6.2.2 Sentinel cluster on Kubernetes with dify-plugin-daemon 0.6.10-local

Aperta
#826 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Souravrajvi0 ci sta già lavorando.

Dal 26/9/2026.

  • #829 di @Souravrajvi0 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes, redis

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.

Image
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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di langgenius/dify-plugin-daemon

Tutte le issue di langgenius/dify-plugin-daemon

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.