Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Start failing because of space in User folder name on Windows #147

Closed
BernardZhao opened this issue Dec 28, 2018 · 3 comments
Closed

Start failing because of space in User folder name on Windows #147

BernardZhao opened this issue Dec 28, 2018 · 3 comments

Comments

@BernardZhao
Copy link

BernardZhao commented Dec 28, 2018

So while trying to set up Parse, I ran these commands:

$ npm install -g mongodb-runner
$ mongodb-runner start

And got this error:

mongodb-runner:bin:mongodb-runner-worker.js Unexpected error. Exiting. { Error: Command failed: mongod --setParameter enableTestCommands=1 --port 27017 --dbpath C:\mongodb\data\standalone --logpath C:\Users\Bernard Zhao/.mongodb/runner/standalone.log

I did not find this error anywhere else after some Googling, and then tried running the command that failed by itself, and got this.

$ mongod --setParameter enableTestCommands=1 --port 27017 --dbpath C:\mongodb\data\standalone --logpath C:\Users\Bernard Zhao/.mongodb/runner/standalone.log
Invalid command: Zhao/.mongodb/runner/standalone.log

Which leads me to believe that the space in the name of my user folder on Windows caused start to fail. Is there any way that I can get around this? I would change the name of my user folder if I could, but there does not seem to be an easy way outside of reinstalling Windows 10. Any help would be appreciated!

@BernardZhao
Copy link
Author

BernardZhao commented Jan 9, 2019

I found a way around this simply by providing a custom argument to --logpath and --datapath.

@renielsalvador
Copy link

Hi. I think im having the same issue.

How did you resolved it? @BernardZhao

@khalili-mahdi
Copy link

just write some logpath outside of its normal path i used this command : mongodb-runner start --logpath D:\mongolog.log

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants