Closed adudzic closed 9 months ago
Try to use latest 2.4.17 and compression_format: tar
{"command":"restore_remote -rm 1704931206","status":"error","start":"2024-01-11 06:13:43","finish":"2024-01-11 06:16:37","error":"can't attach data parts for table '
. ': code: 226, message: No count.txt in part 1704758400_82912_82912_0"}
it means count.txt didn't present on remote GCS bucket
2024/01/11 00:03:02.901800 warn gcs.PutFile: can't close writer: googleapi: Error 503: We encountered an internal error. Please try again., backendError
this error shall be retried and shall be properly handled if retries doesn't help look details
https://github.com/Altinity/clickhouse-backup/blob/master/pkg/backup/upload.go#L532-L545 and https://github.com/Altinity/clickhouse-backup/blob/master/pkg/storage/general.go#L587-L594
Warning also could just print in this line
https://github.com/Altinity/clickhouse-backup/blob/master/pkg/storage/general.go#L602
and it means PutFile
was success, but we can't close descriptor, and this is weird.
Could you provide the whole upload logs? Could you share result of following command
kubectl exec -n <your-name-space> <chi-your-pod-0-0-0> -c clickhouse-backup -- bash -c "GCS_DEBUG=1 LOG_LEVEL=debug clickhouse-backup create_remote test_backup --table=db.table"
@adudzic any news from your side?
@adudzic do you still failed to restore?
close after topic starter inactivity
Clickhouse-server is in this case deployed as a cluster on GKE using clickhouse-operator. Clickhouse-backup is included in the pods as a sidecar.
I am creating a backup to GCS using
create_remote
command. Clickhouse-backup returns success in the/status
api call, and also returns no errors in the logsWhen trying to do restore of the backup, some of the files necessary are missing on the remote storage
In the clickhouse-backup logs, there is a warning for
gcs.PutFile
:I think that this should be retried as a failed attempt to upload, but it doesn't seem to be, I do not see anything in the logs that would indicate so.
Sanitized backup config