Closed fschoell closed 4 months ago
could you share
cat /var/lib/clickhouse/backup/migration/metadata.json
need to check
diskTypes
section
{
"backup_name": "migration",
"disks": {
"default": "/var/lib/clickhouse/",
"s3_plain": "/var/lib/clickhouse/disks/s3_plain/"
},
"disk_types": {
"default": "local",
"s3_plain": "s3"
},
"version": "2.5.20",
"creation_date": "2024-07-24T19:18:19.755980657Z",
"tags": "regular",
"clickhouse_version": "v24.3.2.23-stable",
"data_size": 434033004011,
"metadata_size": 1583,
"rbac_size": 908,
"databases": [
{
"name": "my_database",
"engine": "Atomic",
"query": "CREATE DATABASE my_database\nENGINE = Atomic"
}
],
"tables": [
{
"database": "my_database",
"table": "my_events"
}
],
"functions": [],
"data_format": ""
}
Did another backup with clickhouse-backup, but removed my Clickhouse native backup configuration before and that seems to solve that issue.
Another workaround seems to be to set remote_storage: "custom"
in the clickhouse-backup config
"disk_types": {
"default": "local",
"s3_plain": "s3"
},
clickhouse-backup trying to create connection to s3_plain disk via S3 protocol
do you have any data related to s3_plain
?
could you check data parts
grep s3_plain -r /var/lib/clickhouse/backup/migration/metadata/
nothing in the metadata directory referencing s3_plain
in this case just change migation/metadata.json
and setup
"disk_types": {
"default": "local"
},
your workaround about "remote_storage: custom" also worked solution
I just tried clickhouse-backup to migrate some data from one of our old clusters to a newer one. For this I basically followed this example.
Which means I ran
clickhouse-backup create -t my_database.my_events migration
on our old node, then used rsync to copy the/var/lib/clickhouse/backup/migration
directory to the new node and then I tried to restore the backup on the new node runningclickhouse-backup restore -m my_database:migrate migration
This then fails with the error
NewBackupDestination error: storage type 'none' is not supported
which is weird as I don't want to create a new backup destination, I just want to restore.The full output of
clickhouse-backup restore
is:clickhouse-backup list also shows the backup as locally available:
Running the up-to-date version of
clickhouse-backup
:While my
clickhouse-backup
config is pretty much empty and only contains the clickhouse credentials: