nuvo / cain

Backup and restore tool for Cassandra on Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backup fails- Could not describe schema: error in Stream

irad100 opened this issue · comments

I am trying to use cain with an helm chart from the cain/examples/helm/ folder with little changes and fixes.
I'm using it with azure blob storage and passing the AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY environment variables as described in the README of https://github.com/nuvo/skbn.
But every time I run the backup, I get the following logs:

2019/03/10 14:43:11 Backup started!
2019/03/10 14:43:11 Getting clients
2019/03/10 14:43:12 Getting pods
2019/03/10 14:43:12 Testing existence of data dir
2019/03/10 14:43:12 Backing up schema
2019/03/10 14:43:15 Could not describe schema. make sure a schema exists for keyspace "system" or restore it using "--schema". error in Stream: command terminated with exit code 1

Even though the schema does exist in the cassandra pod.
Can you please help me reach a solution?

Problem Fixed.
You should add an option for cassandra with ssl.
To fix the issue, I edited the source code found in file pkg/cain/cqlsh.go
and added the flag "--ssl" in every line with the "cqlsh" command tool, then I built it from source- https://github.com/nuvo/cain#from-source