<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:20:13 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-49551] Improve salvage functionality</title>
                <link>https://jira.mongodb.org/browse/SERVER-49551</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;There was an unexpectedly reboot on the server. And I don&apos;t have backups.&lt;/p&gt;

&lt;p&gt;Tried the&#160;&lt;em&gt;--repair&lt;/em&gt;&#160;option, but it doesn&apos;t help.&lt;/p&gt;

&lt;p&gt;What should I do?&lt;/p&gt;

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

&lt;p&gt;Failed to salvage WiredTiger metadata: -31809: WT_TRY_SALVAGE: database corruption detected&lt;br/&gt;
2020-07-16T17:44:52.484+0200 F - &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Fatal Assertion 50947 at src\mongo\db\storage\wiredtiger\wiredtiger_kv_engine.cpp 804&lt;br/&gt;
2020-07-16T17:44:52.485+0200 F - &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;***aborting after fassert() failure&lt;/p&gt;</description>
                <environment></environment>
        <key id="1412223">SERVER-49551</key>
            <summary>Improve salvage functionality</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-storage-engines">Backlog - Storage Engines Team</assignee>
                                    <reporter username="orshtar30@gmail.com">Or Shtar</reporter>
                        <labels>
                            <label>FA_50947</label>
                    </labels>
                <created>Thu, 16 Jul 2020 16:17:05 +0000</created>
                <updated>Tue, 6 Dec 2022 02:17:48 +0000</updated>
                                            <version>4.2.2</version>
                                                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="4085873" author="sadaf.cuagain@gmail.com" created="Mon, 27 Sep 2021 10:49:07 +0000"  >&lt;p&gt;i am having the same issue, could you please help?&lt;/p&gt;</comment>
                            <comment id="3309868" author="JIRAUSER1254420" created="Tue, 28 Jul 2020 14:18:29 +0000"  >&lt;p&gt;Got it, thank you.&lt;br/&gt;
Or.&lt;/p&gt;</comment>
                            <comment id="3309856" author="louis.williams" created="Tue, 28 Jul 2020 14:16:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=orshtar30%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;orshtar30@gmail.com&quot;&gt;orshtar30@gmail.com&lt;/a&gt;, the problem is that the storage devices you are using do not appear to be reliable in the event of an unexpected shutdown. All of Dmity&apos;s suggestions are ways you can introduce redundancy to avoid the single point of failure that is your storage device.&lt;/p&gt;</comment>
                            <comment id="3295982" author="JIRAUSER1254166" created="Wed, 22 Jul 2020 08:54:19 +0000"  >&lt;p&gt;These are all ways to keep the data safe, right? the problem in the wiredTiger files would have happened anyway because of the shutdown?&lt;/p&gt;</comment>
                            <comment id="3295979" author="dmitry.agranat" created="Wed, 22 Jul 2020 08:47:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=orshtar30%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;orshtar30@gmail.com&quot;&gt;orshtar30@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We are very glad to hear this.&lt;/p&gt;

&lt;p&gt;It is hard to tell what was the exact cause of this issue but there are several ways to avoid this in the future.&lt;/p&gt;

&lt;p&gt;To avoid a problem like this in the future, it is our strong recommendation to:&lt;/p&gt;
&lt;ul&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;.&lt;/li&gt;
	&lt;li&gt;Use 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;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;.&lt;/li&gt;
	&lt;li&gt;Have a process in place to restore backups.&lt;/li&gt;
	&lt;li&gt;Follow all &lt;a href=&quot;https://docs.mongodb.com/manual/administration/production-notes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;production notes&lt;/a&gt;, especially those for &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 systems&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;Never manipulate the underlying database files in any way.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Regards,&lt;br/&gt;
Dima&lt;/p&gt;</comment>
                            <comment id="3294391" author="JIRAUSER1254166" created="Tue, 21 Jul 2020 14:06:32 +0000"  >&lt;p&gt;It&apos;s working! Thank you so much!&lt;/p&gt;

&lt;p&gt;I would be happy to know what was the exact problem. also, what do you recommend me to do in order to prevent this from happening again and to protect my data better. I&apos;m very new to this so it would help a lot.&lt;/p&gt;

&lt;p&gt;Again, thank you!&#160;&lt;/p&gt;

