[SERVER-14768] MongoDB crash and refuse to start again Created: 01/Aug/14  Updated: 10/Dec/14  Resolved: 01/Aug/14

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

Type: Bug Priority: Major - P3
Reporter: Pablo Vilas Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ArchLinux 3.15.7-1 SMP PREEMPT x86_64


Attachments: Text File mongoerror.txt    
Operating System: Linux
Steps To Reproduce:

Sorry, I don't know how to reproduce this

Participants:

 Description   

Mongo db crashes in normal use and refuse to start again. Please check attached file.



 Comments   
Comment by Asya Kamsky [ 01/Aug/14 ]

There is no way for us to know what happened to your journal directory, all that's visible from the logs is that it was suddenly not accessible.

2014-08-01T16:54:32.709-0300 [journal] exception in dur::groupCommitLL causing immediate shutdown: boost::filesystem::current_path: No such file or directory

If this should happen again, please reopen the case and provide all system information you can collect about the file system and OS state as well as contents of dmesg and current state of the data/db directory including all permissions, file info, etc.

Asya

Comment by Pablo Vilas [ 01/Aug/14 ]

Sorry, why this is marked as resolved?. Thanks

Comment by Pablo Vilas [ 01/Aug/14 ]

As I need the mongodb the only way to get it working again was deleting the content of the folder /data/db, but before that I checked and the directory was there and also the journal directory. FYI I changed the permission of the directory using chmod 777. Thanks.

Comment by Ramon Fernandez Marina [ 01/Aug/14 ]

pablovilas, there are two messages in the log that seem to indicate that (part of) your dbpath is either no longer there or no longer accessible:

2014-08-01T16:54:32.709-0300 [journal] exception in dur::groupCommitLL causing immediate shutdown: boost::filesystem::current_path: No such file or directory
...
2014-08-01T16:57:51.273-0300 Assertion failure getcwd(buffer, 1000) src/mongo/db/server_options_helpers.cpp 355

Can you check whether your dbpath exists, everything in it has the right permissions, and there's a journal directory?

Generated at Thu Feb 08 03:35:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.