Backup issue on dell-ecs s3 storage

hello,
I’m using Percona Operator for MySQL based on Percona XtraDB Cluster v1.10.0 on a Tanzu Kubernetes cluster.
Trying to take backup on a dell-ecs s3 bucket, getting the below error

2022-07-07 11:49:32.768 INFO: [SST script] mc: <ERROR> Unable to initialize new alias from the provided credentials. Get "https://corpit-prod-global-ns01.sc2-staas01.oc.vmware.com:9021/probe-bucket-sign-c6q92v43rlzr/?location=": net/http: invalid header field value "AWS4-HMAC-SHA256 Credential=tanzu-backup-key-id\n/20220707/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=19cf2e36758e00d592e6c529dfb3ebc4bd560d4bbb9f3b26bc7769abfa15363f" for key Authorization.

2022-07-07 11:49:32.769 INFO: SST script ended

2022-07-07 11:49:32.769 INFO: Closing send monitor...

2022-07-07 11:49:32.769 INFO: Closed send monitor.

2022-07-07 11:49:32.769 INFO: gcomm: terminating thread

2022-07-07 11:49:32.770 INFO: gcomm: joining thread

2022-07-07 11:49:32.770 INFO: gcomm: closing backend

2022-07-07 11:49:32.771 INFO: Current view of cluster as seen by this node

view (view_id(NON_PRIM,33b7cfdc-be5b,62)

memb {

dd348bf7-9d4f,0

}

joined {

}

left {

}

partitioned {

33b7cfdc-be5b,0

abc14ea8-a49f,0

f622c526-ac2e,0

}

)

2022-07-07 11:49:32.771 INFO: PC protocol downgrade 1 -> 0

2022-07-07 11:49:32.771 INFO: Current view of cluster as seen by this node

view ((empty))

2022-07-07 11:49:32.771 INFO: gcomm: closed

2022-07-07 11:49:32.772 INFO: New COMPONENT: primary = no, bootstrap = no, my_idx = 0, memb_num = 1

2022-07-07 11:49:32.772 INFO: Flow-control interval: [9999999, 9999999]

2022-07-07 11:49:32.772 INFO: Received NON-PRIMARY.

2022-07-07 11:49:32.772 INFO: Shifting JOINER -> OPEN (TO: 89)

2022-07-07 11:49:32.772 INFO: New SELF-LEAVE.

2022-07-07 11:49:32.772 INFO: Flow-control interval: [9999999, 9999999]

2022-07-07 11:49:32.772 INFO: Received SELF-LEAVE. Closing connection.

2022-07-07 11:49:32.772 INFO: Shifting OPEN -> CLOSED (TO: 89)

2022-07-07 11:49:32.772 INFO: RECV thread exiting 0: Success

2022-07-07 11:49:32.772 INFO: Waiting for SST script to stop

2022-07-07 11:49:32.772 INFO: recv_thread() joined.

2022-07-07 11:49:32.772 INFO: Closing replication queue.

2022-07-07 11:49:32.772 INFO: Closing slave action queue.

2022-07-07 11:49:32.772 INFO: SST script stopped

2022-07-07 11:49:33.711 INFO: Exiting main loop

+ EXID_CODE=1

+ echo '[INFO] garbd was finished'

+ '[' -f /tmp/backup-is-completed ']'

+ exit 1

Process completed with error: /usr/bin/run_backup.sh: 1 (Operation not permitted)[INFO] garbd was finished

storage configuration I did while creating the instance

 storages:
      dell-ecs-backup:
        type: s3
        s3:
          bucket: dell-ecs
          credentialsSecret: dell-ecs-cred
          endpointUrl: https://corpit-prod-global-ns01.sc2-staas01.oc.vmware.com:9021

I cross-checked the endpoint, the access key & secret key are correct
Can anyone help me here, if I’m doing anything wrong with the configuration

1 Like

Configuration seems ok as far as I can tell. You might want to check with the folks that manage your s3-compatible storage, since it looks like the request is not accepted.

1 Like

Hi @Yashraj_Samaiya ,

Please have a look at restic not initializing · Issue #2410 · vmware-tanzu/velero · GitHub looks like it is your case. Please make sure that you do not have newline(‘\n’) in the secret.

1 Like