Skip to content

Error: can't restore cause system.replicas entries already exists #939

Closed Answered by Slach
nnor1 asked this question in Q&A
Discussion options

You must be logged in to vote

error message means another replica is present and insertion in another replica continues
to avoid data duplication we can't restore

Database was deleted

when you delete database in one replica
it stay on other replicas

use
DROP DATABASE dbname ON CLUSTER 'cluster-name' SYNC
and look to https://github.com/Altinity/clickhouse-backup/blob/master/Examples.md#restore

during restore you need restore schema on each replica in each shard
and restore data only on one replica in each shard

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nnor1
Comment options

Answer selected by Slach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants