We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
从单节点向集群同步数据报错
Please provide a brief description of the issue you encountered.
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"log_level: [info], log_file: [/root/RedisShake-4.3.1/bin/data/shake.log]"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"changed work dir. dir=[/root/RedisShake-4.3.1/bin/data]"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"GOMAXPROCS defaults to the value of runtime.NumCPU [8]"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"not set pprof port"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"create SyncStandaloneReader"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"* address: 127.0.0.1:6379"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"* username: "} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"* password: ********"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":" tls: false"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"create RedisClusterWriter"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":" address (should be the address of one node in the Redis cluster): 127.0.0.1:7000"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":" username: "} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":" password: ***********"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":" tls: false"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"address=127.0.0.1:7000, reply=15d68801d06fb60b61658c3bfcba53bdc1514b1b 172.27.33.22:7001@17001 slave 7215a6806588cdc524f92336dbe6bd9357115278 0 1734453493000 5 connected\n9357c9026fe1ac7d1ad875a49219c42d50cb217a 172.27.33.21:7001@17001 slave 2f3155c7dc8a8233bc17f3304589522dcde69fb6 0 1734453492000 7 connected\n12bacd07ba208ff44156656260dba49c8f8d79de 172.27.33.23:7001@17001 slave ab24d2940641d2ea151c43a9722a8d549ee28c9a 0 1734453494000 3 connected\nab24d2940641d2ea151c43a9722a8d549ee28c9a 172.27.33.22:7000@17000 master - 0 1734453494792 3 connected 5461-10922\n7215a6806588cdc524f92336dbe6bd9357115278 172.27.33.21:7000@17000 myself,master - 0 1734453492000 5 connected 0-5460\n2f3155c7dc8a8233bc17f3304589522dcde69fb6 172.27.33.23:7000@17000 master - 0 1734453492788 7 connected 10923-16383"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"redisClusterWriter connected to redis cluster successful. addresses=[172.27.33.22:7000 172.27.33.21:7000 172.27.33.23:7000]"} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"start syncing..."} {"level":"info","time":"2024-12-18T00:38:15+08:00","message":"[reader_127.0.0.1_6379] source db is not doing bgsave! continue."} {"level":"error","time":"2024-12-18T00:38:15+08:00","message":"[writer_172.27.33.21_7000] receive reply failed. cmd=[select 1], error=[ERR SELECT is not allowed in cluster mode]\n\t\t\tRedisShake/internal/writer/redis_standalone_writer.go:154 -> (*redisStandaloneWriter).processReply()\n\t\t\truntime/asm_amd64.s:1700 -> goexit()"}:
只修改了标红处
The text was updated successfully, but these errors were encountered:
1、不需要指定rdb文件,sync_reader可以自己拉取rdb并同步的 2、redis集群模式下不能使用多db,请将数据都放在一个db 0中进行同步
以下回答来自GPT
Sorry, something went wrong.
单节点里确实有两个DB,但是db0也没有同步,我需要在配置限制只同步db0吗?
可以先试试,就是先试试不触发select 命令切换数据库,如果还报错那再看是不是其他问题
No branches or pull requests
问题描述(Issue Description)
从单节点向集群同步数据报错
Please provide a brief description of the issue you encountered.
环境信息(Environment)
日志信息(Logs)
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"log_level: [info], log_file: [/root/RedisShake-4.3.1/bin/data/shake.log]"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"changed work dir. dir=[/root/RedisShake-4.3.1/bin/data]"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"GOMAXPROCS defaults to the value of runtime.NumCPU [8]"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"not set pprof port"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"create SyncStandaloneReader"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"* address: 127.0.0.1:6379"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"* username: "}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"* password: ********"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":" tls: false"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"create RedisClusterWriter"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":" address (should be the address of one node in the Redis cluster): 127.0.0.1:7000"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":" username: "}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":" password: ***********"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":" tls: false"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"address=127.0.0.1:7000, reply=15d68801d06fb60b61658c3bfcba53bdc1514b1b 172.27.33.22:7001@17001 slave 7215a6806588cdc524f92336dbe6bd9357115278 0 1734453493000 5 connected\n9357c9026fe1ac7d1ad875a49219c42d50cb217a 172.27.33.21:7001@17001 slave 2f3155c7dc8a8233bc17f3304589522dcde69fb6 0 1734453492000 7 connected\n12bacd07ba208ff44156656260dba49c8f8d79de 172.27.33.23:7001@17001 slave ab24d2940641d2ea151c43a9722a8d549ee28c9a 0 1734453494000 3 connected\nab24d2940641d2ea151c43a9722a8d549ee28c9a 172.27.33.22:7000@17000 master - 0 1734453494792 3 connected 5461-10922\n7215a6806588cdc524f92336dbe6bd9357115278 172.27.33.21:7000@17000 myself,master - 0 1734453492000 5 connected 0-5460\n2f3155c7dc8a8233bc17f3304589522dcde69fb6 172.27.33.23:7000@17000 master - 0 1734453492788 7 connected 10923-16383"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"redisClusterWriter connected to redis cluster successful. addresses=[172.27.33.22:7000 172.27.33.21:7000 172.27.33.23:7000]"}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"start syncing..."}
{"level":"info","time":"2024-12-18T00:38:15+08:00","message":"[reader_127.0.0.1_6379] source db is not doing bgsave! continue."}
{"level":"error","time":"2024-12-18T00:38:15+08:00","message":"[writer_172.27.33.21_7000] receive reply failed. cmd=[select 1], error=[ERR SELECT is not allowed in cluster mode]\n\t\t\tRedisShake/internal/writer/redis_standalone_writer.go:154 -> (*redisStandaloneWriter).processReply()\n\t\t\truntime/asm_amd64.s:1700 -> goexit()"}:
其他信息(Additional Information)
只修改了标红处
The text was updated successfully, but these errors were encountered: