You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this repo as an example and follow step by step in README.
But got errors. Response
{"message": "Internal server error"}
Error
LoadError: /usr/lib64/libnssutil3.so: version `NSSUTIL_3.82' not found (required by /var/task/lib/libnss3.so) - /var/task/vendor/bundle/ruby/3.2.0/gems/pg-1.5.4/lib/pg_ext.so
What I dug:
Docker image with the wrong architecture
The image public.ecr.aws/lambda/ruby:3.2 based on aarch64 but in serverless docs mentioned that the default architecture is x86
Linux dd384be8792b 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
# Processor architecture: 'x86_64' or 'arm64' via Graviton2 (default: x86_64)
The application fails with an error that nokogiri is not installed. Because in the vendor folder, we have nokogiri-1.16.2-aarch64-linux instead of nokogiri-1.16.2-x86_64-linux
Using docker image based on x86_64
I tried to use public.ecr.aws/lambda/ruby:3.2-x86_64
No luck.
LoadError: /usr/lib64/libnssutil3.so: version `NSSUTIL_3.82' not found (required by /var/task/lib/libnss3.so) - /var/task/vendor/bundle/ruby/3.2.0/gems/pg-1.5.4/lib/pg_ext.so
Using docker image based on arm64
Set: architecture: arm64 in serverless.yaml
Use docker image public.ecr.aws/lambda/ruby:3.2-arm64
Same error
LoadError: /usr/lib64/libnssutil3.so: version `NSSUTIL_3.82' not found (required by /var/task/lib/libnss3.so) - /var/task/vendor/bundle/ruby/3.2.0/gems/pg-1.5.4/lib/pg_ext.so
The text was updated successfully, but these errors were encountered:
Problem
I use this repo as an example and follow step by step in README.
But got errors.
Response
Error
What I dug:
Docker image with the wrong architecture
The image
public.ecr.aws/lambda/ruby:3.2
based onaarch64
but in serverless docs mentioned that the default architecture isx86
source: https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml
The application fails with an error that
nokogiri
is not installed. Because in the vendor folder, we havenokogiri-1.16.2-aarch64-linux
instead ofnokogiri-1.16.2-x86_64-linux
Using docker image based on
x86_64
I tried to use
public.ecr.aws/lambda/ruby:3.2-x86_64
No luck.
Using docker image based on
arm64
Set:
architecture: arm64
in serverless.yamlUse docker image
public.ecr.aws/lambda/ruby:3.2-arm64
Same error
The text was updated successfully, but these errors were encountered: