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

Embedded shell unable to reconnect

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.33.1
    • Component/s: Embedded Shell
    • None
    • 8

      When Compass is left open while the underlying cluster is paused long enough, the session will eventually time out, and when the cluster is resumed, the user can refresh the connection and the UI continues to work as expected; however, the embedded shell throws this error on subsequent commands:
      MongoNotConnectedError: Client must be connected before running operations
      at /Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:171899
      at t.maybePromise (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:18756)
      at e (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:171834)
      at Collection.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:236411)
      at CompassServiceProvider.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:1143400)
      at Proxy.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:893064)
      at async Proxy.updateMany (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:51942)
      at async Proxy.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:46156)
      at async Proxy.<anonymous> (/Applications/MongoDB Compass.app/Contents/Resources/app.asar.unpacked/node_modules/@mongosh/node-runtime-worker-thread/dist/worker-runtime.js:2:46591)
      at async evalmachine.<anonymous>:38:25
       
      If you try issuing the command connect("<my-connection-string>"), the following error occurs:
      MongoshUnimplementedError: [COMMON-90002] new Mongo connections are not supported for current platform: Compass
       

            Assignee:
            Unassigned Unassigned
            Reporter:
            roy.kiesler@mongodb.com Roy Kiesler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: