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

mongosh fails to start if reading config file fails

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: CLI Module
    • None
    • Not Needed
    • Iteration Fish, Iteration Grouper, Iteration Herring, Iteration Isopod

      Problem Statement/Rationale

      starting mongosh with no permissions to access config file makes mongosh exit with an error:

      AssertionError: You must pass either an "anonymousId" or a "userId".
      

      Steps to Reproduce

      • Remove rw access from config file: chmod u-rw ~/.mongodb/mongosh/config
      • Start mongosh: mongosh

      Expected Results

      mongosh starts and works

      Actual Results

      mongosh fails with an error

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: