6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-16 01:57:16 +00:00
tutor/tutor
Régis Behmo 602c381d6e fix: email sending from cms
Incorrect format of cms.yml config file was causing the following error on course import:

	cms-worker_1                 | Traceback (most recent call last):
	cms-worker_1                 |   File "/openedx/edx-platform/cms/djangoapps/cms_user_tasks/tasks.py", line 53, in send_task_complete_email
	cms-worker_1                 |     mail.send_mail(subject, message, from_address, [dest_addr], fail_silently=False)
	cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/__init__.py", line 61, in send_mail
	cms-worker_1                 |     return mail.send()
	cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 284, in send
	cms-worker_1                 |     return self.get_connection(fail_silently).send_messages([self])
	cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 102, in send_messages
	cms-worker_1                 |     new_conn_created = self.open()
	cms-worker_1                 |   File "/openedx/venv/lib/python3.8/site-packages/django/core/mail/backends/smtp.py", line 62, in open
	cms-worker_1                 |     self.connection = self.connection_class(self.host, self.port, **connection_params)
	cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/smtplib.py", line 255, in __init__
	cms-worker_1                 |     (code, msg) = self.connect(host, port)
	cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/smtplib.py", line 339, in connect
	cms-worker_1                 |     self.sock = self._get_socket(host, port, self.timeout)
	cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/smtplib.py", line 310, in _get_socket
	cms-worker_1                 |     return socket.create_connection((host, port), timeout,
	cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/socket.py", line 787, in create_connection
	cms-worker_1                 |     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
	cms-worker_1                 |   File "/opt/pyenv/versions/3.8.12/lib/python3.8/socket.py", line 918, in getaddrinfo
	cms-worker_1                 |     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
	cms-worker_1                 | socket.gaierror: [Errno -8] Servname not supported for ai_socktype

The reason was that the trailing comma "," was interpreted as being part of the email port.
2022-06-20 14:33:48 +02:00
..
commands fix: upgrade_from_maple issue 2022-06-13 21:54:45 +02:00
hooks feat: render files in ignored directories 2022-06-03 12:54:27 +02:00
plugins fix: ignore plugins that cannot be loaded 2022-05-24 11:38:37 +02:00
templates fix: email sending from cms 2022-06-20 14:33:48 +02:00
__about__.py v14.0.1 (2022-06-13) 2022-06-13 22:26:40 +02:00
__init__.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
bindmounts.py feat: add --mount option to local/dev 2022-04-20 19:33:17 +02:00
config.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
env.py v14.0.0: upgrade to Nutmeg 2022-06-09 19:18:20 +02:00
exceptions.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
fmt.py feat: upgrade to Maple 2021-12-20 21:21:36 +01:00
images.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
interactive.py feat: introduce tutor dev quickstart 2022-04-19 16:53:57 +02:00
jobs.py fix: truncate site name if longer than 50 characters and show warning 2022-05-30 12:51:11 +02:00
serialize.py fix: YamlParamType supports line terminators 2021-04-25 09:14:21 +02:00
types.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
utils.py chore: fix various linting warnings in f-strings and docs 2022-02-25 14:50:36 +01:00