Open alkazap opened 6 months ago
shake.toml
will only be applied to the redis data nodes, as by default, it is assumed that the sentinel nodes do not have a password configured. You may need to modify the code for it to take effect, or alternatively, you can temporarily use the standalone writer instead of the sentinel writer. https://github.com/tair-opensource/RedisShake/pull/806Right we configured password for the sentinel, is that not the common practice?
~Unfortunately I'm not very familiar with your code base and golang, could you please point me to a file where I should modify the code?~ [Edit] Figured it out by looking at the linked feature.
You're right, read-only replica was returned, I could try to check which node is the master before running RedisShake...
Can RedisShake handle failover scenario if connected to Sentinel? [Edit] After looking at the linked feature seems like it doesn't.
Thank you for your help. I modified the code and now it works. We set sentinel password and master password to be the same. Not sure if this is common practice. In case it is, I can submit it as feature.
Issue Description
Trying to copy data from standalone Redis to Redis Sentinel, getting
ERR NOAUTH Authentication required
even thoughpassword
is specified correctly.Environment
Logs
Additional Information
shake.toml
:I also tried connecting to sentinel master instead:
But then RedisShake tries to write to read-only replica: