[Win] WPT server fails to start: datetime.strptime thows "ValueError: unconverted data remains" exception I'm using Win32 Python and openssl.exe of SlikSVN. PS C:\home\webkit\gc> python .\Tools\Scripts\run-webkit-httpd Starting web-platform-tests server on <http://localhost:8800/> and <https://localhost:9443/> WebKit http/wpt tests are accessible at <http://localhost:8800/WebKit/> Traceback (most recent call last): File ".\Tools\Scripts\run-webkit-httpd", line 42, in <module> sys.exit(main(sys.argv[1:], sys.stdout, sys.stderr)) File ".\Tools\Scripts\run-webkit-httpd", line 38, in main run_server(options, args, stdout, stderr) File "C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\servers\run_webkit_httpd.py", line 68, in run_server run_server_with_log_file(host, options, stdout, stderr, log_file) File "C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\servers\run_webkit_httpd.py", line 84, in run_server_with_log_file port.start_web_platform_test_server() File "C:\home\webkit\gc\Tools\Scripts\webkitpy\port\base.py", line 1034, in start_web_platform_test_server self._web_platform_test_server.start() File "C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\servers\http_server_base.py", line 98, in start self._pid = self._spawn_process() File "C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\servers\web_platform_test_server.py", line 141, in _spawn_process raise http_server_base.ServerError(error_log) webkitpy.layout_tests.servers.http_server_base.ServerError: WPT Server process exited prematurely with status code None The cmdline for running the WPT server was: ['python', 'C:\\home\\webkit\\gc\\LayoutTests\\imported\\w3c\\web-platform-tests\\wpt.py', 'serve', '--config', 'C:\\home\\webkit\\gc\\LayoutTests\\imported\\w3c\\web-platform-tests\\config.json'] The working dir was: C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests Check the logfile for the command at: C:\home\webkit\gc\WebKitBuild\Release\bin64\layout-test-results\wptwk_process_log.out.txt
Here are thee content of WebKitBuild/Release/bin64/layout-test-results/wptwk_process_log.out.txt WARNING:web-platform-tests:bind_hostname in config is deprecated; use bind_address instead WARNING:web-platform-tests:bind_hostname in config is deprecated; use bind_address instead DEBUG:web-platform-tests:notAfter=Aug 8 07:50:02 2020 GMT WARNING: can't open config file: /usr/local/ssl/openssl.cnf Traceback (most recent call last): File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\wpt.py", line 1, in <module> execfile("wpt") File "wpt", line 5, in <module> wpt.main() File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\tools\wpt\wpt.py", line 171, in main rv = script(*args, **kwargs) File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\tools\serve\serve.py", line 890, in run **kwargs) as config: File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\tools\wptserve\wptserve\config.py", line 271, in __enter__ data[key] = getattr(self, prefix + key)(data) File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\tools\wptserve\wptserve\config.py", line 347, in _get_ssl_config key_path, cert_path = self._ssl_env.host_cert_path(data["domains_set"]) File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\tools\wptserve\wptserve\sslutils\openssl.py", line 382, in host_cert_path key_cert = self._load_host_cert(hosts) File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\tools\wptserve\wptserve\sslutils\openssl.py", line 399, in _load_host_cert if self.check_key_cert(key_path, cert_path, hosts): File "C:\home\webkit\gc\LayoutTests\imported\w3c\web-platform-tests\tools\wptserve\wptserve\sslutils\openssl.py", line 329, in check_key_cert end_date = datetime.strptime(end_date_str, "%b %d %H:%M:%S %Y %Z") File "C:\Python27\lib\_strptime.py", line 335, in _strptime data_string[found.end():]) ValueError: unconverted data remains: WARNING: can't open config file: /usr/local/ssl/openssl.cnf
openssl.exe output a warning message. And, datetime.strptime fails to parse the time output by openssl.exe. The time string contains the extra warning string. "Aug 8 07:50:02 2020 GMT WARNING: can't open config file: /usr/local/ssl/openssl.cnf"
<rdar://problem/65853006>