<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:32:36 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-33188] WiredTiger.wt, connection: read checksum error for 4096B block</title>
                <link>https://jira.mongodb.org/browse/SERVER-33188</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Same problem as &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28555&quot; title=&quot;WiredTiger.wt, connection: read checksum error for 4096B block&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28555&quot;&gt;&lt;del&gt;SERVER-28555&lt;/del&gt;&lt;/a&gt; reported by Edgars Beigarts.&lt;/p&gt;

&lt;p&gt;Our system went down due to an electrical blackout. Since then I cannot restart mongo, I get an error &quot;WiredTiger.wt, connection: read checksum error for 4096B block&quot; when I try to start it.&lt;/p&gt;

&lt;p&gt;mongod -repair fails with same error. &lt;br/&gt;
I also  tried to repair WiredTiger.wt file with the following command :&lt;br/&gt;
./wt -v -R -h/data/mongodb salvage WiredTiger.wt&lt;br/&gt;
But it also fails with the same error.&lt;br/&gt;
It looks like WiredTiger.wt file is truncated.&lt;/p&gt;

&lt;p&gt;Is there any tool capable to fix this ? Can you help me to repair this file ?&lt;/p&gt;

&lt;p&gt;Thanks &lt;br/&gt;
Paule&lt;/p&gt;</description>
                <environment>Debian Stretch</environment>
        <key id="494310">SERVER-33188</key>
            <summary>WiredTiger.wt, connection: read checksum error for 4096B block</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="mark.agarunov">Mark Agarunov</assignee>
                                    <reporter username="plecuyer">Paule Lecuyer</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Feb 2018 13:00:31 +0000</created>
                <updated>Sun, 6 May 2018 22:48:19 +0000</updated>
                            <resolved>Fri, 9 Feb 2018 20:57:50 +0000</resolved>
                                    <version>3.2.11</version>
                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1884203" author="ramon.fernandez" created="Sun, 6 May 2018 22:48:19 +0000"  >&lt;p&gt;Apologies for the radio silence &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=plecuyer&quot; class=&quot;user-hover&quot; rel=&quot;plecuyer&quot;&gt;plecuyer&lt;/a&gt;, we let this one fall through the cracks. Given the corruption you experienced, unfortunately there was no way to do any further recovery of the data.&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19815&quot; title=&quot;Improved mongod --repair option for WiredTiger&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19815&quot;&gt;&lt;del&gt;SERVER-19815&lt;/del&gt;&lt;/a&gt; is open to attempt to do more in these cases, but the &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33188?focusedCommentId=1801449&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1801449&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;recommendations above&lt;/a&gt; are still the best approach.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1801898" author="plecuyer" created="Sat, 10 Feb 2018 06:57:37 +0000"  >&lt;p&gt;Hello Mark,&lt;/p&gt;

&lt;p&gt;We&apos;ll apply  your recommendations for the future,  but at present time unfortunately our backups are too old, and we haven&apos;t configured replication for it...&lt;br/&gt;
No way then to try to recover the db, even if its requires many operations ?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Paule&lt;/p&gt;</comment>
                            <comment id="1801449" author="mark.agarunov" created="Fri, 9 Feb 2018 20:57:41 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=plecuyer&quot; class=&quot;user-hover&quot; rel=&quot;plecuyer&quot;&gt;plecuyer&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Unfortunately, this error indicates that there was corruption on the disk, most often cause by a faulty storage layer. In this situation, our best recommendation would be to &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/resync-replica-set-member/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;resync the affected node&lt;/a&gt; or &lt;a href=&quot;https://docs.mongodb.com/manual/core/backups/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;restore from a backup&lt;/a&gt; if possible.&lt;/p&gt;

&lt;p&gt;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. &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Make sure your &lt;a href=&quot;https://docs.mongodb.com/manual/administration/production-notes/#disk-and-storage-systems&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;underlying storage is configured in an optimal way&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Schedule and perform regular checks of the integrity of your filesystems and disks.&lt;/li&gt;
	&lt;li&gt;Make sure to update MongoDB to the &lt;a href=&quot;https://docs.mongodb.com/manual/release-notes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;most recent version&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Never manipulate the underlying database files in any way while &lt;tt&gt;mongod&lt;/tt&gt; is running.&lt;/li&gt;
	&lt;li&gt;Always keep up to date &lt;a href=&quot;https://docs.mongodb.com/manual/core/backups/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;backups of your databases&lt;/a&gt; and verify that you have a process in place to restore them.&lt;/li&gt;
	&lt;li&gt;Use a &lt;a href=&quot;https://docs.mongodb.com/manual/replication/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;replica set&lt;/a&gt; for improved reliability.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1800429" author="plecuyer" created="Fri, 9 Feb 2018 07:13:38 +0000"  >&lt;p&gt;Thanks for your quick answering Mark,&lt;/p&gt;

&lt;p&gt;I did as you said, but got another error. It seems that sizeStorer.wt file is also corrupted. &lt;br/&gt;
I&apos;ve attached mongodb.log and sizeStorer.wt. &lt;/p&gt;

&lt;p&gt;Have a nice day.&lt;br/&gt;
Paule&lt;/p&gt;</comment>
                            <comment id="1799664" author="mark.agarunov" created="Thu, 8 Feb 2018 17:00:34 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=plecuyer&quot; class=&quot;user-hover&quot; rel=&quot;plecuyer&quot;&gt;plecuyer&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your report. I&apos;ve attached a repair attempt of the files you provided. Please extract these files and replace them in your &lt;tt&gt;$dbpath&lt;/tt&gt; and let us know if it resolves the issue. If you are still seeing errors after replacing these files, please provide the complete logs from the affected node(s) so that we can further investigate. Using systemd to stop mongod should perform a clean shutdown.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1799619" author="plecuyer" created="Thu, 8 Feb 2018 16:38:14 +0000"  >&lt;p&gt;After further investigations, it seems that mongodb corruption did not happen after electrical lockout, but after a &quot;normal&quot; system reboot. Just before rebooting, mongodb was heavily consuming CPU resources. &lt;/p&gt;

&lt;p&gt;Does the &quot;mongodb.service&quot; command uncleanly kill the mongo process, causing such corruption ?&lt;/p&gt;

&lt;p&gt;Paule.&lt;/p&gt;</comment>
                            <comment id="1799323" author="plecuyer" created="Thu, 8 Feb 2018 13:02:10 +0000"  >&lt;p&gt;I have attached the list of all files of mongodb data dir, and the WiredTiger* files&lt;br/&gt;
Paule.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="178309" name="broken_wt_db.tgz" size="2123" author="plecuyer" created="Thu, 8 Feb 2018 13:01:07 +0000"/>
                            <attachment id="178773" name="mongodb.log" size="13295" author="plecuyer" created="Fri, 9 Feb 2018 07:14:02 +0000"/>
                            <attachment id="178308" name="mongodb_files_list.txt" size="5064" author="plecuyer" created="Thu, 8 Feb 2018 13:01:01 +0000"/>
                            <attachment id="178327" name="repair-SERVER-33188.tar.gz" size="1512" author="mark.agarunov" created="Thu, 8 Feb 2018 16:59:53 +0000"/>
                            <attachment id="178772" name="sizeStorer.wt" size="16384" author="plecuyer" created="Fri, 9 Feb 2018 07:13:55 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 8 Feb 2018 17:00:34 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 40 weeks, 3 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 40 weeks, 3 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>mark.agarunov</customfieldvalue>
            <customfieldvalue>plecuyer</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htpws7:</customfieldvalue>

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

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

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