Article ID: 64536
Article Type: Troubleshooting
Last Modified:
A MongoDB snapshot backup operation fails with errors.
A MongoDB snapshot backup operation fails with the following errors in the MongoDBCtrl.log file on the secondary node:
6372 1ba0 01/21 13:49:13 455532 MongoDbIDA::MongoDbSnapBackup::UnQuiesceDB(428) - Failed to retrieve Oplog last entry timestamp for host [apple], port [27018]
Enable journaling on the MongoDB server, and then run the backup operation again. If the oplog timestamp must be collected for incremental backups, then journaling is required. If incremental backups are not required, then disable journaling and add the bEnableMongoOpLogDumps additional setting as explained in the following documentation page: https://documentation.commvault.com/commvault/v11_sp20/article?p=109482.htm After you add the additional setting, run a full snapshot backup operation.
Change the protocol version on the MongoDB server from 0 to 1. For example, run the following commands on the primary node of the replica set:
cfg = rs.conf()
cfg._id = "replica_set name"
cfg.protocolVersion = 1
cfg.members[0].priority = 1
cfg.members[1].priority = 1
cfg.members[2].priority = 1
cfg.members[0]._id = 0
cfg.members[1]._id = 1
cfg.members[2]._id = 2
cfg.members[0].host = "hostname_1:port_number_1"
cfg.members[1].host = "hostname_1:port_number_1"
cfg.members[2].host = "hostname_1:port_number_1"
rs.reconfig(cfg)