Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1617

MongoshInternalError: [COMMON-90001] Mongosh not initialized yet

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0
    • Affects Version/s: None
    • Component/s: CLI Module
    • None
    • Environment:
      OS: Linux
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Iteration Wendiceratops

      Problem Statement/Rationale

      mongosh is unstable. Sometime script runs sometime gives error message

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      Steps to Reproduce

       

      {{[mongod@sctntusdb06 scripts]$
      [mongod@sctntusdb06 scripts]$
      [mongod@sctntusdb06 scripts]$ /opt/mongodb/mongosh/bin/mongosh -u $USER_NAME -p $PASSWORD --authenticationDatabase $DB_NAME --host $dbURI $AUTH_MECHANISM --quiet < /opt/mongodb/ops_admin/printSlaveReplicationInfo.js | tee $RsInfo
      SCTNTUSDB06:MongoDB40ReplSet:PRIMARY> Uncaught:
      MongoshInternalError: [COMMON-90001] Mongosh not initialized yet
      This is an error inside mongosh. Please file a bug report for the MONGOSH project here: https://jira.mongodb.org/projects/MONGOSH/issues.
      Please include the log file for this session (/local/home/mongod/.mongodb/mongosh/652e4da3950ef3cc09d6282c_log).
      SCTNTUSDB06:MongoDB40ReplSet:PRIMARY> [mongod@sctntusdb06 scripts]$
      [mongod@sctntusdb06 scripts]$
      [mongod@sctntusdb06 scripts]$
      [mongod@sctntusdb06 scripts]$ /opt/mongodb/mongosh/bin/mongosh -u $USER_NAME -p $PASSWORD --authenticationDatabase $DB_NAME --host $dbURI $AUTH_MECHANISM --quiet < /opt/mongodb/ops_admin/printSlaveReplicationInfo.js | tee $RsInfo
      {
      type: 'StatsResult',
      value: {
      'source: sctntusdb04.tdbank.ca:39017':

      { syncedTo: 'Tue Oct 17 2023 05:02:53 GMT-0400 (Eastern Daylight Time)', replLag: '0 secs (0 hrs) behind the primary ' }

      ,
      'source: sctntusdb05.tdbank.ca:39017': {
      syncedTo: 'Tue Oct 17 2023 05:02:53 GMT-0400 (Eastern Daylight Time)',
      replLag: '0 secs (0 hrs) behind the primary '
      },
      'source: batntusdb03.tdbank.ca:39017': {
      syncedTo: 'Tue Oct 17 2023 05:02:53 GMT-0400 (Eastern Daylight Time)',
      replLag: '0 secs (0 hrs) behind the primary '
      },
      'source: batntusdb04.tdbank.ca:39017': {
      syncedTo: 'Tue Oct 17 2023 05:02:53 GMT-0400 (Eastern Daylight Time)',
      replLag: '0 secs (0 hrs) behind the primary '
      }
      }
      }
      SCTNTUSDB06:MongoDB40ReplSet:PRIMARY> SCTNTUSDB06:MongoDB40ReplSet:PRIMARY> [mongod@sctntusdb06 scripts]$
      [mongod@sctntusdb06 scripts]$
      [mongod@sctntusdb06 scripts]$ }}

      Actual Results

      What do you observe is happening?

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            gregory.vinopal@mongodb.com Gregory Vinopal
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: