Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8255

unable to get issuer certificate

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.44.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS: macOS 14.6.1
      node.js / npm versions: 20.16.0
      Additional info:
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      can not connect to some DBs showing unable to get issuer certificate error.

      Please be sure to attach relevant logs with any sensitive data redacted.
      ```

      _

      {"t":\{"$date":"2024-09-05T14:39:52.803Z"}

      ,"s":"D1","c":"Connection Attempt","id":1001000279,"ctx":"connect","msg":"connection attempt failed","attr":{"stack":"MongoServerSelectionError: unable to get issuer certificate\n    at S.selectServer (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:827511)\n    at async S.connect (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:825046)\n    at async S.connect (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:824246)\n    at async t (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:731543)\n    at async f._connect (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:731732)\n    at async f.connect (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/12.c2d6d57ebbacbc73a597.renderer.js:134:730338)\n    at async f (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/37.dd0abec6d55fb28b63fa.renderer.js:1:2036)\n    at async e.connectMongoClient (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/37.dd0abec6d55fb28b63fa.renderer.js:1:7655)\n    at async C (file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/index-11823014.74c918f2a7b648951e92.renderer.js:1:6526)\n    at async file:///Applications/MongoDB%20Compass.app/Contents/Resources/app.asar/build/index-11823014.74c918f2a7b648951e92.renderer.js:1:6851","name":"MongoServerSelectionError","message":"unable to get issuer certificate","code":null,"reason":{"type":"ReplicaSetNoPrimary","servers":{"global-dev-shard-00-00.lramz.mongodb.net:27017":{"address":"global-dev-shard-00-00.lramz.mongodb.net:27017","type":"Unknown","hosts":[],"passives":[],"arbiters":[],"tags":{},"minWireVersion":0,"maxWireVersion":0,"roundTripTime":-1,"minRoundTripTime":0,"lastUpdateTime":31307469,"lastWriteDate":0,"error":{},"topologyVersion":null,"setName":null,"setVersion":null,"electionId":null,"logicalSessionTimeoutMinutes":null,"primary":null,"me":null,"$clusterTime":null},"global-dev-shard-00-01.lramz.mongodb.net:27017":{"address":"global-dev-shard-00-01.lramz.mongodb.net:27017","type":"Unknown","hosts":[],"passives":[],"arbiters":[],"tags":{},"minWireVersion":0,"maxWireVersion":0,"roundTripTime":-1,"minRoundTripTime":0,"lastUpdateTime":31308659,"lastWriteDate":0,"error":{},"topologyVersion":null,"setName":null,"setVersion":null,"electionId":null,"logicalSessionTimeoutMinutes":null,"primary":null,"me":null,"$clusterTime":null},"global-dev-shard-00-02.lramz.mongodb.net:27017":{"address":"global-dev-shard-00-02.lramz.mongodb.net:27017","type":"Unknown","hosts":[],"passives":[],"arbiters":[],"tags":{},"minWireVersion":0,"maxWireVersion":0,"roundTripTime":-1,"minRoundTripTime":0,"lastUpdateTime":31307379,"lastWriteDate":0,"error":{},"topologyVersion":null,"setName":null,"setVersion":null,"electionId":null,"logicalSessionTimeoutMinutes":null,"primary":null,"me":null,"$clusterTime":null}},"stale":false,"compatible":true,"heartbeatFrequencyMS":10000,"localThresholdMS":15,"setName":"atlas-w3p74t-shard-0","maxElectionId":null,"maxSetVersion":null,"commonWireVersion":0,"logicalSessionTimeoutMinutes":null}}}

      ```

      Steps to Reproduce

      open a connection but it won't open the DB.

      Expected Results

      the DB to be shown

      Actual Results

      receiving this error: 
      unable to get issuer certificate
       

      Additional Notes

      studio3t works but compass doesn't.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            amin.mazin@gmail.com amin mazinani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: