When connecting via compass, mongodb server is failing because of the lock

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Connectivity
    • None
    • None
    • None

      Problem Statement/Rationale

      When I connect to my database with compass, the server is failing, pymongo can not connect, saying connection refused, basically because it can't reach mongodb server.

      Steps to Reproduce

      Connect to same db with compass

      Expected Results

      What do you expect to happen?

      Actual Results

      What do you observe is happening?

      Additional Notes

      It can be fixed by removing lock and restarting `mongod`

       

      ```bashsudo rm /var/lib/mongodb/mongod.lock
      sudo mongod --repair
      sudo systemctl start mongod

      ```

        1. image-2021-11-23-14-06-41-395.png
          819 kB
          Mirkənan Kazımzadə

            Assignee:
            Unassigned
            Reporter:
            Mirkənan Kazımzadə
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: