Yugabyte-db: The table does not exist: table_name: "redis"

Created on 29 May 2018  路  4Comments  路  Source: yugabyte/yugabyte-db

docker exec -it yb-tserver-n1 /home/yugabyte/bin/redis-cli
127.0.0.1:6379> set abc 123
(error) ERR set: Could not open .redis table. Not found (yb/common/wire_protocol.cc:143): The table does not exist: table_name: "redis"
namespace {
  name: "system_redis"
}

127.0.0.1:6379> PING
(error) ERR PING: Could not open .redis table. Not found (yb/common/wire_protocol.cc:143): The table does not exist: table_name: "redis"
namespace {
  name: "system_redis"
}
kinquestion

Most helpful comment

docker exec -it yb-master-n1 /home/yugabyte/bin/yb-admin --master_addresses yb-master-n1:7100 setup_redis_table did work.

Thank you

All 4 comments

Rohit,
The error means that system_redis is not setup yet. Assuming you are using yb-docker-ctl it should be automatic. How did you create the local cluster?

In any case, you can create the table manually by running the following.

docker exec -it yb-master-n1 /home/yugabyte/bin/yb-admin --master_addresses yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100 setup_redis_table

Let us know if that solves the problem.

@schoudhury thanks. I used docker-compose file from https://docs.yugabyte.com/latest/admin/docker-compose/#create-a-single-node-cluster

and used docker-compose up -d command

docker exec -it yb-master-n1 /home/yugabyte/bin/yb-admin --master_addresses yb-master-n1:7100 setup_redis_table did work.

Thank you

thanks for the update rohit - will fix docker-compose instructions with the above asap.

want to note that you will be able to test a lot more of the features (including all the tutorials in the Explore section) if you use the yb-docker-ctl utility as described in https://docs.yugabyte.com/latest/quick-start/install/#docker

the above options are not quite possible in docker-compose since it creates a single node cluster with replication factor 1.

let us know if you face any issues whichever path you go.

Was this page helpful?
0 / 5 - 0 ratings