nebula-console连接失败

充足的信息能提高解决问题的速度

提问之前,记得在【本论坛】和【文档】下搜索是否已有解决方案存在哟 ^^

为了更快地定位、解决问题,麻烦参考下面模版提问(不符合提问规范的问题,会被隐藏待补充相关信息之后再发布

提问参考模版:

  • nebula 版本:(3.2)
  • 部署方式:单机
  • 安装方式:RPM
  • 是否为线上版本:Y
  • 问题的具体描述
    连接console提示错误,在另外一个机器又可以连接成功
    [INFO] nebula-metad(bb2e684): Running as 2346, Listening on 9559
    [INFO] nebula-graphd(bb2e684): Running as 2382, Listening on 9669
    [WARN] nebula-storaged after v3.0.0 will not start service until it is added to cluster.
    [WARN] See Manage Storage hosts:ADD HOSTS in https://docs.nebula-graph.io/
    [INFO] nebula-storaged(bb2e684): Running as 2438, Listening on 9779

错误提示:
./nebula-console: line 1: {detail:Authentication credentials were not provided.}: command not found

你连接 console 的语句可以给一下吗?

1 个赞

./nebula-console --help
./nebula-console: line 1: {detail:Authentication credentials were not provided.}: command not found

看着像是二进制脚本没有执行

已经连上了,忽略吧

搭建集群后连接失败了

# more nebula-graphd.ERROR

Running duration (h:mm:ss): 0:00:00
Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
E20221122 14:55:36.821492 23206 MetaClient.cpp:758] Send request to "10.209.51.185":9559, exceed retry limi
t
E20221122 14:55:36.821717 23206 MetaClient.cpp:759] RpcResponse exception: apache::thrift::transport::TTran
sportException: Dropping unsent request. Connection closed after: apache::thrift::transport::TTransportExce
ption: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused): Conn
ection refused
E20221122 14:55:36.821810 23103 MetaClient.cpp:112] Heartbeat failed, status:RPC failure in MetaClient: apa
che::thrift::transport::TTransportException: Dropping unsent request. Connection closed after: apache::thri
ft::transport::TTransportException: AsyncSocketException: connect failed, type = Socket not open, errno = 1
11 (Connect
E20221122 14:55:49.828830 23243 MetaClient.cpp:758] Send request to "10.209.45.93":9559, exceed retry limit
E20221122 14:55:49.828892 23243 MetaClient.cpp:759] RpcResponse exception: apache::thrift::transport::TTran
sportException: Failed to write to remote endpoint. Wrote 0 bytes. AsyncSocketException: AsyncSocketExcepti
on: connect failed, type = Socket not open, errno = 111 (Connection refused)
E20221122 14:55:49.828943 23103 MetaClient.cpp:112] Heartbeat failed, status:RPC failure in MetaClient: apa
che::thrift::transport::TTransportException: Failed to write to remote endpoint. Wrote 0 bytes. AsyncSocket
Exception: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused)

这个和你集群没搭建成功有关系, 集群搭建启动失败 - #6,来自 user79 在你的另外个帖子里我们的实施同学给你了你建议。