Exception when renewing certificate for tracking domain when tracking domain no longer exists #1486
willpower232
started this conversation in
Feature suggestions
Replies: 1 comment
-
Tracking certificates have left the building so this is no longer an issue past me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A couple of our older organizations within Postal have fallen out of use and not been cleaned up which has meant that the tracking domains for them no longer exist.
The certificate renewal process has started throwing an exception in this case:
Faraday::ConnectionFailed: Connection reset by peer - SSL_connect
A solution is to turn off SSL for the tracking domains in question but also I believe the code could handle this situation better as presumably it can be triggered by any form of losing the tracking domain.
Sentry tracks the offending line of code as https://github.com/atech/postal/blob/634d3af59d392e84bdcd2b843b427f3a79d3ff4c/app/models/track_certificate.rb#L55 but I'm not precisely sure what the problem is.
Even some basic exception handling would improve the situation, I just don't know enough ruby to sort it out!
Stack trace is here but the line numbers are slightly different for some reason
Beta Was this translation helpful? Give feedback.
All reactions