<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:47:01 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-59344] sudo systemctl start mongod fails after updating dbPath</title>
                <link>https://jira.mongodb.org/browse/SERVER-59344</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I am performing clean install on ubuntu 20.04.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Immediately after doing clean install i am removing following&lt;/p&gt;

&lt;p&gt;/var/lib/mongodb&lt;/p&gt;

&lt;p&gt;/var/log/mongodb&lt;/p&gt;

&lt;p&gt;Then I update /etc/mongod.conf file to new database path and log path&lt;/p&gt;

&lt;p&gt;Then I try to start mongod&#160; using following :&lt;/p&gt;

&lt;p&gt;sudo systemct start mongod and it fails&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;However it works if I use following command:&lt;/p&gt;

&lt;p&gt;sudo mongod --config /etc/mongod.conf&lt;/p&gt;

&lt;p&gt;Listing steps in following box.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1851405">SERVER-59344</key>
            <summary>sudo systemctl start mongod fails after updating dbPath</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="edwin.zhou@mongodb.com">Edwin Zhou</assignee>
                                    <reporter username="tesla1@pokemail.net">Tes La</reporter>
                        <labels>
                    </labels>
                <created>Sat, 14 Aug 2021 17:17:20 +0000</created>
                <updated>Mon, 11 Oct 2021 15:30:45 +0000</updated>
                            <resolved>Mon, 11 Oct 2021 15:30:45 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4115995" author="JIRAUSER1257066" created="Mon, 11 Oct 2021 15:30:45 +0000"  >&lt;p&gt;HI &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tesla1%40pokemail.net&quot; class=&quot;user-hover&quot; rel=&quot;tesla1@pokemail.net&quot;&gt;tesla1@pokemail.net&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We haven&#8217;t heard back from you for some time, so I&#8217;m going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket.&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="4099897" author="JIRAUSER1257066" created="Mon, 4 Oct 2021 16:11:11 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tesla1%40pokemail.net&quot; class=&quot;user-hover&quot; rel=&quot;tesla1@pokemail.net&quot;&gt;tesla1@pokemail.net&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We still need additional information to diagnose the problem. If this is still an issue for you, would you please run the commands above and attach the output to this ticket?&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="4066602" author="JIRAUSER1257066" created="Thu, 16 Sep 2021 17:53:32 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tesla1%40pokemail.net&quot; class=&quot;user-hover&quot; rel=&quot;tesla1@pokemail.net&quot;&gt;tesla1@pokemail.net&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;After running &lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;sudo systemctl start mongod&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;can you also run&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;sudo systemctl status mongod&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;and attach the output of that command to this ticket?&lt;/p&gt;

&lt;p&gt;In your reproduction steps, after creating a new directory, we typically change the owner of the new directory so MongoDB has access to it. Can you &lt;tt&gt;ls -l&lt;/tt&gt; the parent directory that contains your new directories you&apos;ve created and confirm that they have the correct ownership?&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="4038313" author="joel.sanson@clearstream.com" created="Fri, 3 Sep 2021 07:31:00 +0000"  >&lt;p&gt;&lt;ins&gt;&lt;b&gt;the bug is only at the documentation level.&lt;/b&gt;&lt;/ins&gt;&lt;/p&gt;

&lt;p&gt;the documentation should indicate that if a service is used to start/stop the mongodb engine and the default configurations like the dbpath, and pid log are non default values then the service should be also modified.&lt;/p&gt;</comment>
                            <comment id="4038305" author="joel.sanson@clearstream.com" created="Fri, 3 Sep 2021 07:13:36 +0000"  >&lt;p&gt;I deployed&#160; the Community Edition 4.4.8.&#160;&lt;/p&gt;

&lt;p&gt;i do have the same issue while i have installed it on RHEL 8.2 and i wanted to start it from a service of systemctl after having changed to non default data and log paths.&lt;/p&gt;

&lt;p&gt;the description of the service shows:&lt;/p&gt;

&lt;p&gt;sudo cat /etc/systemd/system/multi-user.target.wants/mongod.service&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Unit&amp;#93;&lt;/span&gt;&lt;br/&gt;
Description=MongoDB Database Server&lt;br/&gt;
Documentation=&lt;a href=&quot;https://docs.mongodb.org/manual&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual&lt;/a&gt;&lt;br/&gt;
After=network-online.target&lt;br/&gt;
Wants=network-online.target&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Service&amp;#93;&lt;/span&gt;&lt;br/&gt;
User=mongod&lt;br/&gt;
Group=mongod&lt;br/&gt;
Environment=&quot;OPTIONS=-f /etc/mongod.conf&quot;&lt;br/&gt;
EnvironmentFile=-/etc/sysconfig/mongod&lt;br/&gt;
ExecStart=/usr/bin/mongod $OPTIONS&lt;br/&gt;
ExecStartPre=/usr/bin/mkdir -p &lt;b&gt;/var/run/mongodb&lt;/b&gt;&lt;br/&gt;
ExecStartPre=/usr/bin/chown mongod:mongod &lt;b&gt;/var/run/mongodb&lt;/b&gt;&lt;br/&gt;
ExecStartPre=/usr/bin/chmod 0755 &lt;b&gt;/var/run/mongodb&lt;/b&gt;&lt;br/&gt;
PermissionsStartOnly=true&lt;br/&gt;
PIDFile=&lt;b&gt;/var/run/mongodb/mongod.pid&lt;/b&gt;&lt;br/&gt;
Type=forking&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;file size&lt;br/&gt;
LimitFSIZE=infinity&lt;/li&gt;
	&lt;li&gt;cpu time&lt;br/&gt;
