Unable to execute any pbm commands

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!


1 Like

Hi @Tim_Heckel,
Is this a single replica set or a shared cluster?
Can you try pbm status --mongodb-uri="mongodb://userAdmin:xxx@localhost:27017/ ?

1 Like

Hi Andrew - thank you - it is a replica set, the result of the standalone is unfortunately the same as the replica connection.

pbm status --mongodb-uri="mongodb://userAdmin:xxx@localhost:27017/admin?authSource=admin"

Perhaps an outlier here is that this cluster is running on k3 instead of k8, using MicroOS as the operating system. I use this project to create the cluster.

Thanks so much for any pointers!


1 Like