[SERVER-40845] mongod shutting down . Created: 26/Apr/19  Updated: 26/Apr/19  Resolved: 26/Apr/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.7
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: khushal pahuja Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Hi

I am using mongo version 4.0.7 on ubutnu 18.04

my mongod shuts down with code 100 stating that /data/db not found but my /etc/mongod.conf file has a different dbPath . Is it a bug or there is some other file where conf is defined.

Thank you.

 

my mongod file is as follows -

 

 

GNU nano 2.9.3 mongod.conf
 
# mongod.conf
 
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
 
# Where and how to store data.
storage:
 dbPath: /var/lib/mongodb
 journal:
 enabled: true
# engine:
# mmapv1:
# wiredTiger:
 
# where to write logging data.
systemLog:
 destination: file
 logAppend: true
 path: /var/log/mongodb/mongod.log
 
# network interfaces
net:
 port: 27017
 bindIp: 127.0.0.1
 
 
# how the process runs
processManagement:
 timeZoneInfo: /usr/share/zoneinfo
 
#security:
 
#operationProfiling:
 
#replication:
 
#sharding:
 
## Enterprise-Only Options:
 
#auditLog:
 
#snmp:



 Comments   
Comment by Danny Hatcher (Inactive) [ 26/Apr/19 ]

Hello,

Please see our documentation on troubleshooting an Ubuntu install. In addition to those notes, a mongod process will not use a config file by default if its manually started via the command line. If you starting the process via the command line and you wish to use a config file, you must specify -f <path to config> like so:

mongod -f /etc/mongod.conf

The SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to a bug, I will now close it. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

Thanks,

Danny

Generated at Thu Feb 08 04:56:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.