[SERVER-12502] When installing MongoDB as a Windows service, the --config argument is not quoted correctly if there are spaces in the path name Created: 28/Jan/14 Updated: 10/Dec/14 Resolved: 19/Mar/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 2.4.9 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Maurits Lourens | Assignee: | Mark Benvenuto |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | Windows | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 Pro, SP1 |
||
| Operating System: | Windows |
| Steps To Reproduce: | 1) Install MongoDB as a service using the following command 2) Attempt the start the MongoDB service using net start |
| Participants: |
| Description |
|
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. Steps to repro 2) Attempt the start the MongoDB service using net start Inspecting the ImagePath key in the registry at HKLM/System/CurrentControlSet/services/MongoDB/ImagePath reveals the following value: Note that the --config value is NOT quoted even though it was quoted on the command line when the service was installed. The work around for this issue to simply to install the config file in a path without spaces, such as "c:\mongo\mongod.conf". This issue is duplicate of https://jira.mongodb.org/browse/SERVER-5275 and https://jira.mongodb.org/browse/SERVER-4410. I created this issue again, because that issue has been closed, but it still happening with a later version. |
| Comments |
| Comment by Stennie Steneker (Inactive) [ 19/Mar/14 ] |
|
Hi Maurits, Given that we have thus far been unable to reproduce this issue, I'm going to close it out. If you have any further information that would help us reproduce the problem, please let us know. Thanks, |
| Comment by Mark Benvenuto [ 28/Jan/14 ] |
|
When I try your repro on 2.4.9, I get the following error: When I fix your example, the issue does not repro for me in 2.4.9. It also is correct in the registry: HKEY_LOCAL_MACHINE\System\CurrentControlSet\services\MongoDB DisplayName REG_SZ Mongo DB |