[SERVER-31369] Fail Global Init - Failed to open /var/log/mongodb/mongod.log Created: 03/Oct/17 Updated: 07/Nov/17 Resolved: 03/Oct/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 3.0.15 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Karen J. Allen [X] | Assignee: | Mark Agarunov |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Debian linux |
||
| Participants: |
| Description |
|
I am getting errors starting Mongod v3.0.15 in Debian linux. I had changed the /etc/mongod.conf file to use smallFiles by addingmmapv1: smallFiles: true to the storage options. I now get the following error when I execute $mongod --config /etc/mongod.conf: ib1:/ 514 $ mongod --config /etc/mongod.conf 2017-10-03T12:14:21.183-0500 F CONTROL Failed global initialization: FileNotOpen Failed to open "/var/log/mongodb/mongod.log" The mongod.log file exists, and it is also defined in the mongod.conf file as in that directory. I am able to open the /var/log/mongodb/mongod.log file myself in the shell. It hasn't been written to in a long time (months) curiously. Thanks very much. |
| Comments |
| Comment by Mark Agarunov [ 03/Oct/17 ] |
|
Hello KarenJA, Thank you for the report. You may be seeing this error due to a permissions issue, please verify the permissions are set correctly for this file and the user running mongod has the ability to write to this file. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-user group. Thanks, |