AnotherRedisDesktopManager icon indicating copy to clipboard operation
AnotherRedisDesktopManager copied to clipboard

Cluster 模式 master节点连接报错 Stream On Error: Connection is closed.

Open leeyacai opened this issue 3 years ago • 10 comments

OS

Windows

VERSION

1.5.2

ISSUE DESCRIPTION

Cluster 模式: 7001,7002,7003端口连接会报 Stream On Error: Connection is closed. 错误 7004,7005,7006能正常连接 7001,7002,7003 是主节点 7004,7005,7006 是从节点

image

leeyacai avatar Feb 24 '22 04:02 leeyacai

连主节点勾上cluster可以么

qishibo avatar Feb 24 '22 10:02 qishibo

还有不勾选的时候,可以随便get一个key,看看返回的ip是多少,看本机能访问么

qishibo avatar Feb 24 '22 10:02 qishibo

主节点勾选不信, 我找到原因了. 是 node.conf 生成的ip 是内网的, 然后改成外网的然后重启就好了. 但是不知道这种做法合不合理 g4JHoxgMwr

leeyacai avatar Feb 24 '22 10:02 leeyacai

还有不勾选的时候,可以随便get一个key,看看返回的ip是多少,看本机能访问么

主节点不勾选能正常访问, 也能get key. 但是勾选cluster然后连接就会报 Stream On Error: Connection is closed.

leeyacai avatar Feb 24 '22 11:02 leeyacai

生产环境一般配置都是内网,因为你的代码也在内网。

这种可以配置ssh+cluster方式,ip写内网ip就行了【ssh那填写外网ip】,等价于让Another ssh到服务器再去用内网ip连接集群

qishibo avatar Feb 24 '22 11:02 qishibo

不过看你截图,就这一个node是内网ip,跟其他node不一致了,强迫症表示改成一样的好

qishibo avatar Feb 24 '22 11:02 qishibo

生产环境一般配置都是内网,因为你的代码也在内网。

这种可以配置ssh+cluster方式,ip写内网ip就行了【ssh那填写外网ip】,等价于让Another ssh到服务器再去用内网ip连接集群

ssh+cluster方式 我访问也是报 Stream On Error: Connection is closed. 哈哈哈

leeyacai avatar Feb 24 '22 11:02 leeyacai

@leeyacai 我也是和你一样的情况,一模一样,请问你解决了吗?我SpringBoot应用连接是正常能跑起来的,就是这个连不上。

jetwong0115 avatar Apr 15 '22 15:04 jetwong0115

生产环境一般配置都是内网,因为你的代码也在内网。

这种可以配置ssh+cluster方式,ip写内网ip就行了【ssh那填写外网ip】,等价于让Another ssh到服务器再去用内网ip连接集群

@qishibo 我试过这种方式,但还是不行。

jetwong0115 avatar Apr 15 '22 15:04 jetwong0115

@jetwong0115 你能有权限ssh然后使用cli链接你的redis么

qishibo avatar Apr 16 '22 00:04 qishibo