My mongoDB was normally running when it suddenly started to produce this error
{"t":{"$date":"2024-10-21T14:11:50.863+02:00"},"s":"I", "c":"NETWORK", "id":23018, "ctx":"listener","msg":"Error accepting new connection on local endpoint","attr":{"localEndpoint":"/tmp/mongodb-27017.sock","error":"Bad file descriptor"}}
This is my config
Where and how to store data.
storage:
dbPath: /var/lib/mongodb
journal:
enabled: true
# engine:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
path: /var/log/mongodb/mongod.log
logAppend: true
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1
# how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
security:
authorization: "enabled"
#operationProfiling:
#replication:
and this is how i run it
sudo mongod --config /etc/mongod.conf