-
-
Notifications
You must be signed in to change notification settings - Fork 194
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 Execution failed - /lib64/libc.so.6: version `GLIBC_2.28' not found #789
Comments
@matrottier hmmm. We're currently using tegola_lambda to run the demo.tegola.io. I'm going to ask the obvious question first, can you confirm you're using the Go runtime in Lambda? |
@matrottier that looks correct to me. When you built locally, did you use GOOS=linux? Does this same error happen when you use the release builds? |
@ARolek it happen with release builds AND locally builds. =/ |
***EDITED LOG there is the log :
|
oh! |
@matrottier I"m going to reopen this issue until I have a chance to investigate why the build pipeline is not producing a binary that just works. Here's the build command: tegola/.github/workflows/on_release_publish.yml Lines 52 to 58 in 126d511
It looks like you disabled CGO, but that's not desirable as Geopkg will not work without it. I'm not quite sure what changed (something with Lambda?) but I would like to make sure no one else has to deal with this juggle. |
@matrottier I was able to recreate your problem, and I'm not quite sure when this started. AWS Lambda runs on AmazonLinux and we're currently compiling on the GH Action runner Thanks again for reporting this. |
* build tegola_lambda using amazon linux rather than ubuntu * move from using ubuntu-latest to ubuntu-20.04 in GH actions. closes #789
@matrottier can you try the binary output from this Github Action run: https://github.com/go-spatial/tegola/actions/runs/1043951686 I refactored the way we're building tegola_lambda and I'm now using Amazon Linux for that build. I'm hoping you can give it a test and confirm it's working on your end. It's working for me with my tests. |
it works !! (no problem with GLIBC) |
@matrottier excellent! Thanks for checking that out. Regarding the IAM issue, that sounds like it has to do with your resource access control rules setup in your AWS account, not specific to tegola. I have personally found that using the Application Load Balancer easier to set up the API Gateway. Considering giving that a shot and then moving to API Gateway. |
AWS Lambda uses Amazon Linux for Lambda executions. The previous build pipeline was using Ubuntu 18.04 to build tegola_lambda which had GLIB location parity with Amazon Linux. After upgrading to Ubuntu 20.04 the GLIB references between Ubuntu and Amazon Linux are no longer in parity so tegola_lambda fails to find GLIB during Lambda execution. This commit accomplished the following: * build tegola_lambda using Amazon Linux rather than Ubuntu * move from using ubuntu-latest to ubuntu-20.04 in GH actions. closes #789
AWS Lambda uses Amazon Linux for Lambda executions. The previous build pipeline was using Ubuntu 18.04 to build tegola_lambda which had GLIB location parity with Amazon Linux. After upgrading to Ubuntu 20.04 the GLIB references between Ubuntu and Amazon Linux are no longer in parity so tegola_lambda fails to find GLIB during Lambda execution. This commit accomplished the following: * build tegola_lambda using Amazon Linux rather than Ubuntu * move from using ubuntu-latest to ubuntu-20.04 in GH actions. closes #789
@matrottier I just sent in a PR to fix this if you want to give it a look: #790 |
trying to upgrade from 0.16 and i got the same message :
with my own compiled binary, the file of the github 0.17, 0.18 and 0.19. searching for a hint ! 🙏 |
@matrottier you're saying the version you download from the tegola releases page is is throwing this error? A few things to note:
|
move along, nothing to see here ! it's working with |
@matrottier nice! and anytime ;-) |
Trying to run Tegola with AWS lambda.
i got this error when testing :
START RequestId: 1340f6e4-ceee-401b-950b-cac0880a4f95 Version: $LATEST /var/task/tegola_lambda: /lib64/libc.so.6: version 'GLIBC_2.28' not found (required by /var/task/tegola_lambda) END RequestId: 1340f6e4-ceee-401b-950b-cac0880a4f95 REPORT RequestId: 1340f6e4-ceee-401b-950b-cac0880a4f95 Duration: 35.30 ms Billed Duration: 36 ms Memory Size: 512 MB Max Memory Used: 6 MB RequestId: 1340f6e4-ceee-401b-950b-cac0880a4f95 Process exited before completing request
i tried the version from github and a compiled version with go 1.3 and go 1.6.
also tried the option "CGO_ENABLED=0" on the compilation without success
The text was updated successfully, but these errors were encountered: