<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:41:51 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-36043] systemd unit for mongod starts before multi.user target</title>
                <link>https://jira.mongodb.org/browse/SERVER-36043</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The &lt;tt&gt;mongod&lt;/tt&gt; service unit is configured to be part of the multi-user.target, but the unit configuration also has the following parameter:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;After=network.target&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Basically, this makes &lt;tt&gt;mongod&lt;/tt&gt; start just after the network is up and not during multi-user (one of the latest targets to trigger). This causes problems on those servers where there are network storage services or authentication services (like AD) still pending to start. &lt;tt&gt;mongod&lt;/tt&gt; would not be able to start if it depends on them.&lt;/p&gt;

&lt;p&gt;Removing the &lt;tt&gt;After&lt;/tt&gt; parameter would make systemd to start &lt;tt&gt;mongod&lt;/tt&gt; as part of the correct target. If an &lt;tt&gt;After&lt;/tt&gt; is needed for some reason, &lt;tt&gt;After=multi-user.target&lt;/tt&gt; would avoid most of the problems with dependencies between services.&lt;/p&gt;

&lt;p&gt;Affects all native packages (RPM and DEB) for systemd based Linux distros.&lt;/p&gt;</description>
                <environment></environment>
        <key id="569693">SERVER-36043</key>
            <summary>systemd unit for mongod starts before multi.user target</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="13201">Fixed</resolution>
                                        <assignee username="mathew.robinson@mongodb.com">Mathew Robinson</assignee>
                                    <reporter username="miguel.nieto@mongodb.com">Miguel Angel Nieto</reporter>
                        <labels>
                            <label>build-planned</label>
                    </labels>
                <created>Tue, 10 Jul 2018 09:45:05 +0000</created>
                <updated>Sun, 29 Oct 2023 22:29:59 +0000</updated>
                            <resolved>Wed, 8 Aug 2018 20:03:12 +0000</resolved>
                                                    <fixVersion>3.4.22</fixVersion>
                    <fixVersion>3.6.14</fixVersion>
                    <fixVersion>4.1.2</fixVersion>
                    <fixVersion>4.0.11</fixVersion>
                                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="2363965" author="connectingmedia" created="Fri, 9 Aug 2019 07:04:56 +0000"  >&lt;p&gt;@Mikko Tommila see SERVER 42603, which pointed out even worse problems with that change. And by now the change has been reverted and is expected to be released in 4.0.12.&lt;/p&gt;</comment>
                            <comment id="2363961" author="mikko.tommila@nitorcreations.com" created="Fri, 9 Aug 2019 06:57:40 +0000"  >&lt;p&gt;In a cloud deployment (e.g. AWS EC2) the cloud-init script runs before &quot;&lt;font color=&quot;#172b4d&quot;&gt;multi-user.target&lt;/font&gt;&quot;. If the cloud-init script depends on MongoDB already running, then this change breaks the functionality when upgrading from 4.0.10 to 4.0.11. In version 4.0.10 the cloud-init just works, but in 4.0.11 the cloud-init waits for MongoDB to be available, but it will never be available, as MongoDB now only starts after the cloud-init script finishes.&lt;/p&gt;</comment>
                            <comment id="2357594" author="connectingmedia" created="Mon, 5 Aug 2019 13:57:26 +0000"  >&lt;p&gt;This is frankly incorrect. And in itself breaks and creates a cyclic dependency on itself.&lt;/p&gt;

&lt;p&gt;&quot;After&quot; doesn&apos;t control to which start group a service belongs. &quot;WantedBy&quot; does. And that is already set to &quot;multi-user.target&quot;&lt;br/&gt;
Setting both &quot;After&quot; and &quot;WantedBy&quot; means mongod is supposed to start before &lt;b&gt;and&lt;/b&gt; after &quot;multi-user.target&quot;. Which in turn caused &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42603&quot; title=&quot;Recent service file change may cause cyclic dependencies&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42603&quot;&gt;&lt;del&gt;SERVER-42603&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The proper solution is that if you have services that need to start before mongod, add &quot;Before=mongod.service&quot; to their service files. The way mongod was started before was the recommended way and nothing needs to change. It is part of the correct start group and starting it after the &quot;network.target&quot; is also correct, because mongod needs networking to be available.&lt;/p&gt;

