aws / aws-lambda-nodejs-runtime-interface-client

Apache License 2.0
180 stars 56 forks source link

`version GLIBC_2.33' not found` #45

Closed multimeric closed 2 years ago

multimeric commented 2 years ago

I'm using https://hub.docker.com/r/continuumio/miniconda3 as my base image. From there I install node and then aws-lambda-ric. However when I try to execute the handler, it gives me:

START RequestId: dcea4479-5929-4ea6-a023-d8af739b9317 Version: $LATEST
2022-03-15T06:17:06.705Z    undefined   INFO    Executing 'app.handler' in function directory '/lambda'
node:internal/modules/cjs/loader:1179
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lambda/node_modules/aws-lambda-ric/build/Release/runtime-client.node)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1179:18)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
multimeric commented 2 years ago

Turns out this happened because I was compiling (npm installing) aws-lambda-ric on my own machine, and then accidentally copying in my copy into a docker image I was building, meaning that it had been compiled with a different glibc than it had access to.