PerconaServerMongoDBRestore pbm 2.6.0 get S3 object header: NoCredentialProviders: no valid providers in chain. Deprecated

Description:

I am using:

storage: JuiceFS.
Percona Server MongoDB Operator
helm charts:
psmdb-operator-1.17.1
psmdb-db-1.17.0
crd: 0.16.3

images:
percona-server-mongodb-operator:1.17.1
percona-backup-mongodb:2.5.0

Storage configuration:

backup:
  storages:
    juicefs:
      type: s3
      s3:
        region: europe-west3
        bucket: juicefs-enc-sc
        uploadPartSize: 402653184
        prefix: backup/mongo-pbm/environment
        endpointUrl: http://s3-juicefs-enc-sc.juicefs.svc.cluster.local:9000
        credentialsSecret: default-backup-s3

Backup and restore mongodb works fine.

Once I change the percona-backup-mongodb to the new 2.6.0 or 2.7.0 version, I get the following error:

status:
  error: "failed to ensure snapshot file 2024-11-06T10:10:24Z/rsmain/metadata.json:
    get S3 object header: NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor
    verbose messaging see aws.Config.CredentialsChainVerboseErrors"

And I want to add that PerconaServerMongoDBBackup works fine in 2.6.0. And if I use pbm 2.6.0 from console in Virtual Machine, and set the same configuration, credentials, restore works fine.

Only PerconaServerMongoDBRestore is affected.

Expected Result:

PerconaServerMongoDBRestore works fine with pbm 2.6.0 version

1 Like