Altinity / clickhouse-backup

Tool for easy backup and restore for ClickHouse® using object storage for backup files.
https://altinity.com
Other
1.29k stars 227 forks source link

validation config failures for API server after apply --env in one command #940

Closed Slach closed 5 months ago

Slach commented 5 months ago

steps for reproduce

INSERT INTO system.backup_actions(command) VALUES('create_remote --env S3_STORAGE_CLASS=STANDARD_IA');
SELECT * FROM system.backup_list;

second command return error

2024/06/26 15:47:11.900868 error api.writeError status=500 
operation=list err='' is bad S3_STORAGE_CLASS, 
select one of: []types.StorageClass{"STANDARD", "REDUCED_REDUNDANCY", "STANDARD_IA", 
"ONEZONE_IA", "INTELLIGENT_TIERING", "GLACIER", "DEEP_ARCHIVE", "OUTPOSTS", "GLACIER_IR", 
"SNOW", "EXPRESS_ONEZONE"} logger=server

2024/06/26 15:47:11.900847 error config.LoadConfig(/etc/clickhouse-backup/config.yml) 
return error: '' is bad S3_STORAGE_CLASS, select one of: 
[]types.StorageClass{"STANDARD", "REDUCED_REDUNDANCY", "STANDARD_IA", "ONEZONE_IA",
 "INTELLIGENT_TIERING", "GLACIER", "DEEP_ARCHIVE", "OUTPOSTS", "GLACIER_IR", "SNOW",
 "EXPRESS_ONEZONE"} logger=server