Mongodb error

Hi
I got an error after installing mongodb package
ybt@ybt-XPS-13-9350:/var/log$ sudo systemctl status mongod
× mongod.service - MongoDB Database Server
Loaded: loaded (/usr/lib/systemd/system/mongod.service; disabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2026-02-22 11:11:09 CET; 4min 58s ago
Duration: 60ms
Docs: What is MongoDB? - Database Manual - MongoDB Docs
Process: 44747 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14)
Main PID: 44747 (code=exited, status=14)
CPU: 56ms

févr. 22 11:11:09 ybt-XPS-13-9350 systemd[1]: Started mongod.service - MongoDB Database Server.
févr. 22 11:11:09 ybt-XPS-13-9350 mongod[44747]: {"t":{"$date":"2026-02-22T10:11:09.777Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"main","msg":"Environment variable >
févr. 22 11:11:09 ybt-XPS-13-9350 systemd[1]: mongod.service: Main process exited, code=exited, status=14/n/a
févr. 22 11:11:09 ybt-XPS-13-9350 systemd[1]: mongod.service: Failed with result 'exit-code'.

How do you have MongoDB installed? Which instructions did you use?
I followed this guide and it seems to work:

https://docs.vultr.com/how-to-install-mongodb-on-ubuntu-24-04

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.