I’m doing POC for the pbm backup & restore scenarios. I’ve 2 node replicaset and the following is the configuration details,
[root@05d7fd5bde83 ~]# mongo --version
Percona Server for MongoDB shell version v4.4.18-18
Build Info: {
“version”: “4.4.18-18”,
“gitVersion”: “436de76a8593f0207ba7352ca56ee5f5c52b0bb7”,
“openSSLVersion”: “OpenSSL 1.1.1k FIPS 25 Mar 2021”,
“modules”: ,
“allocator”: “tcmalloc”,
“environment”: {
“distarch”: “x86_64”,
“target_arch”: “x86_64”
}
}
[root@05d7fd5bde83 ~]# pbm version
Version: 2.3.0
Platform: linux/amd64
GitCommit: 3b1c2e263901cf041c6b83547f6f28ac2879911f
GitBranch: release-2.3.0
BuildTime: 2023-09-20_14:42_UTC
GoVersion: go1.19
[root@05d7fd5bde83 ~]#
Trying to restore the backup and getting below given error,
[root@mongodb-test6 ~]# pbm restore --time “2024-11-15T09:31:07”
Starting restore 2024-11-15T11:39:38.359619899Z to point-in-time 2024-11-15T09:31:07 from ‘2024-11-14T09:44:16Z’…Error: check mongod binary: run: exec: “mongod”: executable file not found in $PATH. stderr:
Restore on replicaset “rs1” in state: error: check mongod binary: run: exec: “mongod”: executable file not found in $PATH. stderr:
[root@mongodb-test6 ~]#
Please Use PBM 2.6 and psmdb 6 for better support from you developers. MongoDB 5.0 was deprecated October 2024 (last month).
Secondly, your error message suggests that PBM could not find PSMDB dependency package which provides mongod binary. Could you please confirm if server mongodb-test6 has mongod binary available? PBM uses that for stopping and stratning mongod processes througout the restore process.
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.