Restore on replicaset "rs1" in state: error: check mongod binary: run: exec: "mongod": executable file not found in $PATH. stderr:

Hi,

I see that you are running with containers. I also see that you have this pbm status output:

rs1/192.168.40.116:27017 [S]: pbm-agent v2.3.0 OK
rs1/192.168.40.124:27017 [P]: pbm-agent v2.3.0 OK

I do not know how you are hosting these processes, but if you are using containers:
Run pbm agent processes on the same container , or deploy a podman pod:

If you are using docker, you can use docker compose alternatively.

If you are running on VMs or bare metal servers, You’d have to deploy pbm CLI on one of the nodes. This will fix mongod missing package.

hope it helps.