Hi @Iliterallyneedhelp ,
Restore on replicaset “rs0” in state: error: check mongod binary: run: exec: “mongod”: executable file not found in $PATH. stderr:
The error means that pbm-agent performed pre-checks and couldn’t find mongod binary in its $PATH. The “actual” restore hasn’t started yet.
During Physical Restore, PBM agents shut down (remotely) the mongod process by sending db.adminCommand("shutdown")
, copies backup files to the dbpath, and exec mongod --dbpath=[...]
to perform “post-restore” actions.
Make sure:
- PBM Agent container has the same mongod binary as the PSMDB container. And its $PATH contains the mongod (i.e., pbm-agent can exec mongod process)
- PSMDB dbpath is mounted volume (i.e., it’s accessible for other containers)
- PBM Agent container has the same mounted volume as the PSMDB container (i.e., it can read/write the PSMDB dbpath content)
- PBM Agent is run under the same User ID or Group ID as the PSMDB mongod process (i.e., it has the same permissions for read/write for the dbpath)