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

kvrocks2redis works weird #145

Closed
winterfall233 opened this issue Dec 21, 2020 · 3 comments · Fixed by #146
Closed

kvrocks2redis works weird #145

winterfall233 opened this issue Dec 21, 2020 · 3 comments · Fixed by #146
Assignees
Labels
bug type bug

Comments

@winterfall233
Copy link

[What did I do?]
When I use kvrocks2redis to migrate data to a Redis server, the auth part does not work.
1.kvrocks server configured by:
requirepass=mypwd_kvrocks
# masterauth
2.kvrocks2redis configured by:
kvrocks xx.xx.xx.xx 6666 mypwd_kvrocks
namespace.ns1 xx.xx.xx.xx 6379 mypwd_redis 1

Meanwhile, Redis server is ready with port 6379 & pwd 'mypwd_redis'.
And I did this on kvrocks server:
./redis-cli -h xx.xx.xx.xx -p 6666 -a mypwd_kvrocks namespace add ns1 mypwd_ns1
./redis-cli -h xx.xx.xx.xx -p 6666 -a mypwd_ns1 set key1 abcdefg
./redis-cli -h xx.xx.xx.xx -p 6666 -a mypwd_ns1 lpush key2 a b c

[ERROR LOG]
E1221 16:13:32.715910 99362 sync.cc:58] auth got invalid response
E1221 16:13:32.717257 99427 redis_writer.cc:90] [kvrocks2redis] redis select db failed: -NOAUTH Authentication required.
E1221 16:13:32.718616 99427 redis_writer.cc:90] [kvrocks2redis] redis select db failed: -NOAUTH Authentication required.
E1221 16:13:32.719998 99427 redis_writer.cc:90] [kvrocks2redis] redis select db failed: -NOAUTH Authentication required.
E1221 16:13:32.721364 99427 redis_writer.cc:90] [kvrocks2redis] redis select db failed: -NOAUTH Authentication required.
E1221 16:13:32.722718 99427 redis_writer.cc:90] [kvrocks2redis] redis select db failed: -NOAUTH Authentication required.
E1221 16:13:32.724040 99427 redis_writer.cc:90] [kvrocks2redis] redis select db failed: -NOAUTH Authentication required.
E1221 16:13:32.725356 99427 redis_writer.cc:90] [kvrocks2redis] redis select db failed: -NOAUTH Authentication required.

[Question~]
Am I doing the right config for kvrocks & kvrocks2redis? Why migration cannot work and log shows err in AUTH?

@git-hulk
Copy link
Member

can u help to check this issue?

@winterfall233
Copy link
Author

winterfall233 commented Dec 21, 2020

some guess:
kvrocks2redis must config "an existing kvrocks slave node" as data source, right?

@karelrooted karelrooted mentioned this issue Dec 21, 2020
@karelrooted karelrooted added the bug type bug label Dec 21, 2020
@karelrooted
Copy link
Contributor

some guess:
kvrocks2redis must config "an existing kvrocks slave node" as data source, right?

is a bug, forgot to test password not empty situation after add selectDB support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug type bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants