MongoDB Service Terminated Unexpectedly
Symptom
The MongoDB service does not stay running and stops after each startup.
Cause
The issue occurs when a database is corrupted. Corruption can happen when a server shuts down unexpectedly, because MongoDB does not have time to shut down safely.
Resolution
-
Using RDP, connect to the server that hosts the MongoDB service utilised by Change Tracker.
-
Through the Services screen, stop the MongoDB Server (MongoDB) service.
-
Through the Services screen, stop the World Wide Web Publishing Service.
NOTE: You can configure the Change Tracker web application and MongoDB to run on separate servers, so you may need to connect to a different server for this step.
-
Open a Command Prompt as an Administrator.
-
Enter the following commands in order:
cd "C:\Program Files\NNT Change Tracker Suite (Netcore)\Gen7\MongoDB\bin"mongod.exe --dbpath "C:\ProgramData\Change Tracker Generation 7 (Netcore)\MongoDB\db" --repairNOTE: The
--dbpathshown above is the default location that Change Tracker uses. If the db folder has been moved to another location, set the--dbpathvalue accordingly. -
Close the Command Prompt window.
-
If the repair was successful, through the Services screen, start the MongoDB Server (MongoDB) service, if it isn't running already.
-
Through the Services screen, start the World Wide Web Publishing Service.
-
Access the Change Tracker login screen and attempt to login to the application.