LimitCPU=infinity&lt;/li&gt;
	&lt;li&gt;virtual memory size&lt;br/&gt;
LimitAS=infinity&lt;/li&gt;
	&lt;li&gt;open files&lt;br/&gt;
LimitNOFILE=64000&lt;/li&gt;
	&lt;li&gt;processes/threads&lt;br/&gt;
LimitNPROC=64000&lt;/li&gt;
	&lt;li&gt;locked memory&lt;br/&gt;
LimitMEMLOCK=infinity&lt;/li&gt;
	&lt;li&gt;total threads (user+kernel)&lt;br/&gt;
TasksMax=infinity&lt;br/&gt;
TasksAccounting=false&lt;/li&gt;
	&lt;li&gt;Recommended limits for mongod as specified in&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/ulimit/#recommended-ulimit-settings&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/ulimit/#recommended-ulimit-settings&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Install&amp;#93;&lt;/span&gt;&lt;br/&gt;
WantedBy=multi-user.target&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;in a nutshell, the service should be also amended to reflect the new locations.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="330154" name="mongo_uninstall.sh" size="1472" author="tesla1@pokemail.net" created="Sat, 14 Aug 2021 17:19:30 +0000"/>
                            <attachment id="330155" name="mongod.conf" size="667" author="tesla1@pokemail.net" created="Sat, 14 Aug 2021 18:09:29 +0000"/>
                            <attachment id="330156" name="mongod.service" size="751" author="tesla1@pokemail.net" created="Sat, 14 Aug 2021 18:42:13 +0000"/>
                    </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>Fri, 3 Sep 2021 07:13:36 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 17 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>edwin.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>joel.sanson@clearstream.com</customfieldvalue>
            <customfieldvalue>tesla1@pokemail.net</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzxr27:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzhvgf:</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;sudo apt-get purge mongodb-org*&lt;br/&gt;
sudo rm -rf /var/log/mongodb&lt;br/&gt;
sudo rm -rf /var/lib/mongodb&lt;br/&gt;
sudo rm -rf /mnt/talltimber/*&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;reboot&lt;/li&gt;
	&lt;li&gt;reinstall&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;wget -qO - &lt;a href=&quot;https://www.mongodb.org/static/pgp/server-5.0.asc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.org/static/pgp/server-5.0.asc&lt;/a&gt; | sudo apt-key add -&lt;br/&gt;
echo &quot;deb [ arch=amd64,arm64 ] &lt;a href=&quot;https://repo.mongodb.org/apt/ubuntu&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://repo.mongodb.org/apt/ubuntu&lt;/a&gt; focal/mongodb-org/5.0 multiverse&quot; | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list&lt;br/&gt;
sudo apt-get update&lt;br/&gt;
sudo apt-get install mongodb-org&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;remove default MONGODB LOCATION TO CONFIRM THAT THESE DIRECTORIES ARE NOT NEEDED&lt;br/&gt;
sudo rm -rf /var/lib/mongodb&lt;br/&gt;
sudo rm -rf /var/log/mongodb&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;create target directories for database, and log&lt;br/&gt;
mongodb_root=mongodb_elf&lt;br/&gt;
sudo rm -rf /mnt/talltimber/mongo*&lt;br/&gt;
mkdir /mnt/talltimber/$mongodb_root&lt;br/&gt;
mkdir /mnt/talltimber/$mongodb_root/lib&lt;br/&gt;
mkdir /mnt/talltimber/$mongodb_root/lib/mongodb&lt;br/&gt;
mkdir /mnt/talltimber/$mongodb_root/log&lt;br/&gt;
mkdir /mnt/talltimber/$mongodb_root/log/mongodb&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;modify /etc/mongod.conf as follows&lt;br/&gt;
storage:&lt;br/&gt;
 dbPath: &quot;/mnt/talltimber/mongodb_elf/lib/mongodb/&quot;&lt;br/&gt;
 journal:&lt;br/&gt;
 enabled: true&lt;/li&gt;
	&lt;li&gt;engine:&lt;/li&gt;
	&lt;li&gt;wiredTiger:&lt;br/&gt;
systemLog:&lt;br/&gt;
 destination: file&lt;br/&gt;
 logAppend: true&lt;br/&gt;
 path: &quot;/mnt/talltimber/mongodb_elf/log/mongodb/mongodb.log&quot;&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;following FAILS:&lt;br/&gt;
sudo systemctl start mongod&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;#Following works:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;start mongod as following (works)&lt;br/&gt;
sudo mongod --dbpath=/mnt/talltimber/$mongodb_root/lib/mongodb/ --logpath=/mnt/talltimber/$mongodb_root/log/mongodb/mongodb.log&lt;/li&gt;
	&lt;li&gt;or start as following (works)&lt;br/&gt;
sudo mongod --config /etc/mongod.conf&lt;/li&gt;
&lt;/ol&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[edwin.zhou@mongodb.com]]></customfieldvalue>
    

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

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