-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
(copied to CRM)
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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.