On Sunday, July 15, 2012 5:25:40 AM UTC-4, Uberseehandel wrote:
> I am trying to set up Mongo DB as a service under Win XP sp3 (mongod says
> sp2), version 2.0.6 pdfile version 4.5
> To do this I have set up a config file -
> # mongodb.cfg
> # data directory
> dbpath = "C:\Documents and Settings\xxx\Ubiquiti UniFi\data\db"
> # log file directory
> logpath = "C:\logs\server.log"
> # append to log file
> logappend = true
> # port mongodb listens on
> port = 27117
> My command line is -
> "C:\Documents and Settings\Robin StClair\Ubiquiti UniFi\bin\mongod.exe"
> --config "C:\Documents and Settings\Robin StClair\Ubiquiti
> UniFi\conf\mongodb.cfg" --install
> as I wish to set up Mongo DB as a service.
> Mongod.exe executes, finds and opens the config file and then an errno:22
> is thrown and mongod.exe shuts down gracefully.
> I believe this is a Visual C++ error (doesn't like long command strings,
> hence my short path to log file (to see if that would get rid of the
> problem)).
> I would be grateful for some guidance
> R+C
Hi R+C,
I have tried to reproduce your problem but did not encounter the errno 22
error directly but might have replicated your problem and found a solution.
I used similar parameters you listed in configuration file:
dbpath="C:\Documents and Settings\a\xxx\Ubiquiti UniFi\data"
logpath=c:\log\mongo2.log
and I was also not able to successfully install mongod.exe as a service.
When I used this parameter in configuration file:
dbpath=C:\Documents and Settings\a\xxx\Ubiquiti UniFi\data (Note, without
the quotes)
logpath=c:\log\mongo2.log
I was able to successfully install mongod.exe as a service when I removed
the quotes.
Does this clarify the situation, or affect the error output?
Thanks,
andrew