<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:28:42 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-12502] When installing MongoDB as a Windows service, the --config argument is not quoted correctly if there are spaces in the path name</title>
                <link>https://jira.mongodb.org/browse/SERVER-12502</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>
&lt;p&gt;When installing MongoDB as a Windows Service, if the mongod.conf file is located in a path with spaces the service will not start correctly. Inspecting the ImagePath in the registry reveals that the --config path is not quoted correctly.&lt;/p&gt;

&lt;p&gt;Steps to repro&lt;br/&gt;
1) Install MongoDB as a service using the following command&lt;br/&gt;
&amp;gt; mongod.exe --config &quot;c:\Program Files\mongo\mongod.conf&quot; --install&lt;br/&gt;
The service will install successfully.&lt;/p&gt;

&lt;p&gt;2) Attempt the start the MongoDB service using net start&lt;br/&gt;
&amp;gt; net start &quot;Mongo DB&quot;&lt;br/&gt;
You&apos;ll receive &quot;The service is not responding to the control function&quot;. Errors in System log from the Service Control Manager include &quot;A timeout was reached (30000 milliseconds) while waiting for the Mongo DB service to connect&quot; and &quot;The Mongo DB service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.&quot;&lt;/p&gt;

&lt;p&gt;Inspecting the ImagePath key in the registry at HKLM/System/CurrentControlSet/services/MongoDB/ImagePath reveals the following value:&lt;br/&gt;
&quot;c:\mongo\bin\mongod.exe&quot; --config c:\program files\mongo\mongod.conf --service&lt;/p&gt;

&lt;p&gt;Note that the --config value is NOT quoted even though it was quoted on the command line when the service was installed.&lt;/p&gt;

&lt;p&gt;The work around for this issue to simply to install the config file in a path without spaces, such as &quot;c:\mongo\mongod.conf&quot;.&lt;/p&gt;

&lt;p&gt;This issue is duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5275&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-5275&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4410&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-4410&lt;/a&gt;. I created this issue again, because that issue has been closed, but it still happening with a later version.&lt;/p&gt;</description>
                <environment>Windows 7 Pro, SP1</environment>
        <key id="107930">SERVER-12502</key>
            <summary>When installing MongoDB as a Windows service, the --config argument is not quoted correctly if there are spaces in the path name</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="5">Cannot Reproduce</resolution>
                                        <assignee username="mark.benvenuto@mongodb.com">Mark Benvenuto</assignee>
                                    <reporter username="mslourens">Maurits Lourens</reporter>
                        <labels>
                            <label>Windows</label>
                    </labels>
                <created>Tue, 28 Jan 2014 08:14:18 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:50 +0000</updated>
                            <resolved>Wed, 19 Mar 2014 08:09:59 +0000</resolved>
                                    <version>2.4.9</version>
                                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="519030" author="stennie" created="Wed, 19 Mar 2014 08:09:59 +0000"  >&lt;p&gt;Hi Maurits,&lt;/p&gt;

&lt;p&gt;Given that we have thus far been unable to reproduce this issue, I&apos;m going to close it out.&lt;/p&gt;

&lt;p&gt;If you have any further information that would help us reproduce the problem, please let us know.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="488916" author="mark.benvenuto" created="Tue, 28 Jan 2014 18:45:28 +0000"  >&lt;p&gt;When I try your repro on 2.4.9, I get the following error:&lt;br/&gt;
&amp;gt; mongod--install --config &quot;c:\Program Files\mongo\mongod.conf&quot;&lt;br/&gt;
Tue Jan 28 13:42:53.365 --install has to be used with --logpath&lt;/p&gt;

&lt;p&gt;When I fix your example, the issue does not repro for me in 2.4.9.&lt;br/&gt;
D:\some log path&amp;gt;mongod --install --config &quot;c:\Program Files\mongo\mongod.conf&quot; --logpath &quot;d:\some log path\log3.log&quot;&lt;br/&gt;
Tue Jan 28 13:41:17.981 Trying to install Windows service &apos;MongoDB&apos;&lt;br/&gt;
Tue Jan 28 13:41:17.985 Service &apos;MongoDB&apos; (Mongo DB) installed with command line &apos;&quot;D:\some log path\mongod.exe&quot; --config &quot;c:\Program Files\mongo\mongod.conf&quot;&lt;br/&gt;
--logpath &quot;d:\some log path\log3.log&quot; --service&apos;&lt;br/&gt;
Tue Jan 28 13:41:17.985 Service can be started from the command line with &apos;net start MongoDB&apos;&lt;/p&gt;

&lt;p&gt;It also is correct in the registry:&lt;br/&gt;
reg query  HKLM\System\CurrentControlSet\services\MongoDB\&lt;/p&gt;

&lt;p&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\MongoDB&lt;br/&gt;
    Type    REG_DWORD    0x10&lt;br/&gt;
    Start    REG_DWORD    0x2&lt;br/&gt;
    ErrorControl    REG_DWORD    0x1&lt;br/&gt;
    ImagePath    REG_EXPAND_SZ    &quot;D:\some log path\mongod.exe&quot; --config &quot;c:\Program Files\mongo\mongod.conf&quot; --logpath &quot;d:\some log path\log3.log&quot; --service&lt;/p&gt;

&lt;p&gt;    DisplayName    REG_SZ    Mongo DB&lt;br/&gt;
    ObjectName    REG_SZ    LocalSystem&lt;br/&gt;
    Description    REG_SZ    Mongo DB Server&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 28 Jan 2014 18:45:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 48 weeks 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 48 weeks 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="10022"><![CDATA[Windows]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>mslourens</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm2uv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>98796</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;1) Install MongoDB as a service using the following command&lt;br/&gt;
&amp;gt; mongod.exe --config &quot;c:\Program Files\mongo\mongod.conf&quot; --install&lt;br/&gt;
The service will install successfully.&lt;/p&gt;

&lt;p&gt;2) Attempt the start the MongoDB service using net start&lt;br/&gt;
&amp;gt; net start &quot;Mongo DB&quot;&lt;/p&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|hsoyxr:</customfieldvalue>

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