[SERVER-61753] Installation for Mongodb 5.0 is failing completely on Ubuntu 20.04 Created: 27/Nov/21  Updated: 06/Dec/22  Resolved: 06/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0.4
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Mariano Hurtado de Mendoza Assignee: Backlog - Triage Team
Resolution: Done Votes: 0
Labels: 20.04, apt, mongodb-org, ubuntu
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Triage
Operating System: ALL
Steps To Reproduce:
  1. Install mongodb 5.0 using apt and following the steps in the Installation Documentation.
  2. run "sudo systemctl start mongod"
Participants:

 Description   

Hello.

 

Recently I've installed mongodb-org version 5.0 and it seems to be failing completely after install. I followed every step for installing the mongodb-org package from the mongo apt repository. The only problem is that according to the mongodb installation instructions:

"If you installed via the package manager, the data directory /var/lib/mongodb and the log directory /var/log/mongodb are created during the installation."

 

but the log directory is never installed.

Because of this, mongod fails to start every time.

Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor prese>
Active: failed (Result: exit-code) since Sat 2021-11-27 08:11:41 CST; 5min>
Docs: https://docs.mongodb.org/manual
Process: 54490 ExecStart=/usr/bin/sudo /usr/bin/mongod --config /etc/mongod>
Main PID: 54490 (code=exited, status=1/FAILURE)



 Comments   
Comment by Edwin Zhou [ 06/Dec/21 ]

Hi mhurtado@devasolutions.net,

Thank you for your report. For this issue we'd like to encourage you to start by asking our community for help by posting on the MongoDB Developer Community Forums.

If the discussion there leads you to suspect a bug in the MongoDB server, then we'd want to investigate it as a possible bug here in the SERVER project.

Best,
Edwin

Comment by Mariano Hurtado de Mendoza [ 27/Nov/21 ]

Sorry, a small correction:

Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor prese>
Active: failed (Result: exit-code) since Sat 2021-11-27 08:11:41 CST; 5min>
Docs: https://docs.mongodb.org/manual
Process: 54490 ExecStart=/usr/bin/mongod --config /etc/mongod>
Main PID: 54490 (code=exited, status=1/FAILURE)

 

NOT:

Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor prese>
Active: failed (Result: exit-code) since Sat 2021-11-27 08:11:41 CST; 5min>
Docs: https://docs.mongodb.org/manual
Process: 54490 ExecStart=/usr/bin/sudo /usr/bin/mongod --config /etc/mongod>
Main PID: 54490 (code=exited, status=1/FAILURE)

Generated at Thu Feb 08 05:53:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.