diff --git a/cps/server.py b/cps/server.py index 8a740b28..ed5913bb 100644 --- a/cps/server.py +++ b/cps/server.py @@ -288,5 +288,7 @@ class WebServer(object): if _GEVENT: self.wsgiserver.close() else: - self.wsgiserver.call_later(1.0, self.wsgiserver.stop) - # self.wsgiserver.add_callback() + if restart: + self.wsgiserver.call_later(1.0, self.wsgiserver.stop) + else: + self.wsgiserver.add_callback_from_signal(self.wsgiserver.stop) diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index a1676791..31b7c621 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
Start Time: 2023-10-05 14:17:33
+Start Time: 2023-10-11 19:32:23
Stop Time: 2023-10-05 20:50:36
+Stop Time: 2023-10-12 01:29:49
Duration: 5h 26 min
+Duration: 4h 56 min
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_backup_metadata.py", line 49, in test_backup_all + self.assertEqual(1, len(res)) +AssertionError: 1 != 0+
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_cli.py", line 441, in test_change_password - self.driver.get("http://127.0.0.1:8083") -selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=connectionFailure&u=http%3A//127.0.0.1%3A8083/&c=UTF-8&d=Firefox%20can%E2%80%99t%20establish%20a%20connection%20to%20the%20server%20at%20127.0.0.1%3A8083. -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -UnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:768:5 -checkReadyState@chrome://remote/content/marionette/navigate.sys.mjs:59:24 -onNavigation@chrome://remote/content/marionette/navigate.sys.mjs:327:39 -emit@resource://gre/modules/EventEmitter.sys.mjs:154:20 -receiveMessage@chrome://remote/content/marionette/actors/MarionetteEventsParent.sys.mjs:33:25 - - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_cli.py", line 451, in test_change_password - self.assertFalse(e) -AssertionError: WebDriverException() is not false-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_cli.py", line 277, in test_cli_SSL_files - self.driver.get("https://127.0.0.1:8083") -selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=connectionFailure&u=https%3A//127.0.0.1%3A8083/&c=UTF-8&d=Firefox%20can%E2%80%99t%20establish%20a%20connection%20to%20the%20server%20at%20127.0.0.1%3A8083. -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -UnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:768:5 -checkReadyState@chrome://remote/content/marionette/navigate.sys.mjs:59:24 -onNavigation@chrome://remote/content/marionette/navigate.sys.mjs:327:39 -emit@resource://gre/modules/EventEmitter.sys.mjs:154:20 -receiveMessage@chrome://remote/content/marionette/actors/MarionetteEventsParent.sys.mjs:33:25 - - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_cli.py", line 279, in test_cli_SSL_files - self.assertIsNone("Error", "HTTPS Connection could not established with key/cert file") -AssertionError: 'Error' is not None : HTTPS Connection could not established with key/cert file-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_cli.py", line 116, in test_cli_different_settings_database - self.driver.refresh() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 663, in refresh - self.execute(Command.REFRESH) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute - self.error_handler.check_response(response) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response - raise exception_class(message, screen, stacktrace) -selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=connectionFailure&u=http%3A//127.0.0.1%3A8083/&c=UTF-8&d=Firefox%20can%E2%80%99t%20establish%20a%20connection%20to%20the%20server%20at%20127.0.0.1%3A8083. -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -UnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:768:5 -checkReadyState@chrome://remote/content/marionette/navigate.sys.mjs:59:24 -onNavigation@chrome://remote/content/marionette/navigate.sys.mjs:327:39 -emit@resource://gre/modules/EventEmitter.sys.mjs:154:20 -receiveMessage@chrome://remote/content/marionette/actors/MarionetteEventsParent.sys.mjs:33:25-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_cli.py", line 402, in test_settingsdb_not_writeable - self.driver.get("http://127.0.0.1:8083") -selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=connectionFailure&u=http%3A//127.0.0.1%3A8083/&c=UTF-8&d=Firefox%20can%E2%80%99t%20establish%20a%20connection%20to%20the%20server%20at%20127.0.0.1%3A8083. -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -UnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:768:5 -checkReadyState@chrome://remote/content/marionette/navigate.sys.mjs:59:24 -onNavigation@chrome://remote/content/marionette/navigate.sys.mjs:327:39 -emit@resource://gre/modules/EventEmitter.sys.mjs:154:20 -receiveMessage@chrome://remote/content/marionette/actors/MarionetteEventsParent.sys.mjs:33:25 - - -During handling of the above exception, another exception occurred: - -Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_cli.py", line 410, in test_settingsdb_not_writeable - self.assertFalse(True, "Inital config failed with nonwriteable database") -AssertionError: True is not false : Inital config failed with nonwriteable database-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_kepubify_gdrive.py", line 176, in test_convert_only - self.assertEqual(ret[-1]['result'], 'Finished') -AssertionError: 'Started' != 'Finished' -- Started -+ Finished-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 415, in test_edit_series - self.get_book_details(9) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1470, in get_book_details - cls.driver.get(root_url + "/book/" + str(id)) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 449, in get - self.execute(Command.GET, {"url": url}) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute - self.error_handler.check_response(response) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response - raise exception_class(message, screen, stacktrace) -selenium.common.exceptions.TimeoutException: Message: Navigation timed out after 300000 ms -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -TimeoutError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:691:5 -bail@chrome://remote/content/marionette/sync.sys.mjs:211:19-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 120, in test_edit_title - self.fill_basic_config({"config_unicode_filename": 1}) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 399, in fill_basic_config - cls._fill_basic_config(elements) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 303, in _fill_basic_config - WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 95, in until - raise TimeoutException(message, screen, stacktrace) -selenium.common.exceptions.TimeoutException: Message: -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:507:5 -dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:132:16-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 825, in test_upload_book_lit - self.fill_basic_config({'config_uploading': 1}) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 399, in fill_basic_config - cls._fill_basic_config(elements) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 303, in _fill_basic_config - WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 95, in until - raise TimeoutException(message, screen, stacktrace) -selenium.common.exceptions.TimeoutException: Message: -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:507:5 -dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:132:16-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 916, in test_watch_metadata - self.assertTrue(button) -AssertionError: False is not true-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_reader.py", line 271, in test_comic_MACOS_files - right.click() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 93, in click - self._execute(Command.CLICK_ELEMENT) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute - return self._parent.execute(command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute - self.error_handler.check_response(response) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response - raise exception_class(message, screen, stacktrace) -selenium.common.exceptions.ElementNotInteractableException: Message: Element <div id="right" class="arrow"> could not be scrolled into view -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5 -ElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:349:5 -webdriverClickElement@chrome://remote/content/marionette/interaction.sys.mjs:150:11 -interaction.clickElement@chrome://remote/content/marionette/interaction.sys.mjs:119:11 -clickElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:202:29 -receiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:84:31-
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_thumbnails.py", line 311, in test_sideloaded_book + self.assertAlmostEqual(diff(BytesIO(list_cover), BytesIO(old_list_cover), delete_diff_file=True), 0.0, +AssertionError: 0.004399004046062869 != 0.0 within 0.0001 delta (0.004399004046062869 difference)+