diff --git a/cps/kobo_auth.py b/cps/kobo_auth.py index 92ac4c18..efbb3080 100644 --- a/cps/kobo_auth.py +++ b/cps/kobo_auth.py @@ -164,6 +164,7 @@ def requires_kobo_auth(f): ) if user is not None: login_user(user) + [limiter.limiter.storage.clear(k.key) for k in limiter.current_limits] return f(*args, **kwargs) log.debug("Received Kobo request without a recognizable auth token.") return abort(401) diff --git a/cps/search.py b/cps/search.py index e10a84ff..096b2928 100644 --- a/cps/search.py +++ b/cps/search.py @@ -17,12 +17,12 @@ import json from datetime import datetime -from flask import Blueprint, request, redirect, url_for, flash, get_flashed_messages +from flask import Blueprint, request, redirect, url_for, flash from flask import session as flask_session from flask_login import current_user from flask_babel import format_date from flask_babel import gettext as _ -from sqlalchemy.sql.expression import func, not_, and_, or_, text, false +from sqlalchemy.sql.expression import func, not_, and_, or_, text, true from sqlalchemy.sql.functions import coalesce from . import logger, db, calibre_db, config, ub diff --git a/cps/web.py b/cps/web.py index 0d79c8f5..c1b8f876 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1309,7 +1309,7 @@ def login(): @web.route('/login', methods=['POST']) @limiter.limit("40/day", key_func=lambda: request.form.get('username', "").strip().lower()) -@limiter.limit("2/minute", key_func=lambda: request.form.get('username', "").strip().lower()) +@limiter.limit("3/minute", key_func=lambda: request.form.get('username', "").strip().lower()) def login_post(): try: limiter.check() diff --git a/setup.cfg b/setup.cfg index 9be77e7f..597aa5fe 100644 --- a/setup.cfg +++ b/setup.cfg @@ -58,33 +58,34 @@ install_requires = flask-wtf>=0.14.2,<1.2.0 chardet>=3.0.0,<4.1.0 advocate>=1.0.0,<1.1.0 + Flask-Limiter>=2.3.0,<3.2.0 [options.extras_require] gdrive = - google-api-python-client>=1.7.11,<2.50.0 - gevent>20.6.0,<22.0.0 - greenlet>=0.4.17,<1.2.0 - httplib2>=0.9.2,<0.21.0 + google-api-python-client>=1.7.11,<2.75.0 + gevent>20.6.0,<23.0.0 + greenlet>=0.4.17,<2.1.0 + httplib2>=0.9.2,<0.22.0 oauth2client>=4.0.0,<4.1.4 uritemplate>=3.0.0,<4.2.0 pyasn1-modules>=0.0.8,<0.3.0 pyasn1>=0.1.9,<0.5.0 - PyDrive2>=1.3.1,<1.11.0 + PyDrive2>=1.3.1,<1.16.0 PyYAML>=3.12 - rsa>=3.4.2,<4.9.0 + rsa>=3.4.2,<4.10.0 gmail = - google-auth-oauthlib>=0.4.3,<0.6.0 - google-api-python-client>=1.7.11,<2.50.0 + google-auth-oauthlib>=0.4.3,<0.9.0 + google-api-python-client>=1.7.11,<2.75.0 goodreads = goodreads>=0.3.2,<0.4.0 - python-Levenshtein>=0.12.0,<0.13.0 + python-Levenshtein>=0.12.0,<0.21.0 ldap = python-ldap>=3.0.0,<3.5.0 Flask-SimpleLDAP>=1.4.0,<1.5.0 oauth = - Flask-Dance>=2.0.0,<5.2.0 - SQLAlchemy-Utils>=0.33.5,<0.39.0 + Flask-Dance>=2.0.0,<6.3.0 + SQLAlchemy-Utils>=0.33.5,<0.40.0 metadata = rarfile>=3.2 scholarly>=1.2.0,<1.8 @@ -94,8 +95,8 @@ metadata = beautifulsoup4>=4.0.1,<4.12.0 cchardet>=2.0.0,<2.2.0 comics = - natsort>=2.2.0,<8.2.0 + natsort>=2.2.0,<8.3.0 comicapi>=2.2.0,<2.3.0 kobo = - jsonschema>=3.2.0,<4.9.0 + jsonschema>=3.2.0,<4.18.0 diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index 82051912..36a3c808 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
Start Time: 2022-06-17 21:15:12
+Start Time: 2023-01-28 19:00:52
Stop Time: 2022-06-18 03:11:38
+Stop Time: 2023-01-29 00:44:54
Duration: 5h 2 min
+Duration: 4h 53 min
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6239743310>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 638, in test_calibre_log + self.fill_basic_config({'config_log_level': 'DEBUG'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 394, in fill_basic_config + cls._fill_basic_config(elements) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 298, in _fill_basic_config + WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6239743310>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397408e0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397408e0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6239740970>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 74, in test_convert_deactivate + self.fill_basic_config({'config_converterpath': ""}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 394, in fill_basic_config + cls._fill_basic_config(elements) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 298, in _fill_basic_config + WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6239740970>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397427d0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397427d0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397403d0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 186, in test_convert_email + self.setup_server(True, {'mail_password': '10234', 'mail_use_ssl': 'None'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 729, in setup_server + select = Select(cls.driver.find_element(By.ID, key)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397403d0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6239741b70>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6239741b70>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c0f9300>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 250, in test_convert_failed_and_email + vals = self.get_convert_book(1) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2025, in get_convert_book + cls.driver.get(root_url + "/admin/book/"+str(id)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 446, in get + self.execute(Command.GET, {'url': url}) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c0f9300>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397426b0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397426b0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6239743610>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 316, in test_convert_only + vals = self.get_convert_book(7) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2025, in get_convert_book + cls.driver.get(root_url + "/admin/book/"+str(id)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 446, in get + self.execute(Command.GET, {'url': url}) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6239743610>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c39ec50>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c39ec50>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c0f97e0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 598, in test_convert_options + vals = self.get_convert_book(3) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2025, in get_convert_book + cls.driver.get(root_url + "/admin/book/"+str(id)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 446, in get + self.execute(Command.GET, {'url': url}) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c0f97e0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c39e5c0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c39e5c0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c0fb5b0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 152, in test_convert_parameter + self.fill_basic_config({'config_calibre': '--margin-right 11.9'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 394, in fill_basic_config + cls._fill_basic_config(elements) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 298, in _fill_basic_config + WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c0fb5b0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c0f9d50>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c0f9d50>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6239723dc0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 91, in test_convert_wrong_excecutable + self.fill_basic_config({'config_converterpath':'/opt/calibre/ebook-polish'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 394, in fill_basic_config + cls._fill_basic_config(elements) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 298, in _fill_basic_config + WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6239723dc0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c0fb400>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c0fb400>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397228f0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 536, in test_convert_xss + self.edit_book(11, content={'book_title': u'<p>calibre Quick Start Guide</p><img src=x onerror=alert("hoho")>'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1697, in edit_book + cls.driver.get(root_url + "/admin/book/"+str(id)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 446, in get + self.execute(Command.GET, {'url': url}) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397228f0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397234f0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397234f0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397203a0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 474, in test_email_failed + self.setup_server(False, {'mail_password': '10234'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 734, in setup_server + ele = cls.driver.find_element(By.ID, key) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397203a0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6239720910>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6239720910>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f62397212a0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 434, in test_email_only + self.setup_server(True, {'mail_use_ssl': 'None', 'mail_password': '10234'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 729, in setup_server + select = Select(cls.driver.find_element(By.ID, key)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f62397212a0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f6239721b10>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6239721b10>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c1f8fd0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 235, in test_kindle_send_not_configured + self.create_user('kindle', {'password': '123AbC*!', 'email': 'da@b.com', 'edit_role':1}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1015, in create_user + return cls.change_user(config) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1069, in change_user + ele = cls.driver.find_element(By.ID, checkbox) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c1f8fd0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c3cf940>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c3cf940>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c3cdae0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 517, in test_ssl_smtp_setup_error + self.setup_server(False, {'mail_use_ssl':'SSL/TLS', 'mail_password':'10234'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 729, in setup_server + select = Select(cls.driver.find_element(By.ID, key)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c3cdae0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c3cf580>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c3cf580>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c1fa380>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 497, in test_starttls_smtp_setup_error + self.setup_server(False, {'mail_use_ssl':'STARTTLS', 'mail_password':'10234'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 729, in setup_server + select = Select(cls.driver.find_element(By.ID, key)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c1fa380>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c0fae30>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c0fae30>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c282650>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 564, in test_user_convert_xss + self.create_user('<p>calibre Quick Start Guide</p><img src=x onerror=alert("jo")>', {'password': '123AbC*!', + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1015, in create_user + return cls.change_user(config) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1069, in change_user + ele = cls.driver.find_element(By.ID, checkbox) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c282650>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c3cc910>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 67, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c3cc910>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c280ca0>: 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/ozzie/Development/calibre-web-test/test/test_ebook_convert.py", line 54, in tearDownClass + cls.driver.get("http://127.0.0.1:8083") + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 446, in get + self.execute(Command.GET, {'url': url}) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=43783): Max retries exceeded with url: /session/113bb2e9-9a80-4c2a-bb33-e457cfda9b84/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c280ca0>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn + conn = connection.create_connection( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection + raise err + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, 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 "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen + httplib_response = self._make_request( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request + conn.request(method, url, **httplib_request_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request + super(HTTPConnection, self).request(method, url, body=body, headers=headers) + File "/usr/lib/python3.10/http/client.py", line 1282, in request + self._send_request(method, url, body, headers, encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request + self.endheaders(body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders + self._send_output(message_body, encode_chunked=encode_chunked) + File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output + self.send(msg) + File "/usr/lib/python3.10/http/client.py", line 975, in send + self.connect() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect + conn = self._new_conn() + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn + raise NewConnectionError( +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f623c294e80>: 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/ozzie/Development/calibre-web-test/test/test_email_STARTTLS.py", line 53, in tearDownClass + cls.driver.get("http://127.0.0.1:8083") + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 446, in get + self.execute(Command.GET, {'url': url}) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 432, in execute + response = self.command_executor.execute(driver_command, params) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 344, in execute + return self._request(command_info[0], url, body=data) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 366, in _request + response = self._conn.request(method, url, body=body, headers=headers) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 78, in request + return self.request_encode_body( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/request.py", line 170, in request_encode_body + return self.urlopen(method, url, **extra_kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/poolmanager.py", line 376, in urlopen + response = conn.urlopen(method, u.request_uri, **kw) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 815, in urlopen + return self.urlopen( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen + retries = retries.increment( + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment + raise MaxRetryError(_pool, url, error or ResponseError(cause)) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=50983): Max retries exceeded with url: /session/1bd76e94-2a93-4cb2-9146-c64e6fb0dcfe/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f623c294e80>: Failed to establish a new connection: [Errno 111] Connection refused'))+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_email_ssl.py", line 44, in setUpClass + cls.setup_server(False, {'mail_server':'127.0.0.1', 'mail_port':'1027', + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 734, in setup_server + ele = cls.driver.find_element(By.ID, key) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element + return self.execute(Command.FIND_ELEMENT, { + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 434, in execute + self.error_handler.check_response(response) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response + raise exception_class(message, screen, stacktrace) +selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [id="mail_password"] +Stacktrace: +RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 +WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:180:5 +NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:392:5 +element.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_register.py", line 30, in setUpClass + cls.email_server.start() + File "/home/ozzie/Development/calibre-web-test/test/aiosmtpd/controller.py", line 88, in start + raise self._thread_exception + File "/home/ozzie/Development/calibre-web-test/test/aiosmtpd/controller.py", line 65, in _run + self.server = self.loop.run_until_complete( + File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete + return future.result() + File "/usr/lib/python3.10/asyncio/base_events.py", line 1505, in create_server + raise OSError(err.errno, 'error while attempting ' +OSError: [Errno 98] error while attempting to bind on address ('127.0.0.1', 1025): address already in use+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_zz_helper.py", line 30, in setUpClass + from cps import cli_param + File "/home/ozzie/Development/calibre-web/cps/__init__.py", line 31, in <module> + from flask_limiter import Limiter +ModuleNotFoundError: No module named 'flask_limiter'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 189, in test_convert_email + self.setup_server(True, {'mail_password': '10234', 'mail_use_ssl': 'None'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 729, in setup_server + select = Select(cls.driver.find_element(By.ID, key)) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 240, in test_convert_failed_and_email + vals = self.get_convert_book(1) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2025, in get_convert_book + cls.driver.get(root_url + "/admin/book/"+str(id)) +AttributeError: 'NoneType' object has no attribute 'get'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 311, in test_convert_only + vals = self.get_convert_book(7) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2025, in get_convert_book + cls.driver.get(root_url + "/admin/book/"+str(id)) +AttributeError: 'NoneType' object has no attribute 'get'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 147, in test_convert_parameter + self.fill_basic_config({'config_calibre': '--margin-right 11.9'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 394, in fill_basic_config + cls._fill_basic_config(elements) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 298, in _fill_basic_config + WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 468, in test_email_failed + self.setup_server(False, {'mail_password': '10234'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 734, in setup_server + ele = cls.driver.find_element(By.ID, key) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 428, in test_email_only + self.setup_server(True, {'mail_use_ssl': 'None', 'mail_password': '10234'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 729, in setup_server + select = Select(cls.driver.find_element(By.ID, key)) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown + if not self.check_user_logged_in('admin'): + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 113, in check_user_logged_in + user_element = cls.check_element_on_page((By.ID, "top_user")) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 746, in check_element_on_page + el = WebDriverWait(cls.driver, timeout).until(EC.presence_of_element_located(element)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 81, in until + value = method(self._driver) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 64, in _predicate + return driver.find_element(*locator) +AttributeError: 'NoneType' object has no attribute 'find_element'+