Cbbackupmgr 7.2.0 weird error when config remote backup in GCP

Hi everyone,

I’m using cbbackupmgr 7.2.0 to config my Couchbase backup on Google Cloud Storage.
I had bucket name dt2-backup on GCS and proper permission for my service account.
When I execute the following command I enter error:

googleapi: got HTTP response code 400 with body: <?xml version='1.0' encoding='UTF-8'?>InvalidBucketNameThe specified bucket is not valid… Bucket names must be at least 3 characters in length, got 1: ‘b’

Command:
cbbackupmgr config --archive gs://dt2-backup/quannlm/dt2 --repo 2024 --obj-staging-dir /data/backups --obj-endpoint https://storage.googleapis.com --obj-region us-central1 --obj-auth-file /etc/gcloud/application_default_credentials.json

Obviously my bucket is “dt2-backup” so length of bucket name is greater than 3? I can see Couchbase create .lk file at path dt2-backup/quannlm/dt2 when I browse GCS console.
What is my mistake? Please help me.

Thank you for reading my question.

@vng.mps.quannlm if you are using GCP then you should not need to pass --obj-endpoint. Please try omitting this parameter, it fixes the issue for me.

3 Likes

Thank you very much!!. You save my day!!! <3