Hi,
I have recently configured a new backup repository for our CB cluster to save backups on Azure Storage account.
I did configuration correctly but due to some reason the backup failed after few successful runs. I tried to debug but can’t find a good solution so decided if I can configure it again as a clean install. But even that I am unable to do. Can someone please share knowledge around how can I remove or reconfigure the config for backup? Following are the commands I have used to setup a new repo which worked fine initially.
cbbackupmgr config -a az://cbbackup/archive -r repo --obj-staging-dir /data/staging --obj-access-key-id {StorageAccountName} --obj-secret-access-key {StorageKey}
Below is the log that I am getting from the failed instance of the incremental backup job pod on AKS cluster.
2024-12-04T20:20:07 INFO couchbase-operator-backup/1.3.8 (commit/27bb25de3323de5d3abc8cffe7e607d49e1b227d)
2024-12-04T20:20:07 INFO Timestamp: 2024-12-04 20:20:07.234110
2024-12-04T20:20:07 INFO Arguments: cluster=couchbase, mode=backup, full=False, incremental=True, backup_ret=24.0, disable_bucket_config=False, force_delete_lockfile=False, repo=None, start=None, end=None, map_data=None, filter_keys=None, filter_values=None, enable_bucket_config=False, force_updates=False, include_data=None, exclude_data=None, disable_views=False, disable_gsi_indexes=False, disable_ft_indexes=True, disable_ft_alias=True, disable_data=False, disable_analytics=True, disable_eventing=True, disable_cluster_analytics=False, disable_bucket_query=False, disable_cluster_query=False, cacert=/var/run/secrets/couchbase.com/tls-mount/ca.crt, log_ret=168.0, verbosity=INFO, s3_bucket=None, obj_store=az://cbbackup, obj_auth_by_instance_metadata=None, obj_endpoint=None, obj_cacert=None, s3_force_path_style=True, threads=1, default_recovery=none
2024-12-04T20:20:07 INFO Checking connection to Kubernetes API…
2024-12-04T20:20:07 ERROR Subprocess call exited with non-zero return code 1
2024-12-04T20:20:07 ERROR Arguments: cbbackupmgr info --json --archive az://cbbackup/archive --obj-staging-dir /data/staging --s3-force-path-style
2024-12-04T20:20:07 ERROR Stdout: b’{“error”:“failed to get archive metadata: failed to get archive version file: failed to write archive version file to disk: existing staging directory is for another archive, retry with another one or recreate the existing one”}\n’
2024-12-04T20:20:07 ERROR Stderr: b’’
2024-12-04T20:20:07 ERROR Failed to list repositories
2024-12-04T20:20:07 ERROR Command ‘[‘cbbackupmgr’, ‘info’, ‘–json’, ‘–archive’, ‘az://cbbackup/archive’, ‘–obj-staging-dir’, ‘/data/staging’, ‘–s3-force-path-style’]’ returned non-zero exit status 1.
Thanks!