<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:11 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-2176] mongod does not start after package upgrade - misleading error messages!!</title>
                <link>https://jira.mongodb.org/browse/SERVER-2176</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Environment: Fedora 13 + mongo-stable-server == 1.6.4&lt;/p&gt;

&lt;p&gt;Symptom: /etc/init.d/mongod does not start the server after upgrading package via &apos;yum update mongod-stable-server&apos;&lt;/p&gt;

&lt;p&gt;Cause: all files under the $dbpath have &quot;root&quot; ownership - mongod bails out during start-up and does not report it correctly&lt;br/&gt;
Fix:    chown -R mongod:mongod $db_path&lt;/p&gt;

&lt;p&gt;BUG DESCRIPTION:&lt;/p&gt;

&lt;p&gt;there are two problems associated with this bug:&lt;/p&gt;

&lt;p&gt;Problem1) &lt;br/&gt;
your package-update installation script either changed the file-ownership under $db_path to root, or previous&lt;br/&gt;
mongod versions (&amp;lt;1.6.4) did not require those files to be owned by mongod  and the 1.6.4 install/upgrade script failed to &lt;br/&gt;
change file-ownership.&lt;/p&gt;

&lt;p&gt;Problem2) &lt;br/&gt;
there are two completely misleading error messages which need to be fixed:&lt;/p&gt;

&lt;p&gt;  1) /var/log/mongod.log   just mentions that mongod.lock file is still there.. this is pretty mis-leading!&lt;br/&gt;
     mongod should have written an error message during start-up complaining that the DB-files, &lt;br/&gt;
    lock files and subdirectories under $dbpath are not owned by the user running mongod!!!&lt;br/&gt;
     THAT is the correct error message in this case and should be mentioned in the mongod.log file!&lt;/p&gt;

&lt;p&gt;Tue Nov 23 16:19:40 MongoDB starting : pid=1818 port=63336 dbpath=/data/mongo/db 64-bit &lt;br/&gt;
Tue Nov 23 16:19:40 db version v1.6.4, pdfile version 4.5&lt;br/&gt;
Tue Nov 23 16:19:40 git version: 4f5c02f8d92ff213b71b88f5eb643b7f62b50abc&lt;br/&gt;
Tue Nov 23 16:19:40 sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&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: /data/mongo/db/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 23 16:19:40 exception in initAndListen std::exception: old lock file, terminating&lt;br/&gt;
Tue Nov 23 16:19:40 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 23 16:19:40 shutdown: going to close listening sockets...&lt;br/&gt;
Tue Nov 23 16:19:40 shutdown: going to flush oplog...&lt;br/&gt;
Tue Nov 23 16:19:40 shutdown: going to close sockets...&lt;br/&gt;
Tue Nov 23 16:19:40 shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Nov 23 16:19:40 shutdown: closing all files...&lt;br/&gt;
Tue Nov 23 16:19:40     closeAllFiles() finished&lt;/p&gt;


&lt;p&gt;     2) &quot;/etc/inid.d/mongod status&quot; merely says:  &lt;br/&gt;
        mongod dead but subsys locked&lt;/p&gt;

&lt;p&gt;        same thing.. misleading / not pointing to the root cause - It should at least say: &quot;check /var/log/mongod.conf for more information&quot;&lt;/p&gt;
</description>
                <environment>Fedora 13</environment>
        <key id="13872">SERVER-2176</key>
            <summary>mongod does not start after package upgrade - misleading error messages!!</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="miketheman">Michael A. Fiedler</assignee>
                                    <reporter username="tilo">Tilo S</reporter>
                        <labels>
                            <label>packaging</label>
                    </labels>
                <created>Mon, 6 Dec 2010 14:37:25 +0000</created>
                <updated>Tue, 21 Feb 2012 21:46:37 +0000</updated>
                            <resolved>Wed, 15 Feb 2012 06:08:25 +0000</resolved>
                                    <version>1.6.4</version>
                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="90514" author="miketheman" created="Tue, 21 Feb 2012 17:55:51 +0000"  >&lt;p&gt;Doc update request submitted, closing issue.&lt;/p&gt;</comment>
                            <comment id="88552" author="miketheman" created="Wed, 15 Feb 2012 06:08:25 +0000"  >&lt;p&gt;I have confirmed that the startup behavior of the current packages is as desired, along with retaining the correct permissions between package upgrades.&lt;/p&gt;

&lt;p&gt;I believe the only problem remaining would be to have the &quot;repair&quot; documentation updated to reflect verifying that permissions are preserved post-repair.&lt;/p&gt;</comment>
                            <comment id="27594" author="tilo" created="Sat, 2 Apr 2011 03:21:14 +0000"  >&lt;p&gt;this also happens by accident sometimes when a user does a &apos;mongod --repair&apos; as root, and then forgets to do a &apos;chown -R mongod:mongod  $dbpath&apos;&lt;/p&gt;</comment>
                            <comment id="21096" author="tilo" created="Mon, 6 Dec 2010 14:44:00 +0000"  >&lt;p&gt;I marked the bug as major, because this will silently affect running mongod systems in production!!! &lt;span class=&quot;error&quot;&gt;&amp;#91;beware!&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;e.g. long time after the &apos;yum update&apos; , when the system reboots the next time, mongod will fail to start up..&lt;/p&gt;

&lt;p&gt;This could severely break production systems which use mongod&lt;/p&gt;</comment>
                            <comment id="21095" author="tilo" created="Mon, 6 Dec 2010 14:39:17 +0000"  >&lt;p&gt;forgot to mention: I had the exact same problem on two FC13 desktop systems, as well as three FC13 Linodes after upgrading to the latest stable mongod (=1.6.4)&lt;/p&gt;

&lt;p&gt;one can assume that this affects all linux upgrades&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 21 Jan 2012 00:11:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 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, 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>miketheman</customfieldvalue>
            <customfieldvalue>tilo</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpanr:</customfieldvalue>

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

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

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