Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Lambda with Node 10/12 #937

Open
hwernstrom opened this issue Jan 7, 2020 · 1 comment
Open

AWS Lambda with Node 10/12 #937

hwernstrom opened this issue Jan 7, 2020 · 1 comment

Comments

@hwernstrom
Copy link

hwernstrom commented Jan 7, 2020

I had this working well with the 3.7.2 version in AWS Lambda using node 8.

AWS is removing the access to node 8 in AWS Lambda next month.

I went to move to node 10 or 12 but need to upgrade to the 4.0.0 version to support node 10.

Mapnik itself loads fine in node 10 for version 4.x. When it registers plugins, on the AWS Lambda environment, that I need I get this error though

Problem loading plugin library: /var/task/node_modules/mapnik/lib/binding/lib/mapnik/input/pgraster.input (dlopen failed - plugin likely has an unsatisfied dependency or incompatible ABI)

The bindings are being pulled from "https://mapbox-node-binary.s3.amazonaws.com/mapnik/v4.3.1/node-v64-linux-x64-Release.tar.gz"

Using node 12 with 4.3.2 I get a different error completely.

/var/task/node_modules/mapnik/lib/binding/mapnik.node: undefined symbol: _ZN2v82V813DisposeGlobalEPPNS_8internal6ObjectE

I've have tried to using docker images of lambci/lambda and amazon/lambda-build-node10.x to recreate the issue using npm install and a simple index.js file but mapnik plugins seem to load fine.

I'm not sure what the next step should be with node 8 support being dropped next month.

@hwernstrom
Copy link
Author

This appears to be a problem with the node version that nodejs12x and nodejs10x uses.

If I uses a custom execution layer from
https://github.com/lambci/node-custom-lambda

It works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant