Article ID: 75665
Article Type: Troubleshooting
Last Modified:
If the MongoDB agent is installed on nodes using Ops Manager, the MongoDB granular recovery operation fails.
The MongoDB granular recovery fails, and the following error appears in the MongoDB.log file:
--port 59455 --host 127.0.0.1 --db "DUMPinc0" --out "/opt/commvault/iDataAgent/jobResults/2/650/33290/MongoDb3dfsMount/share414/DumpStore/Task1/BackupDbDump"] 102465 19050 05/23 19:25:11 33290 MongoDbIDA::MongoDbUtil::RunMongoCmd(1497) - Running cmd [mongodump --port 59455 --host 127.0.0.1 --db "DUMPinc0" --out "/opt/commvault/iDataAgent/jobResults/2/650/33290/MongoDb3dfsMount/share414/DumpStore/Task1/BackupDbDump"] 102465 19050 05/23 19:25:11 33290 CvProcess::system() - "/var/lib/mongodb-mms-automation/mongodb-linux-x86_64-5.0.8/bin//mongodump" --port 59455 --host 127.0.0.1 --db "DUMPinc0" --out "/opt/commvault/iDataAgent/jobResults/2/650/33290/MongoDb3dfsMount/share414/DumpStore/Task1/BackupDbDump" 2>&1 102465 19050 05/23 19:25:11 33290 CvProcess::system() - Command completed with rc=127 102465 19050 05/23 19:25:11 33290 MongoDbIDA::MongoDbUtil::RunMongoCmd(1577) - Error during execution of cmd [mongodump --port 59455 --host 127.0.0.1 --db "DUMPinc0" --out "/opt/commvault/iDataAgent/jobResults/2/650/33290/MongoDb3dfsMount/share414/DumpStore/Task1/BackupDbDump"] rc [127] out [/bin/sh: 1: /var/lib/mongodb-mms-automation/mongodb-linux-x86_64-5.0.8/bin//mongodump: not found ] 102465 19050 05/23 19:25:11 33290 MongoDbIDA::MongoDbUtil::DoMongodump(8379) - Failed to do oplog dump [/bin/sh: 1: /var/lib/mongodb-mms-automation/mongodb-linux-x86_64-5.0.8/bin//mongodump: not found
MongoDB granular recovery fails because the installation location for MongoDB binaries is different from the MongoDB database tools.
Copy the mongodump and the mongorestore binaries to the bin path and perform the restore operation.