Hello,
I’m a newbie trying to install MongoDB Community Edition on Ubuntu (20.04.3 LTS, focal). Upon running sudo systemctl status mongod
, I got the following error:
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Mon 2021-10-04 17:00:14 EDT; 11s ago
Docs: https://docs.mongodb.org/manual
Process: 30695 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=dumped, signal=ILL)
Main PID: 30695 (code=dumped, signal=ILL)
Oct 04 17:00:13 MattSFF systemd[1]: Started MongoDB Database Server.
Oct 04 17:00:14 MattSFF systemd[1]: mongod.service: Main process exited, code=dumped, status=4/ILL
Oct 04 17:00:14 MattSFF systemd[1]: mongod.service: Failed with result 'core-dump'.
Before doing so, I followed the installation instructions. I did not modify any ulimit settings, since on "ulimit page’ it says
“If you installed MongoDB via a package manager such as
yum
orapt
, the service file installed as part of your installation already contains these ulimit values.” (the required/suggested values for MongoDB).
I also did not change the user account nor touch the configuration file.
After encountering this error, I searched these forums and found a post about a similar problem, which suggested that a solution was to follow the " Uninstall MongoDB Community Edition" instructions here, and do a fresh resinstall, which I did. However, I am still getting the same error message.
For reference, this is the output of my config file:
# 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:
# 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:
Also, for reference, when I run ls -ld /var/lib/mongodb /var/log/mongodb/
, this is the output:
drwxr-xr-x 2 mongodb mongodb 4096 Oct 4 16:59 /var/lib/mongodb
drwxr-xr-x 2 mongodb mongodb 4096 Oct 4 16:59 /var/log/mongodb/
Can anybody help me? Thank you!