Closed jishnuraghu closed 1 year ago
@devuser-2048 Please check node -v
command is working inside AWS or not? libnode.so.72 is a nodejs library. Also, I hope you have installed make, gcc, g++(gcc-c++), python and nodejs on your AWS system.
Please share complete output of npm install ibm_db
command executed on AWS. Thanks.
I didn't run these on AWS. I ran it on my Linux desktop and then created a layer out of it.
In case of AWS Lambda, we don't have option to do npm install ibm_db
right?
Can we create the complete layer with required node runtime in local linux (Ubuntu) system?
@devuser-2048 You need to login to AWS EC2 instance and check. Good to check these closed issues https://github.com/ibmdb/node-ibm_db/issues?q=is%3Aissue+is%3Aclosed+lambda which was opened for aws lambda only and users are able to run application. Installing make gcc gcc-c++ kernel-devel openssl-devel bzip2-devel
on the system is a pre-requirement and node.js should also run properly. Make sure you have installed node.js of right Operating System on AWS. Thanks.
@devuser-2048 We have options to run npm install ibm_db
on lambda too. I can see in one post, user is running command on bash shell and in another issue, user has corrected permission of node_modules
directory. But, in your case, you are getting error for libnode.so.72
library which is a node.js library and not an ibm_db
library.
To get libnode.so.72
, you need to install libnode72 package on your system using command sudo apt install libnode72
. Same issue has been reported on below links with solution:
https://stackoverflow.com/questions/69378783/node-error-while-loading-shared-libraries-libnode-so-72
https://forum.edgeimpulse.com/t/error-libnode-so-72-cannot-open-shared-object-file-no-such-file-or-directory-edge-impulse-daemon/5153/2
All links says - installing libnode72
package has solved the issue. Probably you need to use AWS Lambda Console for it. Thanks.
From: DevUser notifications@github.com Sent: Tuesday, July 18, 2023 12:42 PM Was able to get this working using EFS and having the required dependency libraries
I have a nodejs based lambda function which talks to the DB2 database. The code works fine in local. In AWS I get the following error.
This is what I have done so far
npm i
from a linux machine followed by zipping to nodejs directory.db2consv_zs.lic
is copied to thenode_modules/ibm_db/installer/clidriver/license
folderCan someone help me please? @bimalkjha It will be great if the instructions to use the this in AWS Lambda is provided. Couldn't find a reliable working set anywhere.