<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:42:57 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-57853] Corrupted files: calculated block checksum doesn&apos;t match expected checksum</title>
                <link>https://jira.mongodb.org/browse/SERVER-57853</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We&apos;ve run into a massive issues with our database running on Windows Server 2019. For unknown reasons the data files has become corrupt and I&apos;m having major isssues trying to restore them.&lt;/p&gt;

&lt;p&gt;What I&apos;ve tried so far is to copy all the corrupt collection files one by one to a new mongodb instance and run the --repair command. Then I created a dump of the repaired collection, deleted the old corrupted collection on the original instance and restored it from the repaired dump.&lt;/p&gt;

&lt;p&gt;This did seem to solve the issues I had with the checksum error, but one of the collections got corrupted again, so it leads me to believe something is very wrong with the other files as well and not just the collections.&lt;/p&gt;

&lt;p&gt;Repairing the database was not a success and basically just killed the databse. Also tried to use the wiredtiger (wt) tool to salvage the data, but had no success in building the tool with snappy compression &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;What would be the best approach?&lt;/p&gt;

&lt;p&gt;Cheers&#160;&lt;/p&gt;

&lt;p&gt;Stefan&lt;/p&gt;</description>
                <environment></environment>
        <key id="1790353">SERVER-57853</key>
            <summary>Corrupted files: calculated block checksum doesn&apos;t match expected checksum</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="eric.sedor@mongodb.com">Eric Sedor</assignee>
                                    <reporter username="stefanbohlin@gmail.com">Stefan Bohlin</reporter>
                        <labels>
                            <label>ChecksumError</label>
                            <label>corrupt</label>
                            <label>repair</label>
                    </labels>
                <created>Sat, 19 Jun 2021 09:47:55 +0000</created>
                <updated>Thu, 15 Jul 2021 15:44:17 +0000</updated>
                            <resolved>Thu, 15 Jul 2021 15:44:17 +0000</resolved>
                                    <version>4.4.6</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3943854" author="eric.sedor" created="Thu, 15 Jul 2021 15:44:17 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stefanbohlin%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;stefanbohlin@gmail.com&quot;&gt;stefanbohlin@gmail.com&lt;/a&gt;, I&apos;m going to close this ticket. But we can revisit it if you are able to provide the information I&apos;ve requested. Thanks!&lt;/p&gt;</comment>
                            <comment id="3912987" author="eric.sedor" created="Thu, 1 Jul 2021 17:52:59 +0000"  >&lt;p&gt;HI &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stefanbohlin%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;stefanbohlin@gmail.com&quot;&gt;stefanbohlin@gmail.com&lt;/a&gt;, I wanted to check in to see if you saw my last comment. Are you able to provide this information?&lt;/p&gt;</comment>
                            <comment id="3892869" author="eric.sedor" created="Tue, 22 Jun 2021 22:05:02 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stefanbohlin%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;stefanbohlin@gmail.com&quot;&gt;stefanbohlin@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;It sounds like you&apos;ve already made a copy of the $dbpath directory to safeguard so that you can work off of the current $dbpath.&lt;/p&gt;

&lt;p&gt;The ideal resolution is to perform a clean &lt;a href=&quot;https://docs.mongodb.org/manual/tutorial/resync-replica-set-member/#automatically-sync-a-member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;resync&lt;/a&gt; from an unaffected node.&lt;/p&gt;

&lt;p&gt;It looks like the mongod.log you provided above is from the the first occurrence of this more recent corruption. Is that right? &lt;/p&gt;

&lt;p&gt;Can you please also provide:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;As much of syslog and dmesg content leading up to the first sign of corruption as possible.&lt;/li&gt;
	&lt;li&gt;the &lt;tt&gt;$dbpath/diagnostic.data&lt;/tt&gt; directory (the contents are described &lt;a href=&quot;https://docs.mongodb.com/manual/administration/analyzing-mongodb-performance/#full-time-diagnostic-data-capture&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;) from before the crash.&lt;/li&gt;
	&lt;li&gt;The logs of the repair operation.&lt;/li&gt;
	&lt;li&gt;The logs of an attempt to start mongod after the repair operation completed.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;If attaching to this ticket is a concern, I&apos;ve created &lt;a href=&quot;https://amphora.corp.mongodb.com/public/upload/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmb2xkZXJfaWQiOiIxMzk3MjQ5NzU4MTMiLCJleHAiOjE2MjY5OTE1ODB9.SIrdIIOsPSJpjY3ZEm2HEXEGHJNTD9lMriNu79Vbpao&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;an upload portal&lt;/a&gt; for you. Files here are only visible to MongoDB employees and are deleted after a time.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Eric&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="320991" name="WiredTiger.turtle" size="1304" author="stefanbohlin@gmail.com" created="Sat, 19 Jun 2021 09:33:27 +0000"/>
                            <attachment id="320990" name="WiredTiger.wt" size="753664" author="stefanbohlin@gmail.com" created="Sat, 19 Jun 2021 09:33:28 +0000"/>
                            <attachment id="320992" name="mongod.log" size="166786" author="stefanbohlin@gmail.com" created="Sat, 19 Jun 2021 09:32:06 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 22 Jun 2021 22:05:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 29 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 29 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>stefanbohlin@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hznf3j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hz7x87:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[eric.sedor@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzn1cn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>