READONLY error when using Redis 6.2.2 Sentinel cluster on Kubernetes with dify-plugin-daemon 0.6.10-local
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Go
- Stars
- 462
- Forks
- 326
- Avg merge
- 22h 15m
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from langgenius/dify-plugin-daemon
-
Agent strategy run cut by PLUGIN_MAX_EXECUTION_TIMEOUT is reported only as "Internal Server Error"Open
Difficulty 3/5 1-2 days Newbie friendliness 62/100
langgenius/dify-plugin-daemon#863 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
langgenius/dify-plugin-daemon#862 ·
Maintainers usually reply within 1 day
-
fix(install): prevent mirror settings from changing dependency resolution inputsPossibly taken @WH-2099 claimed this 5 days ago. Openproject#dify-plugin-daemon
langgenius/dify-plugin-daemon#860 · 1 assignee ·
Maintainers usually reply within 1 day
-
uninstall the plugin, but the plugin package is not removedPossibly taken @fatelei claimed this 111 days ago. Openbug plugin-daemon
Difficulty 3/5 1-2 days Newbie friendliness 38/100
langgenius/dify-plugin-daemon#797 · 2 comments ·
Maintainers usually reply within 1 day
-
bug plugin-daemon project#dify-plugin-daemon
Difficulty 4/5 3-5 days Newbie friendliness 45/100
langgenius/dify-plugin-daemon#771 · 2 comments ·
Maintainers usually reply within 1 day
All issues in langgenius/dify-plugin-daemon
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
github/github-mcp-server#3960 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
JuliusBrussee/caveman#1594 ·
Maintainers usually reply within 1 day
-
C-bug O-community X-blathers-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
cockroachdb/cockroach#176264 · 1 comment ·