Phpredis: Couldn't map cluster keyspace using any provided seed

Created on 27 Mar 2019  路  5Comments  路  Source: phpredis/phpredis

Expected behaviour

Actual behaviour

I'm seeing this behaviour on

Steps to reproduce, backtrace or example script

cluster work ok.
redis-trib.rb check 127.0.0.1:6380 is ok

$redis = new RedisCluster(NULL,Array('127.0.0.1:6380','127.0.0.1:6381'), 1.5, 1.5, true,'mypassword');
var_dump($obj_cluster);

Uncaught exception 'RedisClusterException' with message 'Couldn't map cluster keyspace using any provided seed

Most helpful comment

Hi,
I've run into similar problem here. I have a redis cluster that has been set up in kubernetes. I created a NodePort for accessing the cluster. redis-cli -c works perfectly. I tried connecting my application to the redis cluster so that my application can use the redis cluster for storing user session data. It's unsuccessful and return the same error as the issue above had.

php version is 5.6.40
php-redis version 4.2.0

thanks.

All 5 comments

Does using redis-cli -c -p 6380 work as expected (e.g. getting and setting keys is fine?)

Hi
My bug was closed as a duplicate of this one.
In my case i can connect to the redis cluster with redis-cli, so the cluster seems to work.

@michael-grunder redis-cli -c -p 6380 work is ok

Hi,

Are you sure that you are passing the correct password? Another thing you can try is to create a non cluster connection and make sure you are able to communicate with a specific node via a Redis object.

Hi,
I've run into similar problem here. I have a redis cluster that has been set up in kubernetes. I created a NodePort for accessing the cluster. redis-cli -c works perfectly. I tried connecting my application to the redis cluster so that my application can use the redis cluster for storing user session data. It's unsuccessful and return the same error as the issue above had.

php version is 5.6.40
php-redis version 4.2.0

thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marius-meissner picture marius-meissner  路  5Comments

LooLx picture LooLx  路  4Comments

HunterEl picture HunterEl  路  4Comments

thilinadinith picture thilinadinith  路  5Comments

namjitharavind picture namjitharavind  路  4Comments