Failing to connect to server on 3.0rc3 (2.9.103)

111 views
Skip to first unread message

Hale Sostock

unread,
Feb 12, 2015, 5:31:47 PM2/12/15
to redi...@googlegroups.com
I'm following this guide to setting up a cluster, and I'm running into issues both creating the cluster and simply connecting to any instance using redis-cli.

As per the tutorial, I have 6 instances running on 127.0.0.1:7001-7005. When i run redis-trib.rb to create the cluster, I get the following output:

$ ./redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005

>>> Creating cluster

Connecting to node 127.0.0.1:7000: [ERR] Sorry, can't connect to node 127.0.0.1:7000

Debugging the script, it looks like it immediately fails inside the connect function, when trying to ping the instance.

I then tried to connect to an instance using redis-cli, but after connecting successfully, any commands immediately error out:

$ ./redis-cli -p 7000

127.0.0.1:7000> set foo bar

Error: Server closed the connection

127.0.0.1:7000> get foo

Error: Server closed the connection

However, I am able to telnet into the instance and run commands that way:

$ telnet localhost 7000

Trying ::1...

Connected to localhost.

Escape character is '^]'.

set foo bar

-CLUSTERDOWN The cluster is down. Use CLUSTER INFO for more information

cluster info

$261

cluster_state:fail

cluster_slots_assigned:1

cluster_slots_ok:1

cluster_slots_pfail:0

cluster_slots_fail:0

cluster_known_nodes:1

cluster_size:1

cluster_current_epoch:0

cluster_my_epoch:0

cluster_stats_messages_sent:0

cluster_stats_messages_received:0

Any clues what's going on? I'm running this on a MBP 2012, osx 10.10.

Thanks, Hale

Reply all
Reply to author
Forward
0 new messages