[SERVER-79560] Not able to restart mongodb server after deleting some log files Created: 01/Aug/23  Updated: 23/Aug/23  Resolved: 02/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Rambabu Mandalapu Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

We are using MongoDB shell version: 2.4.5 on Amazon Linux AMI release 2013.03.

  1. delete some old log files (files like somedb.1 , somedb.2...)
  2. stop mongo db server (service mongod stop)
  3. start mongo db server(service mongod start) - it was not starting showing error like Error#1
  4. Try to repair   by using this command  mongod --repair --dbpath /dbpath/db db --smallfiles
Participants:

 Description   

Hi ,

 

We are not able to restart MongoDb server after deleting old db log files.

getting below error -

While repairing  getting this error - Assertion failure isOk() src/mongo/db/pdfile.h 

While starting the server getting this error.

Starting mongod: about to fork child process, waiting until server is ready for connections.
all output going to: /var/log/mongo/mongod.log
forked process: 7578
ERROR: child process failed, exited with error number 100
                                                           [FAILED]

 

 



 Comments   
Comment by Yuan Fang [ 02/Aug/23 ]

Hi rambabumandalapu@gmail.com,

I'm glad to hear that the issue has been resolved. I'm going to close this ticket.

Just a quick heads up, MongoDB v2.4 reached the end of life in March 2016 and is no longer supported. We would recommend upgrading to v4.4+ for continued support.

Regards,
Yuan

Comment by Rambabu Mandalapu [ 01/Aug/23 ]

Issue has been resolved after changing the db log path.

Generated at Thu Feb 08 06:41:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.