Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61753

Installation for Mongodb 5.0 is failing completely on Ubuntu 20.04

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 5.0.4
    • Component/s: None
    • Server Triage
    • ALL
      1. Install mongodb 5.0 using apt and following the steps in the Installation Documentation.
      2. run "sudo systemctl start mongod"

      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)

            Assignee:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            mhurtado@devasolutions.net Mariano Hurtado de Mendoza
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: