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
Logging SignalException when gracefully shutting down Puma on Heroku #267
Comments
This is an interesting situation, let me look at our code and see what is possible. |
Thanks, @minhajuddin! |
I am seeing a similar issue using Rails 5.1.4, Passenger 5.2.1, and Honeybadger 3.2.0. |
In our
SystemExit exceptions, adding another clause for SignalException caused by a SIGTERM should fix this issue.
SIGTERM is usually sent by admins when they want to kill processes and not by the kernel. So, it should be safe for us to ignore this. Thoughts? @joshuap |
I think that would be OK, @minhajuddin 👍 |
This'll prevent reporting of "SignalException in at_exit" errors: honeybadger-io/honeybadger-ruby#267
Hello!
I'm monitoring a Rails 5.1.5 app running on Heroku with Honeybadger using version 3.3.0 of the gem.
The app uses the default Rails puma server configuration.
For some time now, Honeybadger has been logging a
SignalException
every time I deploy the application. Here's an example of what the Heroku log output looks like when the app restarts after a deploy:I think this might be related to this change in Puma which aims to properly handle the TERM signal by re-raising it and letting Ruby's built in handling exit with the correct status code:
https://github.com/puma/puma/blob/dc9fa77f855c5018a03430366ea8c8db17fbfeea/lib/puma/launcher.rb#L397
Having this exception logged every time I deploy is not what I want but I'm not sure what needs to be fixed here. Should Honeybadger not rescue this exception? Should I ignore it manually in my configuration? Would I then risk missing a legitimate application error?
The text was updated successfully, but these errors were encountered: