Error while invoking node js proxy

Hi,

I have created a node js proxy and attached dependent OracleDB node module using management API (command: install) and then deployed successfully. Have also installed Oracle Instant Client on RMP nodes as well. I am getting below error while invoking node js proxy. Pls help?

** Error: NJS-045: cannot load the oracledb add-on binary for Node.js 0.10.32 (java, amd64) Cannot find module /organization/environment/api/node_modules/oracledb/build/Release/oracledb.node Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html You must have amd64 Oracle client libraries in your operating system library search path. If you do not have Oracle Database on this computer, then install an Instant Client Basic or Basic Light package from: http://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/index.html Error: NJS-045: cannot load the oracledb add-on binary for Node.js 0.10.32 (java, amd64) Cannot find module /organization/environment/api/node_modules/oracledb/build/Release/oracledb.node Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html You must have amd64 Oracle client libraries in your operating system library search path. If you do not have Oracle Database on this computer

0 3 202
3 REPLIES 3

Not applicable

I see what's happening. Unfortunately, Oracle NPM module requires Oracle client libraries to your operating system. However, since the Message Processors (MPs) don't have it installed, the module can't find them, and it fails to run. Are you running on Edge On-premises? You or the Sys Admin might be able to install these libraries for you and give it a try. It's not guaranteed to work. If you're running on Edge Cloud, you won't be able to install Oracle Client libraries.

@Jeremy Whitlock I wonder if Hosted Targets might be more flexible in this case allowing to install these dependencies.

Other suggestions are to run a Google App Engine on flexible environments and do the connections from there.

WDYT Apigeeks? Any suggestions, please keep me honest.

If using Hosted Targets, installing binary modules should work without issue.

Excellent!

Installation of Oracle Client Libraries require a bit more than just installing binary modules. E.g. Copying files to specific folders and updating PATH environment variable. I'm guessing package.json file start script can handle most of these customizations.