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

Error in connecting to mongodb (mongodb-linux-x86_64-2.8.0-rc5) : auth failed, when starting nodejs appserver

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.8.0-rc4, 2.8.0-rc5
    • Component/s: Admin, Security
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      STEPS:
      1. Upgraded mongodb 2.4 --> 2.6 and I am able to start my nodejs app server without any issue.
      2. Upgraded the mongodb 2.6 --> 2.8 and set it up to use wiredTiger storage Engine.
      3. Created the user in the test db and authenticated it successfully.
      4. Tried to start the nodejs app server.

      RESULT:
      It fails with the following error. But if I remove the authentication part, it starts up fine. I tried with MMAPv1 as well and it still fails with the same error. I posted this issue in stackoverflow but did not get any answer. Since this is public I can only post very limited information. If you need more information, please let me know, I can email to you.

       2015-01-16T18:43:51.115Z <warn> globals.js:45 () MONGO URI = mongodb://myuser:password@localhost:27017/test
       2015-01-16T18:43:51.178Z <error> globals.js:45 () #### Error in connecting to mongodb
       2015-01-16T18:43:51.180Z <error> globals.js:45 () { [MongoError: auth failed] name: 'MongoError', ok: 0, errmsg: 'auth failed', code: 18 }
       2015-01-16T18:43:51.182Z <error> globals.js:45 () MongoError: auth failed
      

        1. SERVER-16971-mongodb-logs.txt
          21 kB
        2. SERVER-16971.txt
          8 kB

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            redrock Purnima Jayawardena
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: