As per the logs you shared, it states: "Main process exited, code=exited, status=14/n/a," which indicates that the MongoDB process exited with a status code of 14. In MongoDB, exit code14 typically indicates an unrecoverable error or an uncaught exception.
Could you share how you installed MongoDB, the version you are using, and whether you’re using Docker or similar? Also, please share the MongoDB configuration file. These details will help us to assist you better.
Hii Please find the conf file I have installed Mongo enterprise version 4.4 on centos8 linux
#mongod.conf
#for documentation of all options, see:
#http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
# engine:
# wiredTiger:
# how the process runs
processManagement:
fork: true
pidFilePath: /var/run/mongodb/mongod.pid
timeZoneInfo: /usr/share/zoneinfo
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
#security:
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options
#auditLog:
#snmp:
When you start the MongoDB server, it dynamically creates a socket file, typically named something like mongodb-27017.sock (with 27017 being the default MongoDB port). This file serves as a point of contact for client applications to connect to the MongoDB server, enabling data exchange and query execution.
sudo rm /tmp/mongodb-27017.sock
Restart MongoDB Service
To restart the MongoDB service, you can use the following command