Hi - I’ve installed the pbm backup agent via helm and have confirmed backups are getting saved to my s3 bucket, but I am unable to run any pbm command while running in the terminal on any of the backup-agents.
When I run pbm status like this:
pbm status --mongodb-uri="mongodb://userAdmin:xxx@localhost:27017/admin?replicaSet=rs0&authSource=admin"
I consistently get an unauthorized error like this (obviously I’m using the correct password):
Error: connect to mongodb: setup a new backups db: ensure cmd collection: (Unauthorized) not authorized on admin to execute command { create: "pbmCmd", capped: true, size: 1048576, lsid: { id: UUID("2740453e-daa1-43fc-af5a-70ece30da84c") }, $clusterTime: { clusterTime: Timestamp(1662409558, 2), signature: { hash: BinData(0, D368D32A3078885405C2CB9D2900A83C5A120495), keyId: 7102840975084486657 } }, $db: "admin", $readPreference: { mode: "primary" } }
I am able to connect to mongo using the same credentials from the same ssh session like this:
mongo "mongodb://userAdmin:xxx@localhost:27017/admin?replicaSet=rs0&authSource=admin"
And can create collections, etc.
I’d like to be able to list and restore backups…I appreciate any help!
Tim