MrK
MrK

Reputation: 21

Why is my MongoDB Database Server failing to start with the 'Unrecognized option: storage.journal.enabled' error, and how can I resolve it?

× mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-10-18 10:42:27 UTC; 20min ago
Docs: https://docs.mongodb.org/manual
Main PID: 6847 (code=exited, status=2)
CPU: 32ms

Oct 18 10:42:27 ip-CENSORED systemd[1]: Started MongoDB Database Server.
Oct 18 10:42:27 ip-CENSORED mongod[6847]: Unrecognized option: storage.journal.enabled
Oct 18 10:42:27 ip-CENSORED mongod[6847]: try ‘/usr/bin/mongod --help’ for more information
Oct 18 10:42:27 ip-CENSORED systemd[1]: mongod.service: Main process exited, code=exited, stat>
Oct 18 10:42:27 ip-CENSORED systemd[1]: mongod.service: Failed with result ‘exit-code’.

Someone could help me?

I've tried to restart, i checked the logs and conf and nothing happened

Upvotes: 1

Views: 2464

Answers (1)

omid mesgarha
omid mesgarha

Reputation: 37

in mongo version 7, journal is removed from options. just remove it and its by default enabled

Upvotes: 1

Related Questions