<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:30:17 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-32451] Cannot start mongod with a missing wiredTiger database</title>
                <link>https://jira.mongodb.org/browse/SERVER-32451</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I cannot restart the mongo server when a wiredtiger file is missing. Ideally, I&apos;d like to drop/ignore this database allowing me to access any others.&lt;/p&gt;

&lt;p&gt;2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=30787 port=27018 dbpath=. 64-bit host=greg-laptop&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v3.2.17&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: 186656d79574f7dfe0831a7e7821292ab380f667&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; allocator: tcmalloc&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; modules: none&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build environment:&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;     distmod: ubuntu1604&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;     distarch: x86_64&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;     target_arch: x86_64&lt;br/&gt;
2017-12-21T17:14:15.690-0800 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; options: { net: &lt;/p&gt;
{ port: 27018 }
&lt;p&gt;, storage: &lt;/p&gt;
{ dbPath: &quot;.&quot;, directoryPerDB: true, engine: &quot;wiredTiger&quot; }
&lt;p&gt; }&lt;br/&gt;
2017-12-21T17:14:15.708-0800 W -        &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Detected unclean shutdown - ./mongod.lock is not empty.&lt;br/&gt;
2017-12-21T17:14:15.708-0800 W STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Recovering data from the last clean checkpoint.&lt;br/&gt;
2017-12-21T17:14:15.708-0800 I STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; wiredtiger_open config: create,cache_size=18G,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),&lt;br/&gt;
2017-12-21T17:14:16.230-0800 E STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; WiredTiger (2) &lt;span class=&quot;error&quot;&gt;&amp;#91;1513905256:230271&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;30787:0x7fd6533e5c80&amp;#93;&lt;/span&gt;, &lt;a href=&quot;file:tmp/collection-2-8425982379140367284.wt&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:tmp/collection-2-8425982379140367284.wt&lt;/a&gt;, WT_SESSION.open_cursor: ./tmp/collection-2-8425982379140367284.wt: handle-open: open: No such file or directory&lt;br/&gt;
2017-12-21T17:14:16.230-0800 E STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; no cursor for uri: table:tmp/collection-2-8425982379140367284&lt;br/&gt;
2017-12-21T17:14:16.230-0800 F -        &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Invalid access at address: 0x58&lt;br/&gt;
2017-12-21T17:14:16.237-0800 F -        &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Got signal: 11 (Segmentation fault).&lt;/p&gt;</description>
                <environment></environment>
        <key id="475491">SERVER-32451</key>
            <summary>Cannot start mongod with a missing wiredTiger database</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="3">Duplicate</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="stuppie">Greg</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Dec 2017 01:17:25 +0000</created>
                <updated>Fri, 26 Jan 2018 16:43:11 +0000</updated>
                            <resolved>Fri, 22 Dec 2017 01:38:49 +0000</resolved>
                                    <version>3.2.17</version>
                                                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1758422" author="stuppie" created="Fri, 22 Dec 2017 04:27:22 +0000"  >&lt;p&gt;For future googlers tearing their hair out. I managed to recover from this...&lt;/p&gt;

&lt;p&gt;Build and install wiredtiger: &lt;a href=&quot;http://source.wiredtiger.com/2.6.0/build-posix.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://source.wiredtiger.com/2.6.0/build-posix.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the mongodb dir: &lt;br/&gt;
$ wiredtiger/wt -v -h . -C &quot;extensions=&lt;span class=&quot;error&quot;&gt;&amp;#91;wiredtiger/ext/compressors/snappy/.libs/libwiredtiger_snappy.so&amp;#93;&lt;/span&gt;&quot; -R list&lt;br/&gt;
to get the collection names that its looking for. In this case: &lt;br/&gt;
table:MassDB_compil912/collection-24-7867037548174310433 and table:MassDB_compil912/collection-28-7867037548174310433&lt;/p&gt;

&lt;p&gt;Copy over .wt files from somewhere else and change the name to match these names, with a .wt extension at the end. I made a new empty db in another mongod, and then copied over these empty files&lt;/p&gt;

&lt;p&gt;$ wiredtiger/wt -v -h . -C &quot;extensions=&lt;span class=&quot;error&quot;&gt;&amp;#91;wiredtiger/ext/compressors/snappy/.libs/libwiredtiger_snappy.so&amp;#93;&lt;/span&gt;&quot; -R salvage table:MassDB_compil912/collection-24-7867037548174310433&lt;br/&gt;
$ wiredtiger/wt -v -h . -C &quot;extensions=&lt;span class=&quot;error&quot;&gt;&amp;#91;wiredtiger/ext/compressors/snappy/.libs/libwiredtiger_snappy.so&amp;#93;&lt;/span&gt;&quot; -R salvage table:MassDB_compil912/collection-28-7867037548174310433&lt;/p&gt;

&lt;p&gt;Then restarted mongod and dropped the dbs.&lt;/p&gt;

&lt;p&gt;Thanks in part to &lt;a href=&quot;http://www.alexbevi.com/blog/2016/02/10/recovering-a-wiredtiger-collection-from-a-corrupt-mongodb-installation/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.alexbevi.com/blog/2016/02/10/recovering-a-wiredtiger-collection-from-a-corrupt-mongodb-installation/&lt;/a&gt; as I&apos;d never have figure out this snappy extension shit...&lt;/p&gt;</comment>
                            <comment id="1758393" author="stuppie" created="Fri, 22 Dec 2017 02:42:57 +0000"  >&lt;p&gt;Thanks Kelsey,&lt;br/&gt;
I see this ticket was created more than two years ago. So to be clear, there is no way to recover from this and my only option is to start fresh? Is there a way to backup any other existing databases? I cannot use mongodump because I cannot start the mongod process, but I still have all of the other (non-corrupted) .wt files from the other databases...&lt;/p&gt;</comment>
                            <comment id="1758372" author="thomas.schubert" created="Fri, 22 Dec 2017 01:38:42 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=stuppie&quot; class=&quot;user-hover&quot; rel=&quot;stuppie&quot;&gt;stuppie&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the report. This improvement is tracked in &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;. Please feel free to vote for it and watch it for updates.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Kelsey&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="224556">SERVER-19815</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="174206" name="WiredTiger.wt" size="53248" author="stuppie" created="Fri, 22 Dec 2017 01:17:23 +0000"/>
                            <attachment id="174207" name="dump.txt" size="16590" author="stuppie" created="Fri, 22 Dec 2017 01:16:44 +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>Fri, 22 Dec 2017 01:38:42 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 7 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 7 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>stuppie</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htmrpr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htec0f:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;(In a clean, empty directory):&lt;br/&gt;
mongod --dbpath . --storageEngine wiredTiger --directoryperdb&lt;br/&gt;
(In another console):&lt;br/&gt;
mongo&lt;br/&gt;
&amp;gt;use tmp&lt;br/&gt;
&amp;gt;db.tmp.insert(&lt;/p&gt;
{&apos;a&apos;:4}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;Then, disconnect and stop the mongod process.&lt;/p&gt;

&lt;p&gt;Remove the folder &quot;tmp&quot; and its contents in the dbpath location.&lt;/p&gt;

&lt;p&gt;Restart mongod (same command as before)&lt;/p&gt;</customfieldvalue>

                        </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[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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