diff --git a/cps/admin.py b/cps/admin.py index 91a16126..76275922 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -185,7 +185,6 @@ def update_thumbnails(): @login_required @admin_required def admin(): - locale = get_locale() version = updater_thread.get_current_version_info() if version is False: commit = _(u'Unknown') @@ -1460,7 +1459,7 @@ def download_debug(): def get_update_status(): if feature_support['updater']: log.info(u"Update status requested") - return updater_thread.get_available_updates(request.method, locale=get_locale()) + return updater_thread.get_available_updates(request.method) else: return '' diff --git a/cps/db.py b/cps/db.py index 21104622..f4dc4ccb 100644 --- a/cps/db.py +++ b/cps/db.py @@ -441,10 +441,13 @@ class CalibreDB: # instances alive once they reach the end of their respective scopes instances = WeakSet() - def __init__(self): + def __init__(self, expire_on_commit=True, init=False): """ Initialize a new CalibreDB session """ self.session = None + if init: + self.init_db(expire_on_commit) + def init_db(self, expire_on_commit=True): if self._init: diff --git a/cps/fs.py b/cps/fs.py index 2f83378d..996499c3 100644 --- a/cps/fs.py +++ b/cps/fs.py @@ -39,7 +39,7 @@ class FileSystem: makedirs(self._cache_dir) except OSError: self.log.info(f'Failed to create path {self._cache_dir} (Permission denied).') - return False + raise path = join(self._cache_dir, cache_type) if cache_type and not isdir(path): @@ -47,7 +47,7 @@ class FileSystem: makedirs(path) except OSError: self.log.info(f'Failed to create path {path} (Permission denied).') - return False + raise return path if cache_type else self._cache_dir @@ -58,7 +58,7 @@ class FileSystem: makedirs(path) except OSError: self.log.info(f'Failed to create path {path} (Permission denied).') - return False + raise return path @@ -75,7 +75,7 @@ class FileSystem: rmtree(self._cache_dir) except OSError: self.log.info(f'Failed to delete path {self._cache_dir} (Permission denied).') - return False + raise path = join(self._cache_dir, cache_type) if cache_type and isdir(path): @@ -83,7 +83,7 @@ class FileSystem: rmtree(path) except OSError: self.log.info(f'Failed to delete path {path} (Permission denied).') - return False + raise def delete_cache_file(self, filename, cache_type=None): path = self.get_cache_file_path(filename, cache_type) @@ -92,4 +92,4 @@ class FileSystem: remove(path) except OSError: self.log.info(f'Failed to delete path {path} (Permission denied).') - return False + raise diff --git a/cps/helper.py b/cps/helper.py index 7362eb9e..757e48da 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -1015,8 +1015,7 @@ def replace_cover_thumbnail_cache(book_id): def delete_thumbnail_cache(): - if config.schedule_generate_book_covers: - WorkerThread.add(None, TaskClearCoverThumbnailCache(-1)) + WorkerThread.add(None, TaskClearCoverThumbnailCache(-1)) def add_book_to_thumbnail_cache(book_id): diff --git a/cps/schedule.py b/cps/schedule.py index 9bc248f1..faadfb7e 100644 --- a/cps/schedule.py +++ b/cps/schedule.py @@ -62,7 +62,7 @@ def register_scheduled_tasks(reconnect=True): duration = config.schedule_duration # Register scheduled tasks - scheduler.schedule_tasks(tasks=get_scheduled_tasks(), trigger='cron', hour=start) + scheduler.schedule_tasks(tasks=get_scheduled_tasks(reconnect), trigger='cron', hour=start) end_time = calclulate_end_time(start, duration) scheduler.schedule(func=end_scheduled_tasks, trigger='cron', name="end scheduled task", hour=end_time.hour, minute=end_time.minute) diff --git a/cps/tasks/convert.py b/cps/tasks/convert.py index bc7e928a..3062850d 100644 --- a/cps/tasks/convert.py +++ b/cps/tasks/convert.py @@ -55,8 +55,7 @@ class TaskConvert(CalibreTask): def run(self, worker_thread): self.worker_thread = worker_thread if config.config_use_google_drive: - worker_db = db.CalibreDB() - worker_db.init_db(expire_on_commit=False) + worker_db = db.CalibreDB(expire_on_commit=False, init=True) cur_book = worker_db.get_book(self.book_id) self.title = cur_book.title data = worker_db.get_book_format(self.book_id, self.settings['old_book_format']) @@ -105,8 +104,7 @@ class TaskConvert(CalibreTask): def _convert_ebook_format(self): error_message = None - local_db = db.CalibreDB() - local_db.init_db(expire_on_commit=False) + local_db = db.CalibreDB(expire_on_commit=False, init=True) file_path = self.file_path book_id = self.book_id format_old_ext = u'.' + self.settings['old_book_format'].lower() diff --git a/cps/tasks/thumbnail.py b/cps/tasks/thumbnail.py index 2ecc57c8..ace9cecc 100644 --- a/cps/tasks/thumbnail.py +++ b/cps/tasks/thumbnail.py @@ -68,8 +68,7 @@ class TaskGenerateCoverThumbnails(CalibreTask): self.log = logger.create() self.book_id = book_id self.app_db_session = ub.get_new_session_instance() - self.calibre_db = db.CalibreDB() - self.calibre_db.init_db(expire_on_commit=False) + # self.calibre_db = db.CalibreDB(expire_on_commit=False, init=True) self.cache = fs.FileSystem() self.resolutions = [ constants.COVER_THUMBNAIL_SMALL, @@ -77,7 +76,7 @@ class TaskGenerateCoverThumbnails(CalibreTask): ] def run(self, worker_thread): - if self.calibre_db.session and use_IM and self.stat != STAT_CANCELLED and self.stat != STAT_ENDED: + if use_IM and self.stat != STAT_CANCELLED and self.stat != STAT_ENDED: self.message = 'Scanning Books' books_with_covers = self.get_books_with_covers(self.book_id) count = len(books_with_covers) @@ -112,11 +111,10 @@ class TaskGenerateCoverThumbnails(CalibreTask): def get_books_with_covers(self, book_id=-1): filter_exp = (db.Books.id == book_id) if book_id != -1 else True - return self.calibre_db.session \ - .query(db.Books) \ - .filter(db.Books.has_cover == 1) \ - .filter(filter_exp) \ - .all() + calibre_db = db.CalibreDB(expire_on_commit=False, init=True) + books_cover = calibre_db.session.query(db.Books).filter(db.Books.has_cover == 1).filter(filter_exp).all() + calibre_db.session.close() + return books_cover def get_book_cover_thumbnails(self, book_id): return self.app_db_session \ @@ -160,7 +158,7 @@ class TaskGenerateCoverThumbnails(CalibreTask): self.app_db_session.commit() self.generate_book_thumbnail(book, thumbnail) except Exception as ex: - self.log.info('Error creating book thumbnail: ' + str(ex)) + self.log.debug('Error creating book thumbnail: ' + str(ex)) self._handleError('Error creating book thumbnail: ' + str(ex)) self.app_db_session.rollback() @@ -172,7 +170,7 @@ class TaskGenerateCoverThumbnails(CalibreTask): self.cache.delete_cache_file(thumbnail.filename, constants.CACHE_TYPE_THUMBNAILS) self.generate_book_thumbnail(book, thumbnail) except Exception as ex: - self.log.info('Error updating book thumbnail: ' + str(ex)) + self.log.debug('Error updating book thumbnail: ' + str(ex)) self._handleError('Error updating book thumbnail: ' + str(ex)) self.app_db_session.rollback() @@ -200,7 +198,7 @@ class TaskGenerateCoverThumbnails(CalibreTask): img.save(filename=filename) except Exception as ex: # Bubble exception to calling function - self.log.info('Error generating thumbnail file: ' + str(ex)) + self.log.debug('Error generating thumbnail file: ' + str(ex)) raise ex finally: if stream is not None: @@ -239,8 +237,7 @@ class TaskGenerateSeriesThumbnails(CalibreTask): super(TaskGenerateSeriesThumbnails, self).__init__(task_message) self.log = logger.create() self.app_db_session = ub.get_new_session_instance() - self.calibre_db = db.CalibreDB() - self.calibre_db.init_db(expire_on_commit=False) + self.calibre_db = db.CalibreDB(expire_on_commit=False, init=True) self.cache = fs.FileSystem() self.resolutions = [ constants.COVER_THUMBNAIL_SMALL, @@ -337,7 +334,7 @@ class TaskGenerateSeriesThumbnails(CalibreTask): self.app_db_session.commit() self.generate_series_thumbnail(series_books, thumbnail) except Exception as ex: - self.log.info('Error creating book thumbnail: ' + str(ex)) + self.log.debug('Error creating book thumbnail: ' + str(ex)) self._handleError('Error creating book thumbnail: ' + str(ex)) self.app_db_session.rollback() @@ -349,7 +346,7 @@ class TaskGenerateSeriesThumbnails(CalibreTask): self.cache.delete_cache_file(thumbnail.filename, constants.CACHE_TYPE_THUMBNAILS) self.generate_series_thumbnail(series_books, thumbnail) except Exception as ex: - self.log.info('Error updating book thumbnail: ' + str(ex)) + self.log.debug('Error updating book thumbnail: ' + str(ex)) self._handleError('Error updating book thumbnail: ' + str(ex)) self.app_db_session.rollback() @@ -393,7 +390,7 @@ class TaskGenerateSeriesThumbnails(CalibreTask): canvas.composite(img, left, top) except Exception as ex: - self.log.info('Error generating thumbnail file: ' + str(ex)) + self.log.debug('Error generating thumbnail file: ' + str(ex)) raise ex finally: if stream is not None: @@ -450,18 +447,18 @@ class TaskClearCoverThumbnailCache(CalibreTask): super(TaskClearCoverThumbnailCache, self).__init__(task_message) self.log = logger.create() self.book_id = book_id - self.calibre_db = db.CalibreDB() - self.calibre_db.init_db(expire_on_commit=False) self.app_db_session = ub.get_new_session_instance() self.cache = fs.FileSystem() def run(self, worker_thread): if self.app_db_session: if self.book_id == 0: # delete superfluous thumbnails - thumbnails = (self.calibre_db.session.query(ub.Thumbnail) + calibre_db = db.CalibreDB(expire_on_commit=False, init=True) + thumbnails = (calibre_db.session.query(ub.Thumbnail) .join(db.Books, ub.Thumbnail.entity_id == db.Books.id, isouter=True) .filter(db.Books.id == None) .all()) + calibre_db.session.close() elif self.book_id > 0: # make sure single book is selected thumbnails = self.get_thumbnails_for_book(self.book_id) if self.book_id < 0: @@ -489,7 +486,7 @@ class TaskClearCoverThumbnailCache(CalibreTask): .delete() self.app_db_session.commit() except Exception as ex: - self.log.info('Error deleting book thumbnail: ' + str(ex)) + self.log.debug('Error deleting book thumbnail: ' + str(ex)) self._handleError('Error deleting book thumbnail: ' + str(ex)) def delete_all_thumbnails(self): @@ -498,7 +495,7 @@ class TaskClearCoverThumbnailCache(CalibreTask): self.app_db_session.commit() self.cache.delete_cache_dir(constants.CACHE_TYPE_THUMBNAILS) except Exception as ex: - self.log.info('Error deleting thumbnail directory: ' + str(ex)) + self.log.debug('Error deleting thumbnail directory: ' + str(ex)) self._handleError('Error deleting thumbnail directory: ' + str(ex)) @property diff --git a/cps/templates/schedule_edit.html b/cps/templates/schedule_edit.html index 55658ce7..83dd6c68 100644 --- a/cps/templates/schedule_edit.html +++ b/cps/templates/schedule_edit.html @@ -33,7 +33,7 @@
').replace('\n', '
')]) @@ -418,7 +418,7 @@ class Updater(threading.Thread): log_function("Excluded file list for updater not found, or not accessible") return excluded_files - def _nightly_available_updates(self, request_method, locale): + def _nightly_available_updates(self, request_method): tz = datetime.timedelta(seconds=time.timezone if (time.localtime().tm_isdst == 0) else time.altzone) if request_method == "GET": repository_url = _REPOSITORY_API_URL @@ -459,14 +459,14 @@ class Updater(threading.Thread): update_data['committer']['date'], '%Y-%m-%dT%H:%M:%SZ') - tz parents.append( [ - format_datetime(new_commit_date, format='short', locale=locale), + format_datetime(new_commit_date, format='short'), update_data['message'], update_data['sha'] ] ) # it only makes sense to analyze the parents if we know the current commit hash if status['current_commit_hash'] != '': - parents = self._populate_parent_commits(update_data, status, locale, tz, parents) + parents = self._populate_parent_commits(update_data, status, tz, parents) status['history'] = parents[::-1] except (IndexError, KeyError): status['success'] = False @@ -595,7 +595,7 @@ class Updater(threading.Thread): return json.dumps(status) def _get_request_path(self): - if config.config_updatechannel == constants.UPDATE_STABLE: + if self.config.config_updatechannel == constants.UPDATE_STABLE: return self.updateFile return _REPOSITORY_API_URL + '/zipball/master' @@ -623,7 +623,7 @@ class Updater(threading.Thread): status['message'] = _(u'HTTP Error') + ': ' + commit['message'] else: status['message'] = _(u'HTTP Error') + ': ' + str(e) - except requests.exceptions.ConnectionError: + except requests.exceptions.ConnectionError as e: status['message'] = _(u'Connection error') except requests.exceptions.Timeout: status['message'] = _(u'Timeout while establishing connection') diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index cf3e893d..913913b1 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
Start Time: 2022-04-27 19:55:57
+Start Time: 2022-04-29 21:17:05
Stop Time: 2022-04-28 01:28:47
+Stop Time: 2022-04-30 03:15:20
Duration: 4h 34 min
+Duration: 5h 5 min
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 198, in test_convert_email + self.assertTrue("E-mail" in ret[-1]['task']) +AssertionError: False is not true+
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 441, in test_thumbnail_cache - self.assertTrue(os.path.exists(thumbnail_cache_path)) -AssertionError: False is not true+ File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 442, in test_thumbnail_cache + self.assertEqual(10*2, count_files(thumbnail_cache_path)) +AssertionError: 20 != 0
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 931, in test_watch_metadata + self.assertNotIn('series', book) +AssertionError: 'series' unexpectedly found in {'id': 5, 'reader': [], 'title': 'testbook', 'author': ['John Döe'], 'rating': 0, 'languages': ['English'], 'identifier': [], 'cover': '/cover/5/og?c=1651263008', 'tag': [], 'publisher': ['Randomhäus'], 'pubdate': 'Jan 19, 2017', 'comment': 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Aenean commodo ligula eget dolor.Aenean massa.Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.Nulla consequat massa quis enim.Donec pede justo, fringilla vel, aliquet nec, vulputate', 'add_shelf': [], 'del_shelf': [], 'edit_enable': True, 'kindle': None, 'kindlebtn': None, 'download': ['EPUB (6.7 kB)'], 'read': False, 'archived': False, 'series_all': 'Book 1 of test', 'series_index': '1', 'series': 'test', 'cust_columns': []}+
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556c4d49d0>: 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_kobo_sync.py", line 582, in test_book_download - data = self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556c4d49d0>: Failed to establish a new connection: [Errno 111] Connection refused'))-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 579, in test_kobo_about - self.assertTrue(self.goto_page('nav_about')) -AssertionError: False is not true-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556dfa7c10>: 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_kobo_sync.py", line 601, in test_kobo_sync_selected_shelfs - data = self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556dfa7c10>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556c3f18b0>: 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_kobo_sync.py", line 651, in test_kobo_upload_book - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556c3f18b0>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556e0fe880>: 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_kobo_sync.py", line 446, in test_shelves_add_remove_books - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556e0fe880>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556e17b130>: 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_kobo_sync.py", line 276, in test_sync_changed_book - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556e17b130>: Failed to establish a new connection: [Errno 111] Connection refused'))-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 229, in test_sync_invalid - r = requests.post(self.kobo_adress+'x/v1/auth/device', json=payload, timeout=10) -TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556e17bbb0>: 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_kobo_sync.py", line 513, in test_sync_reading_state - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556e17bbb0>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556df84580>: 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_kobo_sync.py", line 295, in test_sync_shelf - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556df84580>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556e136400>: 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_kobo_sync.py", line 242, in test_sync_unchanged - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556e136400>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556df22cd0>: 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_kobo_sync.py", line 256, in test_sync_upload - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 66, in inital_sync - self.get_book_details(5) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1453, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556df22cd0>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556e71a3a0>: 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_kobo_sync.py", line 54, in tearDownClass - cls.driver.get("http://127.0.0.1:8083") - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=56063): Max retries exceeded with url: /session/21347810-0a1a-4767-8af4-ec8dc4e9d838/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556e71a3a0>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f556dfafaf0>: 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_kobo_sync_big.py", line 61, in tearDownClass - cls.driver.get("http://127.0.0.1:8083") - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=47809): Max retries exceeded with url: /session/5fa54894-d9db-4e84-ae80-296a5f6c85fb/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f556dfafaf0>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f555ff86280>: 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_reverse_proxy.py", line 37, in tearDownClass - cls.driver.get('http://' + get_Host_IP() + ':8083') - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 437, in get - self.execute(Command.GET, {'url': url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=58627): Max retries exceeded with url: /session/d45b05f4-c689-4cdf-9ed6-19561cd0e50e/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f555ff86280>: Failed to establish a new connection: [Errno 111] Connection refused'))-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 27, in setUpClass - cls.proxy = Proxy() - File "/home/ozzie/Development/calibre-web-test/test/helper_proxy.py", line 305, in __init__ - self.m = DumpMaster(opts, with_termlog=False, with_dumper=False) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/tools/dump.py", line 28, in __init__ - self.addons.add(*addons.default_addons()) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/addonmanager.py", line 199, in add - self.chain.append(self.register(i)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/addonmanager.py", line 184, in register - self.invoke_addon(addon, LoadHook(l)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/addonmanager.py", line 264, in invoke_addon - func(*event.args()) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/addons/proxyserver.py", line 101, in load - loader.add_option( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/addonmanager.py", line 91, in add_option - ctx.log.warn("Over-riding existing option %s" % name) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/log.py", line 55, in warn - self(txt, "warn") - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/mitmproxy/log.py", line 64, in __call__ - asyncio.get_event_loop().call_soon( - File "/usr/lib/python3.8/asyncio/base_events.py", line 719, in call_soon - self._check_closed() - File "/usr/lib/python3.8/asyncio/base_events.py", line 508, in _check_closed - raise RuntimeError('Event loop is closed') -RuntimeError: Event loop is closed-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_zz_helper.py", line 25, in setUpClass - from cps import helper, updater - File "/home/ozzie/Development/calibre-web/cps/helper.py", line 53, in <module> - from .tasks.convert import TaskConvert - File "/home/ozzie/Development/calibre-web/cps/tasks/convert.py", line 36, in <module> - from cps.tasks.mail import TaskEmail - File "/home/ozzie/Development/calibre-web/cps/tasks/mail.py", line 36, in <module> - from cps import gdriveutils - File "/home/ozzie/Development/calibre-web/cps/gdriveutils.py", line 145, in <module> - engine = create_engine('sqlite:///{0}'.format(cli_param.gd_path), echo=False) -AttributeError: 'CliParameter' object has no attribute 'gd_path'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f555fed7e50>: 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_kobo_sync_big.py", line 471, in test_download_cover - self.fill_thumbnail_config({'schedule_generate_book_covers': 1}) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 238, in fill_thumbnail_config - ele = cls.driver.find_element(By.ID, checkbox) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 1248, in find_element - return self.execute(Command.FIND_ELEMENT, { - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=47809): Max retries exceeded with url: /session/5fa54894-d9db-4e84-ae80-296a5f6c85fb/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f555fed7e50>: 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.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f555fed7910>: 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_kobo_sync_big.py", line 334, in test_kobo_sync_multi_user - self.create_user('user1', {'password': '123', 'email': 'ada@b.com', "edit_role": 1, "download_role": 1}) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1008, in create_user - return cls.change_user(config) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1062, in change_user - ele = cls.driver.find_element(By.ID, checkbox) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 1248, in find_element - return self.execute(Command.FIND_ELEMENT, { - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=47809): Max retries exceeded with url: /session/5fa54894-d9db-4e84-ae80-296a5f6c85fb/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f555fed7910>: Failed to establish a new connection: [Errno 111] Connection refused'))-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 271, in test_kobo_sync_selected_shelves - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 82, in inital_sync - r = requests.post(kobo_address + '/v1/auth/device', json=payload, timeout=1000) -TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 173, in test_sync_changed_book - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 82, in inital_sync - r = requests.post(kobo_address + '/v1/auth/device', json=payload, timeout=1000) -TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 248, in test_sync_reading_state - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 82, in inital_sync - r = requests.post(kobo_address + '/v1/auth/device', json=payload, timeout=1000) -TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 204, in test_sync_shelf - self.inital_sync() - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync_big.py", line 82, in inital_sync - r = requests.post(kobo_address + '/v1/auth/device', json=payload, timeout=1000) -TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ldap.py", line 1047, in test_ldap_kobo_sync - self.check_element_on_page((By.ID, "config_create_kobo_token")).click() -AttributeError: 'bool' object has no attribute 'click'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ldap.py", line 922, in test_ldap_opds_anonymous - self.fill_basic_config({'config_ldap_provider_url': '127.0.0.1', - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 387, in fill_basic_config - cls._fill_basic_config(elements) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 297, 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.8/site-packages/selenium/webdriver/support/wait.py", line 89, in until - raise TimeoutException(message, screen, stacktrace) -selenium.common.exceptions.TimeoutException: Message: -Stacktrace: -WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5 -NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:395:5 -element.find/</<@chrome://remote/content/marionette/element.js:300:16-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ldap.py", line 832, in test_ldap_opds_download_book - self.fill_basic_config({'config_ldap_provider_url': '127.0.0.1', - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 387, in fill_basic_config - cls._fill_basic_config(elements) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 297, 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.8/site-packages/selenium/webdriver/support/wait.py", line 89, in until - raise TimeoutException(message, screen, stacktrace) -selenium.common.exceptions.TimeoutException: Message: -Stacktrace: -WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5 -NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:395:5 -element.find/</<@chrome://remote/content/marionette/element.js:300:16-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_logging.py", line 249, in test_debuginfo_download - self.assertEqual(resp.headers['Content-Type'], 'application/zip') -AssertionError: 'text/html; charset=utf-8' != 'application/zip' -- text/html; charset=utf-8 -+ application/zip-
ImportError: Failed to import test module: test_pip_install -Traceback (most recent call last): - File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path - module = self._get_module_from_name(name) - File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name - __import__(name) - File "/home/ozzie/Development/calibre-web-test/test/test_pip_install.py", line 15, in <module> - from build import make_release - File "/home/ozzie/Development/calibre-web-test/build/make_release.py", line 14, in <module> - from helper_environment import environment, add_dependency -ImportError: cannot import name 'add_dependency' from 'helper_environment' (/home/ozzie/Development/calibre-web-test/test/helper_environment.py)-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_reader.py", line 230, in test_sound_listener - self.sound_test('music.flac', 'Unknown - music', '0:02') - File "/home/ozzie/Development/calibre-web-test/test/test_reader.py", line 197, in sound_test - self.assertTrue(os.path.splitext(file_name)[1][1:] in listen_button.text) -AttributeError: 'bool' object has no attribute 'text'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn - conn = connection.create_connection( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection - raise err - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen - httplib_response = self._make_request( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/connection.py", line 239, in request - super(HTTPConnection, self).request(method, url, body=body, headers=headers) - File "/usr/lib/python3.8/http/client.py", line 1256, in request - self._send_request(method, url, body, headers, encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request - self.endheaders(body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders - self._send_output(message_body, encode_chunked=encode_chunked) - File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output - self.send(msg) - File "/usr/lib/python3.8/http/client.py", line 951, in send - self.connect() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect - conn = self._new_conn() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn - raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f555ff994f0>: 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_reverse_proxy.py", line 48, in test_logout - self.logout() - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 104, in logout - logout = cls.check_element_on_page((By.ID, "logout")) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 739, 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.8/site-packages/selenium/webdriver/support/wait.py", line 78, in until - value = method(self._driver) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/selenium/webdriver/remote/webdriver.py", line 1248, in find_element - return self.execute(Command.FIND_ELEMENT, { - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 423, in execute - response = self.command_executor.execute(driver_command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 316, in execute - return self._request(command_info[0], url, body=data) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 338, in _request - resp = self._conn.request(method, url, body=body, headers=headers) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/request.py", line 78, in request - return self.request_encode_body( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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.8/site-packages/urllib3/poolmanager.py", line 375, in urlopen - response = conn.urlopen(method, u.request_uri, **kw) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 813, in urlopen - return self.urlopen( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen - retries = retries.increment( - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.8/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=58627): Max retries exceeded with url: /session/d45b05f4-c689-4cdf-9ed6-19561cd0e50e/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f555ff994f0>: Failed to establish a new connection: [Errno 111] Connection refused'))-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_reverse_proxy.py", line 56, in test_move_page - self.assertTrue(self.goto_page("admin_setup")) -AssertionError: False is not true-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_reverse_proxy.py", line 45, in test_reverse_about - self.assertTrue(self.goto_page('nav_about')) -AssertionError: False is not true-