#525 Traceback when requesting to join a group
Closed: Fixed 6 years ago Opened 6 years ago by ryanlerch.

Whenever i try to join a group, i get the following traceback:

06:30:28 web.1          | Traceback (most recent call last):
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__
06:30:28 web.1          |     return self.wsgi_app(environ, start_response)
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app
06:30:28 web.1          |     response = self.make_response(self.handle_exception(e))
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception
06:30:28 web.1          |     reraise(exc_type, exc_value, tb)
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
06:30:28 web.1          |     response = self.full_dispatch_request()
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
06:30:28 web.1          |     rv = self.handle_user_exception(e)
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
06:30:28 web.1          |     reraise(exc_type, exc_value, tb)
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
06:30:28 web.1          |     rv = self.dispatch_request()
06:30:28 web.1          |   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
06:30:28 web.1          |     return self.view_functions[rule.endpoint](**req.view_args)
06:30:28 web.1          |   File "/srv/hubs/fedora-hubs/hubs/utils/views.py", line 307, in wrapper
06:30:28 web.1          |     return function(*args, **kwargs)
06:30:28 web.1          |   File "/srv/hubs/fedora-hubs/hubs/views/api/hub_association.py", line 40, in api_hub_associations
06:30:28 web.1          |     notify_membership_request(flask.g.user, hub, role)
06:30:28 web.1          |   File "/srv/hubs/fedora-hubs/hubs/utils/fas.py", line 317, in notify_membership_request
06:30:28 web.1          |     s = smtplib.SMTP(app_config["EMAIL_HOST"], app_config["EMAIL_PORT"])
06:30:28 web.1          |   File "/usr/lib64/python2.7/smtplib.py", line 256, in __init__
06:30:28 web.1          |     (code, msg) = self.connect(host, port)
06:30:28 web.1          |   File "/usr/lib64/python2.7/smtplib.py", line 316, in connect
06:30:28 web.1          |     self.sock = self._get_socket(host, port, self.timeout)
06:30:28 web.1          |   File "/usr/lib64/python2.7/smtplib.py", line 291, in _get_socket
06:30:28 web.1          |     return socket.create_connection((host, port), timeout)
06:30:28 web.1          |   File "/usr/lib64/python2.7/socket.py", line 575, in create_connection
06:30:28 web.1          |     raise err
06:30:28 web.1          | error: [Errno 111] Connection refused

Metadata Update from @ryanlerch:
- Issue set to the milestone: Production

6 years ago

This means you have no SMTP server running on your machine. Indeed, the vagrant ansible playbook does not set one up, that's where we should fix this. It should be fixed in the ansible/vagrant-playbook.yml file, not the role, so we can reuse the role in our infra where the SMTP server is deployed by the infra playbooks.

Login to comment on this ticket.

Metadata