On Tue, Apr 16, 2019, at 6:28 PM, brian@emwd.com wrote:
Mark suggested earlier to change POSTORIUS_TEMPLATE_BASE_URL to "Set it to something like http(s)://server.domain". So I set the following in the settings_local.py file
POSTORIUS_TEMPLATE_BASE_URL = 'https://mailman3.emwd.com'
When I saw the SSL errors, I changed it to 'http://mailman3.emwd.com'. I now believe both settings were wrong.
This is what I have currently in settings_local.py:
POSTORIUS_TEMPLATE_BASE_URL = 'http://mailman-web:8000'
Ideally, all 3 of them are correct values, assuming they are all reachable from mailman-core container. I really don't know the reason for SSL verification failures, maybe that is because of missing CA bundles or something else.
So this is correct? Yes?
I then restarted mailman-web:
/docker-mailman/docker-compose restart mailman-web
So the SSL error is now gone. I am back to the original error:
Apr 17 01:26:20 2019 (30) deque: Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 384, in _make_request six.raise_from(e, None) File "<string>", line 2, in raise_from File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 380, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse response.begin() File "/usr/lib/python3.6/http/client.py", line 297, in begin version, status, reason = self._read_status() File "/usr/lib/python3.6/http/client.py", line 258, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 367, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise raise value File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 386, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 306, in _raise_timeout raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='mailman-web', port=8000): Read timed out. (read timeout=5)
Can you try this:
Enter the mailman-core container:
$ docker exec -it mailman-core bash
Try reaching the mailman-web container:
bash$ ping mailman-web
Also, try telnet on port 8000, if this succeeds:
bash$ telnet mailman-web 8000
If none of these succeeds, try pinning through IP address:
bash$ ping 172.19.199.3
If this works, try telnet with the same IP on 8000:
bash$ telnet 172.19.199.3 8000
-- thanks, Abhilash Raj (maxking)