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

Authorizing before running any command fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.3
    • Affects Version/s: 1.3.2
    • Component/s: Concurrency
    • None
    • Environment:
      Windows 7 64 Bit and Windows XP 64Bit
      db version v1.3.2, pdfile version 4.5
      Thu Feb 25 19:09:35 git version: a94e0b79b1e8640db475afc9d28aee75b6b8e519
      (running 64 bit version)

      Steps to reproduce:
      1 - start a new database mongod --dbpath c:/data/bug/
      2 - connect to the database and add a user to admin and disconnect
      3 - restart the database with the --auth option
      4 - connect to the database, switch to the admin database, and try to authorize (db.auth(...)) or try to getnonce;

      You should get an error:
      Thu Feb 25 19:06:08 Assertion failure getState() > 0 c:\work\buildslaves\windows_64bit_nightly\mongo\db\concurrency.h 109

      Once you are in this state, it is no longer possible to auth or getnonce without restarting the server.

      If you try to run a different command first, such as show users (which will give an authentication error) you can then proceed to authenticate successfully.

      This is not a problem in 1.2.3.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            karlseguin Karl Seguin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: