{"record":{"id":"665ae4a1a0fd5062","repo":"redis/go-redis","slug":"redis-all-sentinels-specified-in-configuration-ar","errorCode":null,"errorMessage":"redis: all sentinels specified in configuration are unreachable: %w","messagePattern":"redis: all sentinels specified in configuration are unreachable: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sentinel.go","lineNumber":1044,"sourceCode":"\t\t\t\tcancel()\n\t\t\t})\n\n\t\t\tif sentinelCli != c.sentinel {\n\t\t\t\t_ = sentinelCli.Close()\n\t\t\t}\n\t\t}(i, sentinelAddr)\n\t}\n\n\twg.Wait()\n\tclose(errCh)\n\tif masterAddr != \"\" {\n\t\treturn masterAddr, nil\n\t}\n\terrs := make([]error, 0, len(errCh))\n\tfor err := range errCh {\n\t\terrs = append(errs, err)\n\t}\n\treturn \"\", fmt.Errorf(\"redis: all sentinels specified in configuration are unreachable: %w\", errors.Join(errs...))\n}\n\nfunc (c *sentinelFailover) replicaAddrs(ctx context.Context, useDisconnected bool) ([]string, error) {\n\tc.mu.RLock()\n\tsentinel := c.sentinel\n\tc.mu.RUnlock()\n\n\tif sentinel != nil {\n\t\taddrs, err := c.getReplicaAddrs(ctx, sentinel)\n\t\tif err != nil {\n\t\t\tif isContextError(ctx.Err()) {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t\t// Continue on other errors\n\t\t\tinternal.Logger.Printf(ctx, \"sentinel: Replicas name=%q failed: %s\",\n\t\t\t\tc.opt.MasterName, err)\n\t\t} else if len(addrs) > 0 {\n\t\t\treturn addrs, nil","sourceCodeStart":1026,"sourceCodeEnd":1062,"githubUrl":"https://github.com/redis/go-redis/blob/c5cad058c72f58370553b48566302303cf8a2e89/sentinel.go#L1026-L1062","documentation":"Error \"redis: all sentinels specified in configuration are unreachable: %w\" thrown in redis/go-redis.","triggerScenarios":"Thrown at sentinel.go:1044 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c5cad058c72f58370553b48566302303cf8a2e89","analyzedAt":"2026-09-01T06:50:53.388Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}