-
Notifications
You must be signed in to change notification settings - Fork 0
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
OperationalError: (psycopg2.OperationalError) SSL error: decryption failed or bad record mac #60
Comments
Some possible thoughts on this: https://medium.com/@philamersune/fixing-ssl-error-decryption-failed-or-bad-record-mac-d668e71a5409 This seems to be to do with starting a connection in one thread, and using it in another. |
So looking at the trace above, this isn't coming from our code at all, but from the New Relic introspection of our tasks. This is where the other thread is. So my guess is if we get a reporting period from New Relic while we are trying to update, it explodes. We'll probably have to do a minor version of what we did in the WebSocket to turn off transaction tracing: |
I've tried disabling New Relic transaction monitoring, but we're going to have to wait and see if anything happens. |
This is still working with the transaction monitoring disabled, but New Relic is still monkey patching Postgres, so we're going to try disabling it completely and see what happens. |
Currently deploying the PR which removes New Relic, just to rule it out of being the source. Unfortunately we aren't going to know for a while / ever, because this is very intermittent. We can go a whole week without seeing this sometimes. |
I've deployed this now and closed the Sentry issue, but we're going to have to check on this for at least a week if it doesn't just show up immediately. |
@jon-betts Re-opening this because it happened again: https://sentry.io/organizations/hypothesis/issues/2086421688/ (latest event is today just after midnight, 12:01:08. It looks like New Relic is innocent here, and we should revert #87 and #83? |
Yep |
This was disabled in an attempt to fix #60 but the issue still occurred even when New Relic was disabled. This re-enables the setting per #60 (comment) and #296 (review)
This was disabled to try to fix an issue: * #60 * #83 But the "SSL error: decryption failed or bad record mac" crash is still happening in production. * https://sentry.io/share/issue/d6a9cd75bf0e4a26963835984baf2e06/ * https://sentry.io/share/issue/434a72a65b2f402290d98fa0caa3b30c/ * https://sentry.io/share/issue/f8c25d28b2f946a8b286b324ff801ce4/
This was disabled to try to fix an issue: * #60 * #83 But the "SSL error: decryption failed or bad record mac" crash is still happening in production. * https://sentry.io/share/issue/d6a9cd75bf0e4a26963835984baf2e06/ * https://sentry.io/share/issue/434a72a65b2f402290d98fa0caa3b30c/ * https://sentry.io/share/issue/f8c25d28b2f946a8b286b324ff801ce4/
This was disabled to try to fix an issue: * #60 * #83 But the "SSL error: decryption failed or bad record mac" crash is still happening in production. * https://sentry.io/share/issue/d6a9cd75bf0e4a26963835984baf2e06/ * https://sentry.io/share/issue/434a72a65b2f402290d98fa0caa3b30c/ * https://sentry.io/share/issue/f8c25d28b2f946a8b286b324ff801ce4/
Sentry Issue: CHECKMATE-6
The text was updated successfully, but these errors were encountered: