[SERVER-36189] Not able to Start or Repair Mongo Server Created: 19/Jul/18  Updated: 27/Jul/18  Resolved: 19/Jul/18

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

Type: Bug Priority: Major - P3
Reporter: Jorge Luis Velazquez Assignee: Nick Brewer
Resolution: Done Votes: 0
Labels: envns, rpo, rps, trcf, wtc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: HTML File WiredTiger     File WiredTiger.turtle     File WiredTiger.wt     File repair-attempt.tar.gz    
Operating System: Windows
Steps To Reproduce:

mongod --repair --dbpath c:\data\db

Participants:

 Description   

Hello, i have a problem trying to run the mongo server, or even trying to repair, the issue was originated by a power failure, i hope you can help me

2018-07-17T12:03:20.008-0500 I CONTROL [main] Trying to start Windows service 'MongoDB'
2018-07-17T12:03:20.009-0500 I CONTROL [initandlisten] MongoDB starting : pid=460 port=27017 dbpath=c:/data/db 64-bit host=BasculaPTSLP
2018-07-17T12:03:20.009-0500 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2018-07-17T12:03:20.009-0500 I CONTROL [initandlisten] db version v3.4.9
2018-07-17T12:03:20.009-0500 I CONTROL [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] allocator: tcmalloc
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] modules: enterprise
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] build environment:
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] distmod: windows-64
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] distarch: x86_64
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] target_arch: x86_64
2018-07-17T12:03:20.010-0500 I CONTROL [initandlisten] options: { service: true, storage:

{ dbPath: "c:/data/db" }

, systemLog: { destination: "file", path: "c:/data/logs/log.txt" } }
2018-07-17T12:03:20.011-0500 I - [initandlisten] Detected data files in c:/data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-07-17T12:03:20.012-0500 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1480M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2018-07-17T12:03:21.181-0500 E STORAGE [initandlisten] WiredTiger error (0) [1531847001:181658][460:2002465664], file:WiredTiger.wt, WT_CURSOR.next: read checksum error for 20480B block at offset 81920: block header checksum of 1936024125 doesn't match expected checksum of 1413986004
2018-07-17T12:03:21.181-0500 E STORAGE [initandlisten] WiredTiger error (0) [1531847001:181658][460:2002465664], file:WiredTiger.wt, WT_CURSOR.next: WiredTiger.wt: encountered an illegal file format or internal value
2018-07-17T12:03:21.181-0500 E STORAGE [initandlisten] WiredTiger error (-31804) [1531847001:181658][460:2002465664], file:WiredTiger.wt, WT_CURSOR.next: the process must exit and restart: WT_PANIC: WiredTiger library panic
2018-07-17T12:03:21.181-0500 I - [initandlisten] Fatal Assertion 28558 at src\mongo\db\storage\wiredtiger\wiredtiger_util.cpp 361
2018-07-17T12:03:21.181-0500 I - [initandlisten]

***aborting after fassert() failure



 Comments   
Comment by Nick Brewer [ 19/Jul/18 ]

j_velazqueza Glad to hear it's working.

To prevent this type of problem in the future please take note of the following guidelines to help mitigate any issues related to unreliable storage layers or server failures:

Comment by Jorge Luis Velazquez [ 19/Jul/18 ]

Nick, i was able to Repair the Server, with the files that you send me.
Thank you so much.

Regards.

Comment by Nick Brewer [ 19/Jul/18 ]

j_velazqueza

I've attached the files after a repair attempt. Would you please extract these files, substitute them for the current ones in your $dbpath, and let us know if it resolves the issue?

Thanks,
Nick

repair-attempt.tar.gz

 

Comment by Jorge Luis Velazquez [ 19/Jul/18 ]

thank you for you response Nick, already attached the correct file.
Regards.

Comment by Nick Brewer [ 19/Jul/18 ]

j_velazqueza Could you upload the WiredTiger.wt file as well? I can see you attached a file simply called WiredTiger here but it doesn't contain much data. 

Thanks,

Nick

Generated at Thu Feb 08 04:42:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.