Discussion:
[Mayan EDMS: 2643] Email not working and throwing error
(too old to reply)
p***@gmail.com
2018-08-15 18:33:33 UTC
Permalink
Hi,

I am running the docker setup with postgresql and have been trying to set
up email, both through the web GUI settings page and feed the environment
variables into the Mayan EDMS through docker run -e variables, nothing
works. I get this error when testing the email settings through "Forgot
Password" button:

common.middleware.error_logging <53> [ERROR] "process_exception() line 17
Exception caught by request middleware; <WSGIRequest: POST
'/authentication/password/reset/'>, [Errno 99] Cannot assign requested
address"
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line
185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/mayan/apps/authentication/views.py",
line 136, in password_reset_view
'authentication:password_reset_done_view'
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/views.py", line
54, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py",
line 149, in _wrapped_view
response = view_func(request, *args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/views.py", line
306, in password_reset
form.save(**opts)
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/forms.py", line
289, in save
email, html_email_template_name=html_email_template_name,
File
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/forms.py", line
243, in send_mail
email_message.send()
File
"/usr/local/lib/python2.7/dist-packages/django/core/mail/message.py", line
348, in send
return self.get_connection(fail_silently).send_messages([self])
File
"/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py",
line 104, in send_messages
new_conn_created = self.open()
File
"/usr/local/lib/python2.7/dist-packages/django/core/mail/backends/smtp.py",
line 64, in open
self.connection = self.connection_class(self.host, self.port,
**connection_params)
File "/usr/lib/python2.7/smtplib.py", line 256, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 316, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python2.7/smtplib.py", line 291, in _get_socket
return socket.create_connection((host, port), timeout)
File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line 99,
in create_connection
raise err # pylint:disable=raising-bad-type
error: [Errno 99] Cannot assign requested address

Would really appreciate some hints or advice.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...