Mar 27 16:13:41 localhost systemd[1]: Started MongoDB Database Server.
Mar 27 16:13:42 localhost systemd[1]: mongod.service: Main process exited, code=exited, status=14/n/a
Mar 27 16:13:42 localhost systemd[1]: mongod.service: Failed with result 'exit-code'.
root@localhost:~# systemctl restart mongod
root@localhost:~# systemctl status mongod
mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2021-03-27 16:13:55 UTC; 1s ago
Docs: https://docs.mongodb.org/manual
Process: 8778 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14)
Main PID: 8778 (code=exited, status=14)
Mar 27 16:13:54 localhost systemd[1]: Started MongoDB Database Server.
Mar 27 16:13:55 localhost systemd[1]: mongod.service: Main process exited, code=exited, status=14/n/a
Mar 27 16:13:55 localhost systemd[1]: mongod.service: Failed with result 'exit-code'.
Tentative de solution : Changer de propriétaire
Commands Run
sudo chown -R mongodb:mongodb /var/lib/mongodb
sudo chown mongodb:mongodb /tmp/mongodb-27017.sock
sudo service mongod restart
sudo systemctl status mongod
L'échec persiste malgré les redémarrages et les changements de propriétaires.