[SERVER-20729] Database with WT fails to start after clean shutdown (missing WiredTiger.wt) Created: 01/Oct/15 Updated: 16/Nov/21 Resolved: 05/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | WiredTiger |
| Affects Version/s: | 3.0.2, 3.0.3, 3.0.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Pocklington | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux 3.13.0-65-generic #105-Ubuntu SMP Mon Sep 21 18:50:58 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux |
||
| Operating System: | ALL |
| Steps To Reproduce: | 1. Start mongodb with WT (sudo service mongod start) |
| Participants: |
| Description |
|
This is not a file permission issue. Somehow after a clean shutdown the WiredTiger.wt file is missing and this means you cannot start mongodb again, effectively losing the database. I have seen this a few times since using wired tiger, on 3.0.2 and currently on 3.0.4 This is out /etc/fstab for /data partition: Here is the mongodb log:
|
| Comments |
| Comment by Ramon Fernandez Marina [ 06/Oct/16 ] | |||||||||||||||
|
guy.margalit@noobaa.com, this error message:
doesn't indicate a bug, but a problem in your installation: the WiredTiger.wt file is missing! As I wrote above, altering the contents of dbpath on a running system may lead to undefined behavior and is not a supported configuration. Same goes for any manual modification of WiredTiger files in any way. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. Thanks, | |||||||||||||||
| Comment by Guy Margalit [ 06/Oct/16 ] | |||||||||||||||
|
Still happens on Mac with mongodb v3.2.9.
| |||||||||||||||
| Comment by Ramon Fernandez Marina [ 05/Oct/15 ] | |||||||||||||||
|
Thanks for the update rpocklin. Please note that altering the contents of dbpath on a running system may lead to undefined behavior and is not a supported configuration. Same goes for any manual modification of WiredTiger files in any way. Also the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. See also our Technical Support page for additional support resources. Regards, | |||||||||||||||
| Comment by Robert Pocklington [ 05/Oct/15 ] | |||||||||||||||
|
Solved - before running 'mongorestore' we were deleting all files in '/data/db' and '/data/db/journal' explicitly. Mongorestore would work but seems the DB is in an inconsistent state if you try and restart. |