&lt;p&gt;Or.&lt;/p&gt;</comment>
                            <comment id="3294352" author="dmitry.agranat" created="Tue, 21 Jul 2020 13:46:51 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=orshtar30%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;orshtar30@gmail.com&quot;&gt;orshtar30@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;ve attached a repair attempt of the files you provided as &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/270705/270705_SERVER-49551_repair_attempt.zip&quot; title=&quot;SERVER-49551_repair_attempt.zip attached to SERVER-49551&quot;&gt;SERVER-49551_repair_attempt.zip&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;. Please extract these files, replace them in your &lt;tt&gt;$dbpath&lt;/tt&gt;, and let us know if it resolves the issue.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What do you mean by it may not work? we cannot salvage the data or the whole mongoDB service won&apos;t work and we need to re-install it?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I assume we&apos;ll know the answer to that after trying the repair attempt.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Dima&lt;/p&gt;</comment>
                            <comment id="3293970" author="JIRAUSER1254166" created="Tue, 21 Jul 2020 08:21:21 +0000"  >&lt;p&gt;Hi Dima,&lt;/p&gt;

&lt;p&gt;I uploaded the files.&lt;/p&gt;

&lt;p&gt;What do you mean by it may not work? we cannot salvage the data or the whole mongoDB service won&apos;t work and we need to re-install it?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Or&lt;/p&gt;</comment>
                            <comment id="3293964" author="dmitry.agranat" created="Tue, 21 Jul 2020 08:14:37 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=orshtar30%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;orshtar30@gmail.com&quot;&gt;orshtar30@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Please attach copies of the &lt;tt&gt;wiredTiger.wt&lt;/tt&gt; and &lt;tt&gt;wiredTiger.turtle&lt;/tt&gt; files and we can attempt a metadata-only repair effort using internal tools.&lt;/p&gt;

&lt;p&gt;Keep in mind that this repair effort may not be successful, and that diagnosing corruption issues requires significant information and effort.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Dima&lt;/p&gt;</comment>
                            <comment id="3291320" author="JIRAUSER1254166" created="Sun, 19 Jul 2020 07:31:41 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I uploaded the log before repair, it shows the attempts of the mongo service to restart after the server shut down.&#160;&lt;/p&gt;

&lt;p&gt;The repair operation was not completed - the error I added above rose during the repair. I added a file &quot;repair.txt&quot; of the repair operation output to the cmd.&lt;/p&gt;

&lt;p&gt;I also added &quot;journal.zip&quot; of the WiredTiger logs.&lt;/p&gt;

&lt;p&gt;The server is not part of a replica set. I also have a copy of the data folder before the repair operation (after the shut down) if it is any good.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;edit&lt;/b&gt;: added a full log before the repair function (its very long).&lt;/p&gt;</comment>
                            <comment id="3291315" author="dmitry.agranat" created="Sun, 19 Jul 2020 06:15:42 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=orshtar30%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;orshtar30@gmail.com&quot;&gt;orshtar30@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Would  you please provide the following information?&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The full logs of the initial failure (prior to repair attempt)&lt;/li&gt;
	&lt;li&gt;The full logs of the repair operation.&lt;/li&gt;
	&lt;li&gt;The full logs of any attempt to start mongod after the repair operation completed.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Is this server a part of a replica set? &lt;/p&gt;

&lt;p&gt;I&apos;ve created a secure &lt;a href=&quot;https://10gen-httpsupload.s3.amazonaws.com/upload_forms/0561fd92-0413-4874-bcba-87882274f17e.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;upload portal&lt;/a&gt; for you. Files uploaded to this portal are visible only to MongoDB employees and are routinely deleted after some time.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Dima&lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                            <attachment id="270705" name="SERVER-49551_repair_attempt.zip" size="5783" author="dmitry.agranat@mongodb.com" created="Tue, 21 Jul 2020 13:46:42 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25135"><![CDATA[Storage Engines]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000rzYOiQAM]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 19 Jul 2020 06:15:42 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 19 weeks, 2 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 19 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-storage-engines</customfieldvalue>
            <customfieldvalue>dmitry.agranat@mongodb.com</customfieldvalue>
            <customfieldvalue>louis.williams@mongodb.com</customfieldvalue>
            <customfieldvalue>orshtar30@gmail.com</customfieldvalue>
            <customfieldvalue>shtaro@post.bgu.ac.il</customfieldvalue>
            <customfieldvalue>sadaf.cuagain@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxvat3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr7093:</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[dmitry.agranat@mongodb.com]]></customfieldvalue>
    

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

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