Skip to content
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

SSLCertVerificationError when sending emails after 1.3.52 upgrade (from 1.3.45) #3366

Closed
renrutmas opened this issue Nov 16, 2023 · 1 comment
Labels

Comments

@renrutmas
Copy link

What went wrong?

What happened:
Cannot send emails after upgrade due to SSLCertVerificationError

What did you expect to happen:
Send email as in previous version

How do we reproduce it?

  1. Upgrade to 1.3.52 from 1.3.45
  2. Try and send an email from an escalation chain

2023-11-14 13:59:58,790 source=engine:celery worker=ForkPoolWorker-3 task_id=f0b12540-fe54-45b0-b769-d3578678d035 task_name=apps.email.tasks.notify_user_async name=celery.app.trace level=INFO Task apps.email.tasks.notify_user_async[f0b12540-fe54-45b0-b769-d3578678d035] retry: Retry in 1s: SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')

Probably because of this - https://medium.com/@hhuysamen/sending-emails-using-django-4-2-3e5de1ff64dc

Seems Django was updated as of 1.3.48 - c4fb620#diff-a702a33c7a611fc83dcc7c2838f2607f00db74d8567ef55bbca2b703a7544559

Grafana OnCall Version

v1.3.52

Product Area

Alert Flow & Configuration

Grafana OnCall Platform?

Kubernetes

User's Browser?

No response

Anything else to add?

No response

@renrutmas renrutmas added the bug Something isn't working label Nov 16, 2023
@joeyorlando
Copy link
Contributor

Hi there!

Please try setting the EMAIL_USE_TLS engine environment variable to False (as stated in the Medium article you linked).

I'll go ahead and close this. If that does not work, feel free to reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants