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

MongoDb can't work without set dbpath command enabled

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.4
    • Component/s: None
    • Labels:
      None

      I upgraded my mongodb on ubuntu 16.04 from 3.6 to 4 and now I can't start my mongodb. Only if I run this command sudo mongod `--dbpath /var/lib/mongodb/ --journal` in separate tap and do not close my mongo works. Also I noticed this mongo does not use mongod.conf settings, because authorization is enabled but I still can log in without credentials. Every time when I am trying run mongo without dbpath, appears this error:

      MongoDB shell version v4.0.4
      connecting to: mongodb://127.0.0.1:27017
      2018-11-25T19:12:20.240+0600 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused :
      connect@src/mongo/shell/mongo.js:257:13
      @(connect):1:6
      exception: connect failed

            Assignee:
            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            Reporter:
            JohnLem82 John Lemon [X]
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: