Mongod is not starting, every looks file

This is my mongod.conf file, don’t know what’s happening can’t able to start mongo on AWS ec2, but the same process worked fine on my linux machine.

# mongod.conf

# for documentation of all options, see:

# Where and how to store data.
  dbPath: /var/lib/mongodb
#  engine:
#  wiredTiger:

# where to write logging data.
  destination: file
  logAppend: true
  path: /var/log/mongodb/mongod.log

# network interfaces
  port: 27017

# how the process runs
  timeZoneInfo: /usr/share/zoneinfo

  authorization: 'enabled'




## Enterprise-Only Options:



This is not enough information for us to be able to help you.

How do you start mongod?

The purpose of

is to be able to investigate what is happening. So it will be very useful to share it.

1 Like

make sure you have attached a disk large enough for data and that these two paths are accessible for mongod process (or change those paths suitably):

  • /var/lib/mongodb
  • /var/log/mongodb/mongod.log
1 Like