vipshop/redis-migrate-tool

关于认证的问题

monkey-wenjun opened this issue · 2 comments

[source]
type: single

servers:
 - 10.173.32.111:6379
redis_auth:xxxx


[target]
type: single
servers:
 - 10.173.32.114:6379
redis_auth:xxx


[common]
listen: 0.0.0.0:8888

log

[2018-04-09 09:40:36.576] rmt_core.c:2444 Total threads count in fact: 2
[2018-04-09 09:40:36.576] rmt_core.c:2445 Read threads count in fact: 1
[2018-04-09 09:40:36.576] rmt_core.c:2446 Write threads count in fact: 1
[2018-04-09 09:40:36.576] rmt_core.c:2455 read thread(0):
[2018-04-09 09:40:36.576] rmt_core.c:2461 10.173.32.111:6379
[2018-04-09 09:40:36.576] rmt_core.c:2488 write thread(0):
[2018-04-09 09:40:36.576] rmt_core.c:2494 10.173.32.111:6379
[2018-04-09 09:40:36.577] rmt_core.c:2551 migrate job is running...
[2018-04-09 09:40:36.577] rmt_core.c:420 ERROR: password to 10.173.32.114:6379 is wrong
[2018-04-09 09:40:36.582] rmt_redis.c:1706 Start connecting to MASTER[10.173.32.111:6379].
[2018-04-09 09:40:36.585] rmt_redis.c:1740 Master[10.173.32.111:6379] replied to PING, replication can continue...
[2018-04-09 09:40:36.592] rmt_redis.c:1051 Partial resynchronization for MASTER[10.173.32.111:6379] not possible (no cached master).
[2018-04-09 09:40:36.595] rmt_redis.c:1110 Full resync from MASTER[10.173.32.111:6379]: d48a2a3890d782e5f4a34f9d0d463fded99770dc:1175
[2018-04-09 09:40:36.616] rmt_redis.c:1517 MASTER <-> SLAVE sync: receiving 29 bytes from master[10.173.32.111:6379]
[2018-04-09 09:40:36.616] rmt_redis.c:1623 MASTER <-> SLAVE sync: RDB data for node[10.173.32.111:6379] is received, used: 0 s
[2018-04-09 09:40:36.616] rmt_redis.c:1643 rdb file node10.173.32.111:6379-1523238036596262-43059.rdb write complete

这个认证要怎么配,感觉一直提示密码错

测试发现 linux 系统没有问题 mac 会提示密码错误。无认证方式情况下也无法复制数据

我的配置
`

[source]
type: rdb file
redis_auth: xxxx
servers:

  • node10.154.147.29:7006-1536127745121860-26281.rdb
  • node10.154.147.29:7006-1536128406500080-28002.rdb
  • node10.154.147.29:7006-1536167138830003-25713.rdb
    [target]
    type: redis cluster
    redis_auth: dingXiang123
    servers:
  • 127.0.0.1:8002
    [common]
    listen: 0.0.0.0:9999

`
在执行数据迁移的时候,日志里面的read thread count总是为0,新集群的数据也并没有进去,我想问一下这是什么原因

[admin@redis-3 redis-migrate-tool]$ tail -f redis-migrate.log [2018-09-06 12:41:08.566] rmt_core.c:2444 Total threads count in fact: 3 [2018-09-06 12:41:08.566] rmt_core.c:2445 Read threads count in fact: 0 [2018-09-06 12:41:08.566] rmt_core.c:2446 Write threads count in fact: 3 [2018-09-06 12:41:08.566] rmt_core.c:2488 write thread(0): [2018-09-06 12:41:08.566] rmt_core.c:2494 node10.154.147.29:7006-1536167138830003-25713.rdb [2018-09-06 12:41:08.566] rmt_core.c:2488 write thread(1): [2018-09-06 12:41:08.566] rmt_core.c:2494 node10.154.147.29:7006-1536128406500080-28002.rdb [2018-09-06 12:41:08.566] rmt_core.c:2488 write thread(2): [2018-09-06 12:41:08.566] rmt_core.c:2494 node10.154.147.29:7006-1536127745121860-26281.rdb [2018-09-06 12:41:08.566] rmt_core.c:2551 migrate job is running... (日志到这里以后就一直不动了)

使用redis-cli -h -p 9999发现这个端口也没有在工作(迁移失败)