Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Redis Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone error

オープン
#2,808 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
csharp, redis
領域
backend, databases

調査の方向性

レポートに示されている ConfigurationOptions と ConnectionMultiplexer.Connect の呼び出しから始め、Redis Sentinel のセットアップに対して SentinelUrl、ポート 26397、パスワード、ServiceName を確認します。断続的な失敗を再現し、エラーで報告される接続モードを比較します。完了の条件は、クライアントが Standalone エラーなしにエンドポイントを一貫して Sentinel として認識することです。

索引モデルが issue の本文から書いたものです。

説明

Our project is a .NET 8 API project, and we are using StackExchange.Redis version 2.8.0 as a caching mechanism. However, we are randomly encountering an error that shows "Sentinel: The ConnectionMultiplexer is not a Sentinel connection. Detected as: Standalone," and sometimes we don't receive this error. I haven't been able to identify the cause of this issue. What steps should I follow to resolve this error? I am sharing our codes

 var redisConfigurationOptions = new ConfigurationOptions()
                {
                    EndPoints = { { redisConfiguration.SentinelUrl!, redisConfiguration.Port } },
                    Password = redisConfiguration.Password,
                    ServiceName = redisConfiguration.ServiceName,
                    AbortOnConnectFail = redisConfiguration.AbortOnConnectFail, 
                    ConnectRetry = redisConfiguration.ConnectRetry, 
                    ConnectTimeout = redisConfiguration.ConnectTimeout, 
                    ReconnectRetryPolicy = new LinearRetry(redisConfiguration.ReconnectRetry) 
                
                };
var redisClient = ConnectionMultiplexer.Connect(redisConfigurationOptions)```

And redisConfiguration.SentinelUrl = redissentineltest.ourproject.com redisConfiguration.Port = 26397
主要言語
C#
スター
6.2k
フォーク
1.6k
平均マージ
1日 5時間
マージ済み PR(30日)
27

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

StackExchange/StackExchange.Redis のほかの issue

StackExchange/StackExchange.Redis の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。