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

I cannot set a password on this client #14

Open
Shabirmean opened this issue Aug 4, 2020 · 1 comment
Open

I cannot set a password on this client #14

Shabirmean opened this issue Aug 4, 2020 · 1 comment

Comments

@Shabirmean
Copy link

Hi,

I am trying to test my cluster using these ruby clients. But I constantly get the following error:

error Can't reach a single startup node. NOAUTH Authentication required

I have tried:

startup_nodes = [
        {:host => "redis-cluster-service", :port => 6379, :password => 'pass'}
    ]

startup_nodes = [
        {:host => "redis-cluster-service", :port => 6379, password: 'pass'}
    ]

RedisCluster.new(startup_nodes,32,:timeout => 0.1,:password => 'pass')
RedisCluster.new(startup_nodes,32,:timeout => 0.1, password: 'pass')
RedisCluster.new(startup_nodes,32,:timeout => 0.1,:auth_pass => 'pass')=

None of them seem to work. Any help with regards to this would be of great help.

Best
Shabir

@Shabirmean
Copy link
Author

The example is of the old client code,.
After hours of toil I found that the following works:

rc = Redis.new(cluster: startup_nodes,:timeout => 0.1, replica: true, password: 'PASSWORD')

Would be nice if the docs were updated.

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

No branches or pull requests

1 participant