Hello,
I have been working on this lab for 2 days now and I decided it’s time I asked for help.
I am doing the Different Logpath Lab and I am consistently getting the following error:
2019-03-14T19:01:23.563+0000 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open "/var/mongodb/db/mongod.log"
My configuration file is as follows:
systemLog:
destination: file
logAppend: true
path: /var/mongodb/db/mongod.log
storage:
dbPath: /var/mongodb/db
net:
port: 27000
bindIp: 127.0.0.1,192.168.103.100
security:
authorization: enabled
operationProfiling:
slowOpThresholdMs: 50
mode: slowOp
NOTE : I know I left out the fork configuration option, but I only did that so that there would be some terminal output regarding errors - and I got the one at the top of this post.
I was thinking it may be due to a lack of write permission, but I have used the following terminal command as instructed:
sudo chown vagrant:vagrant /var/mongodb/db
Please help,
Thank you