nebula-importer 连接不上, failed to verify client version: verifyClientVersion failed: wrong method name

运行log:

2021/11/26 15:11:43 --- START OF NEBULA IMPORTER ---
2021/11/26 15:11:44 failed to open connection, error: failed to verify client version: verifyClientVersion failed: wrong method name
2021/11/26 15:11:45 --- END OF NEBULA IMPORTER ---
exit status 200

配置文件:

version: v2
description: example
removeTempFiles: false
clientSettings:
  retry: 3
  concurrency: 10 # number of graph clients
  channelBufferSize: 128
  space: Baike2
  connection:
    user: root
    password: 123456
    address: 10.93.0.237:9169
  postStart:
    # 配置连接Nebula Graph服务器之后,在插入数据之前执行的一些操作。
    commands: |
      DROP SPACE IF EXISTS Baike2;
      CREATE SPACE IF NOT EXISTS Baike2(vid_type=FIXED_STRING(128));
      USE Baike2;
      CREATE TAG entity(name string);
      CREATE EDGE relation(name string);

    # 执行上述命令后到执行插入数据命令之间的间隔。
    afterPeriod: 15s

  preStop:
    # 配置断开Nebula Graph服务器连接之前执行的一些操作。
    commands: |
    
logPath: ./err/test.log
files:
  - path: ../vertex.csv
    failDataPath: ./err/vertex.csv
    batchSize: 100
    type: csv
    csv:
      withHeader: true
      withLabel: false
    schema:
      type: vertex
      vertex:
        tags:
          - name: entity
            props:
              - name: name
                type: string
  - path: ../edge.csv
    failDataPath: ./err/edge.csv
    batchSize: 100
    type: csv
    csv:
      withHeader: true
      withLabel: false
    schema:
      type: edge
      edge:
        name: relation
        withRanking: false
        props:
          - name: name
            type: string

version 2.5.0,importer也clone的v2版本,yaml也用的v2
其中user: root
password: 123456
address: 10.93.0.237:9169
我通过graph studio登录正常,通过python-nebula2也可以插入节点
不知道为什么 client version有问题?
去掉postStart,prestop运行也有问题

如果 nebula graph 是 2.5,importer 也应该用 v2.5.0 哈(importer repo 里有个表),看报错是服务端和客户端有一方不支持验证客户端版本(core 2.5 才有的特性)

啊哈?importer还有v2.5.0吗
https://github.com/vesoft-inc/nebula-importer里没看到 :joy:
不是只有v1和v2两个版本吗
Nebula Importer v1 branch can only connect to Nebula Graph 1.x. Nebula Importer master and v2 branch can only connect to Nebula Graph 2.x.

那个是配置文件的格式哈,1 和 2 差很多,抱歉我才看到,readme里没有这个表:sob:,可以从 releases里看到 https://github.com/vesoft-inc/nebula-importer/releases

我指的 v2.5.0 是下载的 importer 包或者 docker image 哈
如下边,应该用 v2.5.1

1 个赞

谢谢siwei老师,嘻嘻

1 个赞

问题描述:
windows 环境,改用了 nebula-importer v2.5.0后
运行go run importer.go --config ./config.yaml
yaml与上次相同

error:
verifying module: checksum mismatch
downloaded: h1:7w3bUYTAtvEA20go5XFoEDx5HbnzlOgo5VBSP3AvXtE=
sum.golang.org: h1:A4wZoGqR1W1mQ9y/X+tV1wCMIsDkuhFMthTQKMeT8Yc=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see ‘go help module-auth’.

我使用了
go clean -modcache
go mod tidy
甚至重装了go 1.7.3版本,相同问题
回到2.6.0版本,出现了上次verifyclientVersion failed错误

在我十分确定应该是bug后,我找到了nebula-go,https://github.com/vesoft-inc/nebula-go,里面提到了
NOTE Installing Nebula Go v2.5.0 could cause checksum mismatch, use v2.5.1 instead.
!!!!!!!
改用v2.5.1后,报了一个panic: runtime error: invalid memory address or nil pointer dereference,修改配置文件withHeader:false(原来是true)
后正常运行nebula-importer

撒花!
siwei老师不要再让别人用nebula-importer v2.5.0啦, :see_no_evil:

2 个赞

哈哈,抱歉,那个 tag 被 force push 过和 checksum 服务器上的不匹配了,给你添麻烦了:+1:t2:

1 个赞

这里我们可以提高一下报错的返回,帮助找到问题关键。

1 个赞

太客气了,您这么频繁回复,是我给您添麻烦了!

1 个赞

如果 wey 的回复解决了你的问题,记得勾选他的回复,或者上面你自己的回复为【解决方案】哈~