Altinity / clickhouse-backup

Tool for easy backup and restore for ClickHouse® using object storage for backup files.

Home Page:https://altinity.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Slach opened this issue · comments

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