Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-565

symbol lookup error : undefined symbol: napi_set_instance_data

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Hello team,

      I have a customer that is having the following error when using the mongodb-client-encryption version 2.7.1

      The error message is the following:

      node /var/www/html/backend/users-service/dist/app.js: symbol lookup error: /var/www/html/backend/users-service/node_modules/mongodb-client-encryption/build/Release/mongocrypt.node: undefined symbol: napi_set_instance_data
      

      This is happening with the:

      • mongodb-client-encryption: 2.7.1
      • moongose: 5.13.15
      • node: 10.17
      • mongo 4.4

      The environment is a Docker container.

      The package.json file content is:

      {
        "name": "csfle",
        "version": "0.0.0",
        "private": true,
        "scripts": {
          "start": "node ./bin/www"
        },
        "dependencies": {
          "body-parser": "^1.20.2",
          "cookie-parser": "~1.4.4",
          "cors": "^2.8.5",
          "debug": "~2.6.9",
          "ejs": "~2.6.1",
          "express": "~4.16.1",
          "helmet": "^6.0.1",
          "http-errors": "~1.6.3",
          "mongodb-client-encryption": "^2.6.0",
          "mongoose": "5.13.15",
          "morgan": "~1.9.1"
        }
      }
      

      There are a couple of other files requested from the customer:

      I tried to reproduce this using a Docker container but no luck so far. There is no readme on the https://www.npmjs.com/package/mongodb-client-encryption so I couldn't create a sample project to try to reproduce this.

      Please let me know if you need the Dockerfile and docker-compose to replicate the infrastructure.

      Attachments

        1. app.js
          1 kB
        2. bootstrap.js
          0.5 kB
        3. db_encryption.js
          4 kB

        Activity

          People

            Unassigned Unassigned
            josman.perez@mongodb.com Josman Perez Exposito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: