Mongod Won't Start as a Service under W2008 R2

776 views
Skip to first unread message

samuelt...@sbcglobal.net

unread,
Jun 27, 2013, 3:24:31 PM6/27/13
to mongod...@googlegroups.com
I can't get this to run as a service not matter what I try. I keep getting the error:
Windows could not start the Mongo DB service on local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.

here is the ImagePath entry in the registry:
"C:\Program Files\MongoDB\bin\mongod.exe" --config "C:\Program Files\MongoDB\mongod.cfg" --service 

Here is my mongod.cfg file:
bind_ip=10.103.124.235,127.0.0.1
logpath="c:\Program Files\MongoDB\log\mongo.log"
logappend
dbpath=d:\DL_DB

I can start it manually with all the same parameters and it runs:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Administrator>"\Program Files\MongoDB\bin\mongod.exe" --dbpath=d:\DL_DB
 --logpath="c:\Program Files\MongoDB\log\mongo.log" --bind_ip=10.103.124.235,127
.0.0.1 --logappend
all output going to: c:\Program Files\MongoDB\log\mongo.log

I am running mongodb-win32-x86_64-2008plus-2.4.4

Anybody have any idea what I'm missing here?

Thanks,
Sam

Asya Kamsky

unread,
Jun 29, 2013, 11:34:17 PM6/29/13
to mongod...@googlegroups.com
The format of logappend option in your config file is not correct.  It should be the same format as other lines (key=value)
Those that don't have an explicit value should be written as:
logappend=true

Asya

Antoine AKAP

unread,
Apr 22, 2014, 1:38:55 PM4/22/14
to mongod...@googlegroups.com
Asya Kamsky <asya@...> writes:

>
>
> The format of logappend option in your config file is not correct.  It
should be the same format as other lines (key=value)
> Those that don't have an explicit value should be written as:
> logappend=true
>
> AsyaOn Thursday, June 27, 2013 12:24:31 PM UTC-7, samuelt...-
rphTv4pjVZM...@public.gmane.org wrote:I can't get this to run as a
I had the same problem before. After several searches, it's occurred to me
to make sure I have manually create following folders:
- c:\Program Files\MongoDB\log\
- d:\DL_DB

After that, I run [Net start "MongoDB"] and it has worked.



q0paz

unread,
Dec 26, 2016, 3:33:59 AM12/26/16
to mongodb-user
Did you solve your problem ?
Reply all
Reply to author
Forward
0 new messages