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

Windows installation of Compass generates node-forge error

    • 2
    • Not Needed
    • Iteration Dolphin, Iteration Fish, Iteration Grouper, Iteration Herring, Iteration Isopod

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Cannot install Compass 1.31.2 using any of the 3 versions (msi, exe, zip).

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

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Install using Win10 using zip.

      Expected Results

      What do you expect to happen?

      Installation of Compass w/o errors

      Actual Results

      What do you observe is happening?

      //When customer types in a command
      Error: Cannot find module 'node-forge'
      Require stack:
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\win-export-certificate-and-key\index.js
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\system-ca\lib\impl.js
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\system-ca\lib\index.js
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\@mongosh\node-runtime-worker-thread\dist\worker-runtime.js
      Require stack:
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\win-export-certificate-and-key\index.js
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\system-ca\lib\impl.js
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\system-ca\lib\index.js
      - C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\@mongosh\node-runtime-worker-thread\dist\worker-runtime.js
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
          at Function.Module._load (internal/modules/cjs/loader.js:732:27)
          at Module.require (internal/modules/cjs/loader.js:959:19)
          at require (internal/modules/cjs/helpers.js:88:18)
          at Object.<anonymous> (C:\Program Files\MongoDB Compass\resources\app.asar.unpacked\node_modules\win-export-certificate-and-key\index.js:7:15)
          at Module._compile (internal/modules/cjs/loader.js:1078:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
          at Module.load (internal/modules/cjs/loader.js:935:32)
          at Function.Module._load (internal/modules/cjs/loader.js:776:14)
          at Module.require (internal/modules/cjs/loader.js:959:19) 

      Log file shows:

      {"t":\{"$date":"2022-05-06T19:44:37.136Z"},"s":"I","c":"DEVTOOLS-CONNECT","id":1000000049,"ctx":"compass-connect","msg":"Loaded system CA list","attr":{"caCount":88,"asyncFallbackError":"The V8 platform used by this instance of Node does not support creating Workers"}}

       

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: