All of a sudden, we have started getting errors similar to the following without any changes in our odoo.sh environment. We get these errors every time a development branch is created and a build/rebuild is triggered.
Any pointers on what may be happening and possible solutions are much appreciated.
11/14/2020 13:15:28 | ERROR | server | ERROR: TestAccessRightsControllers.test_access_controller Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 140, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 83, in create_connection raise err File "/usr/local/lib/python3.8/dist-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 598, in urlopen httplib_response = self._make_request(conn, method, url, File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 357, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.8/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.8/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 166, in connect conn = self._new_conn() File "/usr/local/lib/python3.8/dist-packages/urllib3/connection.py", line 149, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fac1c768c70>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/dist-packages/urllib3/connectionpool.py", line 638, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File "/usr/local/lib/python3.8/dist-packages/urllib3/util/retry.py", line 388, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /my/orders/20?report_type=pdf (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac1c768c70>: Failed to establish a new connection: [Errno 111] Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/addons/sale/tests/test_access_rights.py", line 140, in test_access_controller req = self.url_open( File "/home/odoo/src/odoo/odoo/tests/common.py", line 1289, in url_open return self.opener.get(url, timeout=timeout, headers=headers, allow_redirects=allow_redirects) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 537, in get return self.request('GET', url, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 524, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/sessions.py", line 637, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.8/dist-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: /my/orders/20?report_type=pdf (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fac1c768c70>: Failed to establish a new connection: [Errno 111] Connection refused')) |
I get the same error when I try to create a development branch from master. Any help?
I just received a response from Odoo support saying this is being caused by a bug in the test suite and they will be fixing it today.
This has now been resolved.