Error skipping GLIBC library version when starting nodejs application on Openshift

I am new to MEAN stack and Linux, so please forgive me if my question is too obvious and stupid.

I had a Nodejs app on Openshift. While trying to start the application, I encountered the following error due to a GLIBC library library error:

[Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /var/lib/openshift/550be20dfcf93378d600015e/app-root/runtime/repo/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/build/Release/bson.node)] js-bson: Failed to load c++ bson extension, using pure JS version /var/lib/openshift/550be20dfcf93378d600015e/app-root/runtime/repo/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js:8 var ObjectId = require('mongodb').BSONPure.ObjectID; ^ TypeError: Cannot read property 'ObjectID' of undefined at Object.<anonymous> (/var/lib/openshift/550be20dfcf93378d600015e/app-root/runtime/repo/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js:8:43) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/var/lib/openshift/550be20dfcf93378d600015e/app-root/runtime/repo/node_modules/mongoose/lib/types/objectid.js:18:16) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) 

The current version of GLIBC for Opneshift is 2.12.

One obvious solution I know is updating GLIBC on Openshift. However, this is not possible because I do not have sudo rights on openshift.

Is there a possible workaround to solve the same problem?

+5
source share

Source: https://habr.com/ru/post/1216181/


All Articles