<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:46: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-17977] Removal / Upgrade fails on Debian / Ubuntu in combination with WiredTiger storage engine</title>
                <link>https://jira.mongodb.org/browse/SERVER-17977</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;First off, installing mongodb-org (3.0.1) worked without errors on&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Distributor ID: Debian&lt;br/&gt;
Description:    Debian GNU/Linux 7.8 (wheezy)&lt;br/&gt;
Release:        7.8&lt;br/&gt;
Codename:       wheezy&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Distributor ID: Ubuntu&lt;br/&gt;
Description:    Ubuntu 12.04.5 LTS&lt;br/&gt;
Release:        12.04&lt;br/&gt;
Codename:       precise&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Since I wanted to test the WiredTiger engine I had to change the configuration file format to yaml:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;root@debian:/etc# cat mongod.conf &lt;br/&gt;
systemLog:&lt;br/&gt;
   destination: file&lt;br/&gt;
   path: &quot;/var/log/mongodb/mongodb.log&quot;&lt;br/&gt;
   logAppend: true&lt;br/&gt;
storage:&lt;br/&gt;
   dbPath: &quot;/var/lib/mongodb&quot;&lt;br/&gt;
   engine: wiredTiger&lt;br/&gt;
   journal:&lt;br/&gt;
      enabled: true&lt;br/&gt;
processManagement:&lt;br/&gt;
   fork: true&lt;br/&gt;
net:&lt;br/&gt;
   bindIp: 127.0.0.1&lt;br/&gt;
   port: 27017&lt;br/&gt;
setParameter:&lt;br/&gt;
   enableLocalhostAuthBypass: true&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Now, the start script /etc/init.d/mongod fails because the PID it saves to &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;cat /var/run/mongod.pid &lt;br/&gt;
10142&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;is wrong - that PID does not exist.&lt;br/&gt;
And since the dpkg post-install and prerm scripts try to start / stop mongod they will fail and therefor any removal or upgrade to MongoDB 3.0.2 must also fail:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Unpacking replacement mongodb-org ...&lt;br/&gt;
Processing triggers for man-db ...&lt;br/&gt;
Setting up libdpkg-perl (1.16.16) ...&lt;br/&gt;
Setting up dpkg-dev (1.16.16) ...&lt;br/&gt;
Setting up mongodb-org-shell (3.0.2) ...&lt;br/&gt;
Setting up mongodb-org-server (3.0.2) ...&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;FAIL&amp;#93;&lt;/span&gt; Starting database: mongod failed!&lt;br/&gt;
invoke-rc.d: initscript mongod, action &quot;start&quot; failed.&lt;br/&gt;
dpkg: error processing mongodb-org-server (--configure):&lt;br/&gt;
 subprocess installed post-installation script returned error exit status 1&lt;br/&gt;
Setting up mongodb-org-mongos (3.0.2) ...&lt;br/&gt;
Setting up mongodb-org-tools (3.0.2) ...&lt;br/&gt;
dpkg: dependency problems prevent configuration of mongodb-org:&lt;br/&gt;
 mongodb-org depends on mongodb-org-server; however:&lt;br/&gt;
  Package mongodb-org-server is not configured yet.&lt;/p&gt;

&lt;p&gt;dpkg: error processing mongodb-org (--configure):&lt;br/&gt;
 dependency problems - leaving unconfigured&lt;br/&gt;
Errors were encountered while processing:&lt;br/&gt;
 mongodb-org-server&lt;br/&gt;
 mongodb-org&lt;br/&gt;
E: Sub-process /usr/bin/dpkg returned an error code (1)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Luckily, I was able to get a screenshot of what goes wrong:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;#35; ps -ef | grep mongodb&lt;br/&gt;
root      9951     2  0 08:49 ?        00:00:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;kworker/1:1&amp;#93;&lt;/span&gt;&lt;br/&gt;
mongodb  10142     1  0 08:51 ?        00:00:00 /usr/bin/mongod --config /etc/mongod.conf&lt;br/&gt;
mongodb  10144 10142  0 08:51 ?        00:00:00 /usr/bin/mongod --config /etc/mongod.conf&lt;br/&gt;
mongodb  10145 10144 12 08:51 ?        00:00:04 /usr/bin/mongod --config /etc/mongod.conf&lt;br/&gt;
root     10206  4584  0 08:52 pts/1    00:00:00 ps -ef&lt;br/&gt;
root@debian:/var/lib# kill 10142&lt;br/&gt;
bash: kill: (10142) - No such process&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When using a yaml style config file and the WiredTiger storage engine the MongoDB init script starts a process whose PID is written to /var/run/mongod.pid. This process then starts the real mongod and terminates itself so that the PID inside /var/run/mongod.pid is now defunct.&lt;/p&gt;

