Not able to create schema while restoration in version 6.2.0

Installation details
Running a 3 node scylla cluster in GKE.
#ScyllaDB version: 6.2.0
#Cluster size: 3 node
os (RHEL/CentOS/Ubuntu/AWS AMI): Ubuntu

Hi all,
I have upgraded my Scylla cluster from 5.2.4 to 6.2.0. now when I try to restore a schema from already running scylla cluster to newly created scylla cluster, using command:
sctool restore -c scylla-backup -L gcs:scylla-backup-prod -T sm_20250214180010UTC --restore-schema
I’m getting issue that scylla-manager keyspace already exists. but when I delete scylla-manager namespace from new cluster, I can’t even run the above command.
Earlier scylla used to store schema in .cql format but now it’s storing in json format.
Any help on this is appreciated.
Thanks!

Hi, could you share the scylla-manager logs and version?

Are you perhaps using the same cluster for your data and as the scylla-manager back-end? Have you created a new scylla-manager instance for this new cluster (and also using this new cluster as its backend)?

If that’s the case, then backup contains the schema definition of scylla-manager keyspace and the new cluster also contains such definition (created by the new scylla-manager on its start-up, as it is its back-end).

A simple fix is to not create a new scylla-manager, but use the old one for schema restoration in the new, fresh cluster. After schema and data restoration, for whatever reason, you can create a new scylla-manager instance with the newly restored cluster as its back-end, and all should work fine (although using the same cluster for your data and scylla-manager back-end is problematic as in this case).

Another option would be to restore schema by taking the .cql file from the backup and applying it manually (see backup spec for more info).

1 Like