Console无法连接,但Studio可正常工作

  • nebula 版本:3.1.0
  • 部署方式:单机
  • 安装方式:RPM
  • 是否为线上版本:N

使用以下语句连接nebula-console:

./nebula-console -addr 192.168.XX.XX -port 9779 -u root -p 123456

得到如下报错信息

2022/07/21 02:10:07 Fail to initialize the connection pool, host: 192.168.XX.XX, port: 9779, failed to open connection, error: failed to verify client version: Method name verifyClientVersion not found 
panic: Fail to initialize the connection pool, host: 192.168.XX.XX, port: 9779, failed to open connection, error: failed to verify client version: Method name verifyClientVersion not found 

goroutine 1 [running]:
log.Panicf(0xc0000f2000, 0xb8, 0x0, 0x0, 0x0)
	/opt/hostedtoolcache/go/1.16.4/x64/src/log/log.go:361 +0xc5
main.main()
	/home/runner/work/nebula-console/nebula-console/main.go:535 +0xb10

在本次之前一直是连接成功的。

目前三个服务状态全部正常,同时studio运行正常且可以查到192.168.XX.XX的host正常在线。

请问console无法连接是否会造成其他生态工具(如Algorithm)的使用问题?该状态如何解决?谢谢~

你好,看起来是因为你用的nebula-console和nebula版本不匹配导致的,可以升级下console版本

1 个赞

您好,我目前已经在使用3.0.0版本的console。之前几天刚搭建好时是可以正常启动并做hosts管理的,不知道为什么这次失败了。

@Aiee 我好像看过几次不同的人遇到用了3 的console 还是会报这个版本验证的错误,不知道你有没有啥思路可能是什么原因哈:sweat_smile:

graph的端口默认是9669 你用的9779 检查一下是用错了吗

1 个赞

原理很简单, client 调用的 rpc 接口在服务端找不到, 错的原因要不是连错服务要不是版本不匹配

1 个赞

嗯嗯,感谢,我傻了,没看到用错了端口:sob:

感谢,的确是端口的问题,我把连console和add hosts用的端口记混了

1 个赞

@Aiee 指出,如果端口是默认的,您试图用 graph(console) client 对 storageD (:9779)做 RPC call,所以 graphD 专有的远端 verify_version 这个方法找不到。

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。