Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

RedisServerException "ERR command is not allowed" after v3.4.0 update

Closed Beginner friendly
#3,274 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp, redis
Domain
backend, databases

Research direction

Start in src/StackExchange.Redis/ConnectionMultiplexer.cs at GetEndpointsFromClusterNodes, around line 2165, where the exception originates. Check how cluster configuration is updated for non-clustered Azure Managed Redis and compare that behavior with v3.3.1. Done means the non-clustered resource no longer triggers the forbidden-command error while cluster endpoint discovery still works.

Written by the indexing model from the issue text.

Description

Since we upgraded to v3.4.0 we observe exceptions with error message Encountered error while updating cluster config: ERR command is not allowed and call stack:

StackExchange.Redis.RedisServerException:
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter.GetResult (System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at StackExchange.Redis.ConnectionMultiplexer+<GetEndpointsFromClusterNodes>d__176.MoveNext (StackExchange.Redis, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c219ff1ca8c2ce46: /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:2165)

We are using Azure Managed Redis non-clustered resource which might be the reason for the observed exception. Downgrading to v3.3.1 fixes the issue.

Dominant language
C#
Stars
6.2k
Forks
1.6k
Avg merge
1d 23h
Merged PRs (30d)
31

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from StackExchange/StackExchange.Redis

All issues in StackExchange/StackExchange.Redis

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.