Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket operation timed out #20

Open
le-shi opened this issue Mar 16, 2020 · 5 comments
Open

Socket operation timed out #20

le-shi opened this issue Mar 16, 2020 · 5 comments

Comments

@le-shi
Copy link

le-shi commented Mar 16, 2020

  • 首先我的集群有密码
  • 设置正确的密码连接集群提示'Socket operation timed out',用其他的工具就可以正常连
  • 设置错误的密码连接集群提示'ERR invalid password'
  • 不设置密码连接集群提示'NOAUTH Authentication required.'

  • 使用的版本 1.7.0 Release
  • 操作系统 windows 8.1 专业版
@cc20110101
Copy link
Owner

工具是根据每个主实例的IP和端口直接tcp连接的,有可能不是每个实例都能直接tcp连接通。
info Replication 、info Cluster、CLUSTER SLOTS这些命令执行完后IP没有显示127.0.0.1这种本地地址吧

@le-shi
Copy link
Author

le-shi commented Mar 18, 2020

每个节点我都尝试过了,都不行。你说的命令我执行了,没有找到127.0.0.1的字样,集群我是通过redis-trib创建的

@cc20110101
Copy link
Owner

cc20110101 commented Mar 18, 2020

原理就是软件自动获取集群的主实例IP和端口,然后直接tcp连接每个主实例;网络不通不知道是否有代理或是什么vpn等的。我自用的是win7系统正常,不知道是否电脑差异导致的网络或软件直连失败了

@le-shi
Copy link
Author

le-shi commented Mar 20, 2020

我有三个主节点,需要在连接的时候填写3个主节点的IP地址吗?
集群是在docker上运行的,只有三个主节点的端口映射到了宿主机上

@cc20110101
Copy link
Owner

有可能docker内自己内部网络IP导致,之前没有测试docker或是云里面的redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants