After upgrading from 10.2.0 to 11.0.6, I am unable to send emails, with error
request.is_secure()): SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)')
Do I need to change settings for the latest version or am I missing something?
I have the SMTP settings set in the $TUTOR_ROOT/config.yml file as
SMTP_HOST: mail.blacknight.com
SMTP_PASSWORD: <password>
SMTP_PORT: 587
SMTP_USERNAME: <username>
SMTP_USE_TLS: true
Below is more of the log.
lms_1 | 2021-01-11 12:45:24,420 INFO 6 [audit] [user None] [ip 52.30.64.47] password_reset.py:599 - Password reset initiated for user dan.casey@ucc.ie.
lms_1 | 2021-01-11 12:45:24,552 ERROR 6 [openedx.core.djangoapps.user_api.helpers] [user None] [ip 52.30.64.47] helpers.py:86 - An unexpected error occurred when calling 'request_password_change' with arguments '('dan.casey@ucc.ie', True)' and keyword arguments '{}' from File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 610, in password_change_request_handler
lms_1 | request_password_change(email, request.is_secure()): SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)')
lms_1 | Traceback (most recent call last):
lms_1 | File "./openedx/core/djangoapps/user_api/helpers.py", line 54, in _wrapped
lms_1 | return func(*args, **kwargs)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 268, in request_password_change
lms_1 | form.save(
lms_1 | File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 223, in save
lms_1 | send_password_reset_email_for_user(user, request)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 170, in send_password_reset_email_for_user
lms_1 | ace.send(msg)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ace.py", line 56, in send
lms_1 | delivery.deliver(channel, rendered_message, msg)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/delivery.py", line 52, in deliver
lms_1 | channel.deliver(message, rendered_message)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/channel/django_email.py", line 93, in deliver
lms_1 | mail.send()
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 306, in send
lms_1 | return self.get_connection(fail_silently).send_messages([self])
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 103, in send_messages
lms_1 | new_conn_created = self.open()
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 68, in open
lms_1 | self.connection.starttls(keyfile=self.ssl_keyfile, certfile=self.ssl_certfile)
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 774, in starttls
lms_1 | self.sock = context.wrap_socket(self.sock,
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/ssl.py", line 500, in wrap_socket
lms_1 | return self.sslsocket_class._create(
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/ssl.py", line 1040, in _create
lms_1 | self.do_handshake()
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/ssl.py", line 1309, in do_handshake
lms_1 | self._sslobj.do_handshake()
lms_1 | ssl.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)
lms_1 | 2021-01-11 12:45:24,555 ERROR 6 [edx.student] [user None] [ip 52.30.64.47] password_reset.py:635 - Error occured during password change for user dan.casey@ucc.ie: An unexpected error occurred when calling 'request_password_change' with arguments '('dan.casey@ucc.ie', True)' and keyword arguments '{}' from File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 610, in password_change_request_handler
lms_1 | request_password_change(email, request.is_secure()): SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)')
lms_1 | Traceback (most recent call last):
lms_1 | File "./openedx/core/djangoapps/user_api/helpers.py", line 54, in _wrapped
lms_1 | return func(*args, **kwargs)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 268, in request_password_change
lms_1 | form.save(
lms_1 | File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 223, in save
lms_1 | send_password_reset_email_for_user(user, request)
lms_1 | File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 170, in send_password_reset_email_for_user
lms_1 | ace.send(msg)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/ace.py", line 56, in send
lms_1 | delivery.deliver(channel, rendered_message, msg)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/delivery.py", line 52, in deliver
lms_1 | channel.deliver(message, rendered_message)
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/edx_ace/channel/django_email.py", line 93, in deliver
lms_1 | mail.send()
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 306, in send
lms_1 | return self.get_connection(fail_silently).send_messages([self])
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 103, in send_messages
lms_1 | new_conn_created = self.open()
lms_1 | File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 68, in open
lms_1 | self.connection.starttls(keyfile=self.ssl_keyfile, certfile=self.ssl_certfile)
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/smtplib.py", line 774, in starttls
lms_1 | self.sock = context.wrap_socket(self.sock,
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/ssl.py", line 500, in wrap_socket
lms_1 | return self.sslsocket_class._create(
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/ssl.py", line 1040, in _create
lms_1 | self.do_handshake()
lms_1 | File "/opt/pyenv/versions/3.8.6/lib/python3.8/ssl.py", line 1309, in do_handshake
lms_1 | self._sslobj.do_handshake()
lms_1 | ssl.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)
lms_1 |
lms_1 | During handling of the above exception, another exception occurred:
lms_1 |
lms_1 | Traceback (most recent call last):
lms_1 | File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 610, in password_change_request_handler
lms_1 | request_password_change(email, request.is_secure())
lms_1 | File "./openedx/core/djangoapps/user_api/helpers.py", line 87, in _wrapped
lms_1 | raise api_error(msg)
lms_1 | openedx.core.djangoapps.user_api.errors.UserAPIInternalError: An unexpected error occurred when calling 'request_password_change' with arguments '('dan.casey@ucc.ie', True)' and keyword arguments '{}' from File "./openedx/core/djangoapps/user_authn/views/password_reset.py", line 610, in password_change_request_handler
lms_1 | request_password_change(email, request.is_secure()): SSLError(1, '[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)')
lms_1 | 2021-01-11 12:45:24,559 ERROR 6 [django.request] [user None] [ip None] log.py:222 - Internal Server Error: /account/password
nginx_1 | 172.18.0.3 - - [11/Jan/2021:12:45:24 +0000] http://learn.climateireland.ie "POST /account/password HTTP/1.1" 500 59 "https://learn.climateireland.ie/reset?next=%2F" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "52.30.64.47"
lms_1 | [pid: 6|app: 0|req: 2/3] 172.18.0.13 () {62 vars in 1667 bytes} [Mon Jan 11 12:45:24 2021] POST /account/password => generated 59 bytes in 253 msecs (HTTP/1.0 500) 6 headers in 228 bytes (1 switches on core 0)