&lt;p&gt;So it was right before. And the misconfiguration is not on the Mongo side.&lt;/p&gt;</comment>
                            <comment id="2276194" author="xgen-internal-githook" created="Fri, 7 Jun 2019 17:55:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mathew Robinson&apos;, &apos;email&apos;: &apos;chasinglogic@gmail.com&apos;, &apos;username&apos;: &apos;chasinglogic&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36043&quot; title=&quot;systemd unit for mongod starts before multi.user target&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36043&quot;&gt;&lt;del&gt;SERVER-36043&lt;/del&gt;&lt;/a&gt; Start mongod after multi-user.target&lt;/p&gt;

&lt;p&gt;(cherry picked from commit a014dce43e6f55fd6611a865902e46b34953ad72)&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c1f294711b61ef5e582592230531cc1d6d720f2b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c1f294711b61ef5e582592230531cc1d6d720f2b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2276182" author="xgen-internal-githook" created="Fri, 7 Jun 2019 17:50:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mathew Robinson&apos;, &apos;email&apos;: &apos;chasinglogic@gmail.com&apos;, &apos;username&apos;: &apos;chasinglogic&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36043&quot; title=&quot;systemd unit for mongod starts before multi.user target&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36043&quot;&gt;&lt;del&gt;SERVER-36043&lt;/del&gt;&lt;/a&gt; Start mongod after multi-user.target&lt;/p&gt;

&lt;p&gt;(cherry picked from commit a014dce43e6f55fd6611a865902e46b34953ad72)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/495c48d81e6be6d876b7b2429a83a3ccf9de6fa5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/495c48d81e6be6d876b7b2429a83a3ccf9de6fa5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2276161" author="xgen-internal-githook" created="Fri, 7 Jun 2019 17:44:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mathew Robinson&apos;, &apos;email&apos;: &apos;chasinglogic@gmail.com&apos;, &apos;username&apos;: &apos;chasinglogic&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36043&quot; title=&quot;systemd unit for mongod starts before multi.user target&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36043&quot;&gt;&lt;del&gt;SERVER-36043&lt;/del&gt;&lt;/a&gt; Start mongod after multi-user.target&lt;/p&gt;

&lt;p&gt;(cherry picked from commit a014dce43e6f55fd6611a865902e46b34953ad72)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/39e93638435616be15ec31bb8863dbec6def9f36&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/39e93638435616be15ec31bb8863dbec6def9f36&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1970755" author="xgen-internal-githook" created="Wed, 8 Aug 2018 19:28:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Mathew Robinson&apos;, &apos;email&apos;: &apos;chasinglogic@gmail.com&apos;, &apos;username&apos;: &apos;chasinglogic&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36043&quot; title=&quot;systemd unit for mongod starts before multi.user target&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36043&quot;&gt;&lt;del&gt;SERVER-36043&lt;/del&gt;&lt;/a&gt; Start mongod after multi-user.target&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a014dce43e6f55fd6611a865902e46b34953ad72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a014dce43e6f55fd6611a865902e46b34953ad72&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="882818">SERVER-42603</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000glxQ2QAI]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 10 Jul 2018 19:11:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 26 weeks, 5 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 26 weeks, 5 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>ConnectingMedia</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mathew.robinson@mongodb.com</customfieldvalue>
            <customfieldvalue>miguel.nieto@mongodb.com</customfieldvalue>
            <customfieldvalue>mikko.tommila@nitorcreations.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu2bqv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htt2b3:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2442">Build 2018-08-13</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</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|hu1y07:</customfieldvalue>

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