Printer FriendlyEmail Article Link

V2X Virtual: How to repair the MongoDB and solve the issue [initandlisten] WiredTiger metadata corruption detected ?

Objective/Summary
Starting MongoDB with --repair  e.g. after an unexpected Shutdown to repair the Mongo database.
 
Environment/Versions
  • Spirent C50 C-V2X
  • V2X Virtual

 
Procedure
Run the following command line after log in to the device via SSH:

mongod --dbpath /mnt/spirent/ttwb/v2xvirtual/data/mongodb --repair


Information about how to log in to the device via SSH can be found in the V2X Virtual User's Guide.
Notes

The corrupted state is usually reported in the mongo.log file e.g. like:
2022-06-09T15:46:50.609+0000 W  STORAGE  [initandlisten] Failed to start up WiredTiger under any compatibility version.
2022-06-09T15:46:50.609+0000 W  STORAGE  [initandlisten] WiredTiger metadata corruption detected
2022-06-09T15:46:50.609+0000 F  STORAGE  [initandlisten] Please read the documentation for starting MongoDB with --repair here:
http://dochub.mongodb.org/core/repair

 

Product : V2X Virtual