Skip to content
New issue

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

4.05版本使用sync_reader模式连接阿里云Redis集群版直连地址报错 #809

Open
icexk opened this issue May 23, 2024 · 15 comments
Labels
type: question Further information is requested

Comments

@icexk
Copy link

icexk commented May 23, 2024

问题描述(Issue Description)

4.05版本使用sync_reader模式连接阿里云Redis集群版直连地址报错

Please provide a brief description of the issue you encountered.

环境信息(Environment)

  • RedisShake 版本(RedisShake Version):4.05
  • Redis 源端版本(Redis Source Version):阿里云Redis集群版社区经典4.0版本
  • Redis 目的端版本(Redis Destination Version):阿里云EC服务器自建单机redis 4.0.14版本
  • Redis 部署方式(standalone/cluster/sentinel):
  • 是否在云服务商实例上部署(Deployed on Cloud Provider):是

日志信息(Logs)

2024-05-23 17:48:29 INF load config from file: shake.toml
2024-05-23 17:48:29 INF log_level: [info], log_file: [/opt/redis-shake/data/shake.log]
2024-05-23 17:48:29 INF changed work dir. dir=[/opt/redis-shake/data]
2024-05-23 17:48:29 INF GOMAXPROCS defaults to the value of runtime.NumCPU [1]
2024-05-23 17:48:29 INF not set pprof port
2024-05-23 17:48:29 ERR ERR wrong number of arguments for 'auth' command
RedisShake/internal/client/redis.go:79 -> (*Redis).DoWithStringReply()
RedisShake/internal/client/redis.go:56 -> NewRedisClient()
RedisShake/internal/utils/cluster_nodes.go:14 -> GetRedisClusterNodes()
RedisShake/internal/reader/sync_cluster_reader.go:19 -> NewSyncClusterReader()
RedisShake/cmd/redis-shake/main.go:46 -> main()
runtime/proc.go:250 -> main()
runtime/asm_amd64.s:1598 -> goexit()

其他信息(Additional Information)

账号密码链接地址和端口没问题
麻烦看看呢

@icexk icexk added the type: question Further information is requested label May 23, 2024
@suxb201
Copy link
Member

suxb201 commented May 23, 2024

麻烦提供 RedisShake 的配置文件,以及你本地 redis-cli 能验证成功的证明看一下。

@icexk
Copy link
Author

icexk commented May 23, 2024

image image

@icexk
Copy link
Author

icexk commented May 23, 2024

连阿里云集群版的代理地址没有PSYN协议,连直连地址报错

@52hzbobo
Copy link

连阿里云集群版的代理地址没有PSYN协议,连直连地址报错
这个我们也遇到过 提工单问了阿里云
阿里云云redis管理的账号 你可以创建一个新的redis账号权限从读写改成【复制】
在shake.toml 配置username 和 pwd就可以

@icexk
Copy link
Author

icexk commented May 24, 2024

阿里云redis集群版不支持复制权限账号

@suxb201
Copy link
Member

suxb201 commented May 24, 2024

@icexk 直连集群可以工单打开,代理集群无法支持。

@icexk
Copy link
Author

icexk commented May 24, 2024

我就是用的直连地址,报授权错误
image

@suxb201
Copy link
Member

suxb201 commented May 24, 2024

ERR wrong number of arguments for 'auth' command

你使用 redis-cli 应该也不可以 auth 通过,是你使用了错误的验证方式。

麻烦提供你本地 redis-cli 能验证成功的证明看一下,包含 auth 命令。

@icexk
Copy link
Author

icexk commented May 24, 2024

image

@suxb201
Copy link
Member

suxb201 commented May 24, 2024

包含 auth 命令

@icexk
Copy link
Author

icexk commented May 24, 2024

image

@icexk
Copy link
Author

icexk commented May 24, 2024

image

@icexk
Copy link
Author

icexk commented May 24, 2024

image

@suxb201
Copy link
Member

suxb201 commented May 24, 2024

shake 的配置文件中,你应该 username 留空,只配置 password

@icexk
Copy link
Author

icexk commented May 24, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants