I am getting this error constantly while i am trying to install mongod using a configuration file. So, I am looking at this tutorial on Pluralsight on mongodb. The person\'s pro
I faced the same problem while installing the MongoDB service by specifying the logpath
and dbpath
flags directly from the command line.
mongod --install --logpath='' --dbpath=''
It turned out that the logpath
and dbpath
values had to be wrapped inside double quotes (i.e. "") instead of single qoutes, or otherwise no quotes at all if the paths are without any spaces in the absolute directory path.
So the following did the trick for me:
mongod --install --logpath="" --dbpath=""
Notice the paths wrapped within double qoutes.