Hi
Thanks for pointing that out. It seems that before I get a change of signing in, at the moment I click the >]Sign In link at the top right of the webinterface I get the following
==> mailmanweb.log <== WARNING 2017-07-18 11:43:30,483 22 django.template Exception raised while rendering {% include %} for template 'account/login.html'. Empty string rendered instead. Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 210, in render return template.render(context) File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 210, in render return self._render(context) File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 199, in _render return self.nodelist.render(context) File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 994, in render bit = node.render_annotated(context) File "/usr/local/lib/python2.7/site-packages/django/template/base.py", line 961, in render_annotated return self.render(context) File "/usr/local/lib/python2.7/site-packages/allauth/socialaccount/templatetags/socialaccount.py", line 65, in render for p in providers.registry.get_list(request)]) File "/usr/local/lib/python2.7/site-packages/allauth/socialaccount/providers/facebook/provider.py", line 143, in media_js raise ImproperlyConfigured("No Facebook app configured: please" ImproperlyConfigured: No Facebook app configured: please add a SocialApp using the Django admin
When I do sign in, I get the following from uwsgi-error.log
==> uwsgi-error.log <== Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__ response = self.get_response(request) File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 124, in get_response response = self._middleware_chain(request) File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner response = response_for_exception(request, exc) File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 86, in response_for_exception response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info()) File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 124, in handle_uncaught_exception extra={'status_code': 500, 'request': request}, File "/usr/local/lib/python2.7/logging/__init__.py", line 1193, in error self._log(ERROR, msg, args, **kwargs) File "/usr/local/lib/python2.7/logging/__init__.py", line 1286, in _log self.handle(record) File "/usr/local/lib/python2.7/logging/__init__.py", line 1296, in handle self.callHandlers(record) File "/usr/local/lib/python2.7/logging/__init__.py", line 1336, in callHandlers hdlr.handle(record) File "/usr/local/lib/python2.7/logging/__init__.py", line 759, in handle self.emit(record) File "/usr/local/lib/python2.7/site-packages/django/utils/log.py", line 121, in emit self.send_mail(subject, message, fail_silently=True, html_message=html_message) File "/usr/local/lib/python2.7/site-packages/django/utils/log.py", line 124, in send_mail mail.mail_admins(subject, message, *args, connection=self.connection(), **kwargs) File "/usr/local/lib/python2.7/site-packages/django/core/mail/__init__.py", line 103, in mail_admins mail.send(fail_silently=fail_silently) File "/usr/local/lib/python2.7/site-packages/django/core/mail/message.py", line 342, in send return self.get_connection(fail_silently).send_messages([self]) File "/usr/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 100, in send_messages new_conn_created = self.open() File "/usr/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 58, in open self.connection = connection_class(self.host, self.port, **connection_params) File "/usr/local/lib/python2.7/smtplib.py", line 256, in __init__ (code, msg) = self.connect(host, port) File "/usr/local/lib/python2.7/smtplib.py", line 316, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/local/lib/python2.7/smtplib.py", line 291, in _get_socket return socket.create_connection((host, port), timeout) File "/usr/local/lib/python2.7/socket.py", line 575, in create_connection raise err socket.error: [Errno 111] Connection refused
Henrik
-----Oprindelig meddelelse----- Fra: Abhilash Raj [mailto:raj.abhilash1@gmail.com] Sendt: 17. juli 2017 18:04 Til: mailman-users@mailman3.org Emne: [MM3-users] Re: AH01102: error reading status line from remote server 172.19.199.3:8000
Hi Henrik,
On Mon, Jul 17, 2017, at 02:31 AM, Henrik Rasmussen wrote:
I've just installed Mailman 3.1 on RHEL7 (Docker-Mailman3) and to get the right CSS layout I installed Apache on the Mailman server outside Docker, as advised by Abhilash Raj and Alexander Klotz.
My Mailman server is on a secured network and the https connection from Internet will be handled by proxy servers, so I will be using http (port 80) between proxy-servers and Mailman server.
But when I sign in (currently via an SSH tunnel to the Mailman server from my workstation) I get "Internal error: [client ::1:41912] AH01102: error reading status line from remote server 172.19.199.3:8000, referer: http://localhost/accounts/login/?next=%2Fpostorius%2Flists%2F"
Output from logs might be more helpful to debug what is wrong. They are
present at /opt/mailman/web/logs/mailmanweb.log
for Django. You may
also find some other log files there which are related to uwsgi, the
WSGI server that is used to interface Django with Web Servers like
Apache.
If I type a wrong password, I am just warned about that, so the problem appears when log in is accepted.
I expect that it is because I connect to localhost:80 through SSH tunnel. What do I miss in my Apache configuration on the Mailman server to avoid this problem?
<VirtualHost *:80> ErrorLog /var/log/httpd/error_log LogLevel warn CustomLog /var/log/httpd/access_log combined
ServerAdmin root@example.foo ServerName list.foo.bar Alias /static /opt/mailman/web/static Alias /favicon.ico /opt/mailman/web/static/hyperkitty/img/favicon.ico
ProxyPassMatch ^/static/.* ! ProxyPass / http://172.19.199.3:8000/ ProxyPassReverse / http://172.19.199.3:8000/
<Directory /> Allow from all Require all granted </Directory>
<Directory /opt/mailman/web/static/hyperkitty/img/> Allow from all Require all granted </Directory>
# ssl config here ... </VirtualHost>
Thanks, Henrik Rasmussen
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/