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

After an upgrade mongod will not start on reboot

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Upgrade/Downgrade
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      on Ubunt 18.04
      upgrade to new mongo packages.
      reboot, mongod will not have started.

      change file: /lib/systemd/system/mongod.server
      After=network.target

      to
      After=netword.target multi-user.target

      Reboot, mongod now starts.

      Show
      on Ubunt 18.04 upgrade to new mongo packages. reboot, mongod will not have started. change file: /lib/systemd/system/mongod.server After=network.target to After=netword.target multi-user.target Reboot, mongod now starts.
    • Sprint:
      Dev Platform 2020-01-13, Dev Platform 2020-01-27

      Description

      After a mongodb package update mongod fails to start on system reboot. After a reboot mongod tries to start then bails out with and error "code 48". See attached log file excerpt.

      I should note this only happens on update on 18.04. I have no similar issue on 16.04.

      The problem seems to be with the systemd config. If I add the additional target"multi-user.target" to the "After=network.target" mongod starts on reboot.

      I have looked at other incidents similar and the all relate to WiredTiger IIRC.

      It's a minor but annoying problem, especially if I forget to modify the service file after and upgrade.

      Mongodb version: 4.2.2
      Distro: Ubuntu 18.04
      CPU: AMD Ryzen6
      RAM: 32Gb

        Attachments

        1. mongod-log.txt
          2 kB
          Marshall Giguere

          Activity

            People

            Assignee:
            mathew.robinson Mathew Robinson (Inactive)
            Reporter:
            marsh.giguere@gmail.com Marshall Giguere
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: