-
Notifications
You must be signed in to change notification settings - Fork 29
SIGTERM SignalException: Init error when loading handler #155
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
Comments
Questions because I'm seeing this elsewhere as well, have seen very few reports of this from others, and I'm trying to narrow down causes:
I wonder whether or not lambda gets caught terminating new inits along side old instances of the runtime by broadcasting SIGTERMs differently than before... |
Yes, I think so. I have updated the image above to show a bit more of the completeness. Any log that has this SIGTERM... it is the ONLY thing in the log. So my assumption is that it is only during startup and the Lambda service bails on this function and starts another.
Yup, these two:
"along side" 🤔 |
I'm gonna turn on these two env vars and monitor things.
|
"along side" meaning that a sigterm gets broadcast to terminate old lambdas running while the new lambdas are attempting to init and both old and new versions of the lambda get terminated and then the new version starts again. Just a theory. I'd need some kind of sha or other code version identifier to confirm that. For us, we resolved by manually trapping the sigterm per the details suggested here. It feels like this is something the underlying RIC should handle, but at the same time, I can understand why signal handling may be something best left to the app code rather than the handler. |
Uh oh!
There was an error while loading. Please reload this page.
Been seeing these a lot more lately on the latest cookiecutter with Ubuntu image. Normally I would only see these on shutdown but I am starting to see them more on first invoke/init. Here is a screenshot of the stack trace. May fork or PR here. https://github.com/aws/aws-lambda-ruby-runtime-interface-client
The text was updated successfully, but these errors were encountered: