Mongo DB invariant failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi All,

      I have installed linux VM in azure and attached a external disk(1024 GB) to it. when I tried to change the db path from /var/lib/mongo to /newdisk , I am not able to start mongo service. 

      Could you please help me with this.

       

       

      Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.
      [azureuser@campuseatingaiVmIisD01 /]$ systemctl status mongod.service
      ● mongod.service - MongoDB Database Server
       Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Thu 2020-01-16 15:17:24 UTC; 13s ago
       Docs: https://docs.mongodb.org/manual
       Process: 46976 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=1/FAILURE)
       Process: 46974 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
       Process: 46972 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
       Process: 46971 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
       Main PID: 46311 (code=exited, status=0/SUCCESS)
      

            Assignee:
            Carl Champain (Inactive)
            Reporter:
            Hemanth Vemula
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: