<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:09 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-2160] Mongodb reports successful start even when it fails to start</title>
                <link>https://jira.mongodb.org/browse/SERVER-2160</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When starting the daemon - there is no indication that the daemon fails to start except of course that you can&apos;t connect.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;11:00&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;andy@andy:~&amp;#93;&lt;/span&gt;$ sudo /etc/rc.d/mongodb start&lt;br/&gt;
:: Starting mongodb                                                                                                                                                                                        &lt;span class=&quot;error&quot;&gt;&amp;#91;DONE&amp;#93;&lt;/span&gt; &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;11:00&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;andy@andy:~&amp;#93;&lt;/span&gt;$ mongo&lt;br/&gt;
MongoDB shell version: 1.6.2&lt;br/&gt;
connecting to: test&lt;br/&gt;
Tue Nov 30 11:00:28 Error: couldn&apos;t connect to server 127.0.0.1} (anon):1137&lt;br/&gt;
exception: connect failed&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;11:00&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;andy@andy:~&amp;#93;&lt;/span&gt;$ more /var/log/mongod&lt;br/&gt;
Tue Nov 30 11:00:23 MongoDB starting : pid=4319 port=27017 dbpath=/var/state/mongodb 64-bit &lt;br/&gt;
Tue Nov 30 11:00:23 db version v1.6.2, pdfile version 4.5&lt;br/&gt;
Tue Nov 30 11:00:23 git version: nogitversion&lt;br/&gt;
Tue Nov 30 11:00:23 sys info: Linux andy 2.6.34-ARCH #1 SMP PREEMPT Mon Jul 5 22:12:11 CEST 2010 x86_64 BOOST_LIB_VERSION=1_43&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;
			&lt;ul&gt;
				&lt;li&gt;
				&lt;ul&gt;
					&lt;li&gt;
					&lt;ul&gt;
						&lt;li&gt;
						&lt;ul&gt;
							&lt;li&gt;
							&lt;ul&gt;
								&lt;li&gt;
								&lt;ul&gt;
									&lt;li&gt;
									&lt;ul&gt;
										&lt;li&gt;
										&lt;ul&gt;
											&lt;li&gt;
											&lt;ul&gt;
												&lt;li&gt;
												&lt;ul&gt;
													&lt;li&gt;
													&lt;ul&gt;
														&lt;li&gt;&lt;p&gt;old lock file: /var/state/mongodb/mongod.lock.  probably means unclean shutdown&lt;br/&gt;
recommend removing file and running --repair&lt;br/&gt;
see: &lt;a href=&quot;http://dochub.mongodb.org/core/repair&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://dochub.mongodb.org/core/repair&lt;/a&gt; for more information&lt;br/&gt;
*************&lt;br/&gt;
Tue Nov 30 11:00:23 exception in initAndListen std::exception: old lock file, terminating&lt;br/&gt;
Tue Nov 30 11:00:23  dbexit: &lt;/p&gt;&lt;/li&gt;
													&lt;/ul&gt;
													&lt;/li&gt;
												&lt;/ul&gt;
												&lt;/li&gt;
											&lt;/ul&gt;
											&lt;/li&gt;
										&lt;/ul&gt;
										&lt;/li&gt;
									&lt;/ul&gt;
									&lt;/li&gt;
								&lt;/ul&gt;
								&lt;/li&gt;
							&lt;/ul&gt;
							&lt;/li&gt;
						&lt;/ul&gt;
						&lt;/li&gt;
					&lt;/ul&gt;
					&lt;/li&gt;
				&lt;/ul&gt;
				&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Tue Nov 30 11:00:23 	 shutdown: going to close listening sockets...&lt;br/&gt;
Tue Nov 30 11:00:23 	 shutdown: going to flush oplog...&lt;br/&gt;
Tue Nov 30 11:00:23 	 shutdown: going to close sockets...&lt;br/&gt;
Tue Nov 30 11:00:23 	 shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Nov 30 11:00:23 	 shutdown: closing all files...&lt;br/&gt;
Tue Nov 30 11:00:23      closeAllFiles() finished&lt;/p&gt;

&lt;p&gt;Tue Nov 30 11:00:23  dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;Obviously, if you&apos;re starting things manually you can immediately check the log to see the reason (in this case, a power cut). but it&apos;d be a lot simpler to identify that something isn&apos;t right if the deamon script returned &lt;span class=&quot;error&quot;&gt;&amp;#91;FAIL&amp;#93;&lt;/span&gt; if it couldn&apos;t start.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure if the rc.d script falls directly under the main project - therefore apologies in advance if this is the wrong bug tracker to use.&lt;/p&gt;</description>
                <environment>Arch linux 64bit</environment>
        <key id="13824">SERVER-2160</key>
            <summary>Mongodb reports successful start even when it fails to start</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="richard.kreuter">Richard Kreuter</assignee>
                                    <reporter username="ad7six">Andy Dawson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Nov 2010 10:12:00 +0000</created>
                <updated>Mon, 19 May 2014 22:07:56 +0000</updated>
                            <resolved>Tue, 1 Mar 2011 21:10:54 +0000</resolved>
                                    <version>1.6.2</version>
                                                    <component>Packaging</component>
                                        <votes>1</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="25001" author="richard@10gen.com" created="Tue, 1 Mar 2011 21:10:54 +0000"  >&lt;p&gt;The Arch Linux script isn&apos;t maintained by 10gen anymore.  Please have a look at &lt;a href=&quot;http://bugs.archlinux.org&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://bugs.archlinux.org&lt;/a&gt; if you&apos;d like to follow up on this there.&lt;/p&gt;</comment>
                            <comment id="21360" author="ad7six" created="Mon, 13 Dec 2010 09:43:52 +0000"  >&lt;p&gt;A simple workaround for arch linux, edit your startup script replacing&lt;/p&gt;

&lt;p&gt;    if [ $? -gt 0 ]; then&lt;/p&gt;

&lt;p&gt;with&lt;/p&gt;

&lt;p&gt;    sleep 1;&lt;br/&gt;
    if [ -z `pidof /usr/bin/mongod` ]; then&lt;/p&gt;

&lt;p&gt;I.e. instead of  checking the return value - check that mongo has after 1second still got a pid&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 1 Mar 2011 21:10:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 51 weeks, 1 day 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 51 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ad7six</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpat3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21461</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|hszudb:</customfieldvalue>

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