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

Mongostat throws repeatedly with bad auth + discover combo

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.5.4
    • Component/s: Tools
    • Labels:
    • ALL

      running the following produces an error when the server is running with auth and a user forgets to provide username and password and uses discover

      mongostat --host bigbrock.local --port 4000 --discover
      
      connected to: bigbrock.local:4000
      Fri Dec 13 10:58:05.695 Assertion: 13111:field not found, expected type 2
      0x10ce5ca80 0x10ce31ffa 0x10ce31f3c 0x10c96fe3d 0x10c9747ed 0x10c976f76 0x10c976f32 0x10ce94ce1 0x7fff9001f899 0x7fff9001f72a 0x7fff90023fc9 
       0   mongostat                           0x000000010ce5ca80 _ZN5mongo15printStackTraceERSo + 64
       1   mongostat                           0x000000010ce31ffa _ZN5mongo11msgassertedEiPKc + 186
       2   mongostat                           0x000000010ce31f3c _ZN5mongo11msgassertedEiRKSs + 12
       3   mongostat                           0x000000010c96fe3d _ZNK5mongo11BSONElement3chkEi + 813
       4   mongostat                           0x000000010c9747ed _ZN5mongo4Stat12serverThreadEN5boost10shared_ptrINS0_11ServerStateEEEi + 2109
       5   mongostat                           0x000000010c976f76 _ZN5boost3_bi5list2INS0_5valueINS_10shared_ptrIN5mongo4Stat11ServerStateEEEEENS2_IiEEEclIPFvS7_iENS0_5list0EEEvNS0_4typeIvEERT_RT0_i + 54
       6   mongostat                           0x000000010c976f32 _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvNS_10shared_ptrIN5mongo4Stat11ServerStateEEEiENS2_5list2INS2_5valueIS8_EENSC_IiEEEEEEE3runEv + 34
       7   mongostat                           0x000000010ce94ce1 thread_proxy + 177
       8   libsystem_pthread.dylib             0x00007fff9001f899 _pthread_body + 138
       9   libsystem_pthread.dylib             0x00007fff9001f72a _pthread_struct_init + 0
       10  libsystem_pthread.dylib             0x00007fff90023fc9 thread_start + 13
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: