Hello, I have installed Vagrant and VirtualBox as guided but now I’m stuck at the moment where I’ve been asked to start mongod with a config file. The error is logged:
So when I go check logs I see this:
And here are my permissions for the stuff inside /data/ directory:
I’ve tried to:
- change the ownership to mongodb;
- execute mongod with sudo;
- execute chmod +w on /db/ directory;
Nothing seems to work so far. But the server starts up perfectly fine if I type the options right in the shell instead of using the configuration file. Please help me to solve this the right way. Changing chmod to 777 of the db directory is not an option and is wrong approach, please don’t suggest me to do this.