&lt;p&gt;An easy workaround is to edit the init script and paste these two lines into /etc/init.d/mongod:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt; start-stop-daemon --background --start --quiet --pidfile $PIDFILE \&lt;br/&gt;
                        --make-pidfile --chuid $DAEMONUSER \&lt;br/&gt;
                        --exec $NUMACTL $DAEMON $DAEMON_OPTS&lt;br/&gt;
            errcode=$?&lt;br/&gt;
&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35;&amp;#35; next two lines added by scsynergy&lt;br/&gt;
                sleep 5&lt;br/&gt;
                ps -ef | grep mongodb | grep -v grep | awk &apos;{print $2}&apos; &amp;gt; $PIDFILE&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;We now save the correct PID to file and starting / stopping works - but it is not a pretty solution, just a workaround hack which needs to be improved.&lt;/p&gt;</description>
                <environment></environment>
        <key id="195260">SERVER-17977</key>
            <summary>Removal / Upgrade fails on Debian / Ubuntu in combination with WiredTiger storage engine</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="-1">Unassigned</assignee>
                                    <reporter username="scsynergy">Ronald Feicht</reporter>
                        <labels>
                            <label>build-planning</label>
                    </labels>
                <created>Fri, 10 Apr 2015 11:48:04 +0000</created>
                <updated>Thu, 23 Apr 2015 20:58:07 +0000</updated>
                            <resolved>Thu, 23 Apr 2015 20:54:03 +0000</resolved>
                                    <version>3.0.1</version>
                    <version>3.0.2</version>
                                                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="879330" author="scsynergy" created="Mon, 13 Apr 2015 06:50:20 +0000"  >&lt;p&gt;Yes, removing the &apos;fork:true&apos; solves the issue. Thank you very much.&lt;/p&gt;

&lt;p&gt;You might want to consider changing what is written on this page&lt;br/&gt;
&lt;a href=&quot;http://docs.mongodb.org/manual/reference/configuration-options/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/configuration-options/&lt;/a&gt;&lt;br/&gt;
so others do not trip over the same problem. (I only copied my configuration from there)&lt;/p&gt;</comment>
                            <comment id="878093" author="ernie.hershey@10gen.com" created="Fri, 10 Apr 2015 13:31:08 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=scsynergy&quot; class=&quot;user-hover&quot; rel=&quot;scsynergy&quot;&gt;scsynergy&lt;/a&gt; - I believe the problem is the &quot;fork: true&quot; in your new configuration file, which the init script and upstart configuration expect to be false, as it is in the configuration file distributed with the packages. If you take that out or set &quot;fork: false&quot; does it work better?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="199960">DOCS-5269</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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>Fri, 10 Apr 2015 13:31:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 44 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>ernie.hershey@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 44 weeks, 2 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>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>scsynergy</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl8nj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs7z87:</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;Install MongoDB 3.0.1 change to WiredTiger storage engine - which means you have to switch to the yaml style configuration.&lt;br/&gt;
run&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;apt-get update &amp;amp;&amp;amp; apt-get upgrade mongodb-org&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;will result in the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Unpacking replacement mongodb-org ...&lt;br/&gt;
Processing triggers for man-db ...&lt;br/&gt;
Setting up libdpkg-perl (1.16.16) ...&lt;br/&gt;
Setting up dpkg-dev (1.16.16) ...&lt;br/&gt;
Setting up mongodb-org-shell (3.0.2) ...&lt;br/&gt;
Setting up mongodb-org-server (3.0.2) ...&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;FAIL&amp;#93;&lt;/span&gt; Starting database: mongod failed!&lt;br/&gt;
invoke-rc.d: initscript mongod, action &quot;start&quot; failed.&lt;br/&gt;
dpkg: error processing mongodb-org-server (--configure):&lt;br/&gt;
 subprocess installed post-installation script returned error exit status 1&lt;br/&gt;
Setting up mongodb-org-mongos (3.0.2) ...&lt;br/&gt;
Setting up mongodb-org-tools (3.0.2) ...&lt;br/&gt;
dpkg: dependency problems prevent configuration of mongodb-org:&lt;br/&gt;
 mongodb-org depends on mongodb-org-server; however:&lt;br/&gt;
  Package mongodb-org-server is not configured yet.&lt;/p&gt;

&lt;p&gt;dpkg: error processing mongodb-org (--configure):&lt;br/&gt;
 dependency problems - leaving unconfigured&lt;br/&gt;
Errors were encountered while processing:&lt;br/&gt;
 mongodb-org-server&lt;br/&gt;
 mongodb-org&lt;br/&gt;
E: Sub-process /usr/bin/dpkg returned an error code (1)&lt;/p&gt;&lt;/blockquote&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>
                                

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

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