run_web_tests.py fails starting http server |
|||||
Issue description
$ third_party/blink/tools/run_web_tests.py --debug http/tests/devtools/oopif/oopif-performance-cpu-profiles.js
Using port 'linux-trusty'
Test configuration: <trusty, x86_64, debug>
View the test results at file:///usr/local/google/home/neis/chromium/src/out/Debug/layout-test-results/results.html
Using random order with seed: 1530781953
Baseline search path: linux -> win -> generic
Using Debug build
Pixel tests enabled
Regular timeout: 18000, slow test timeout: 90000
Command line: /usr/local/google/home/neis/chromium/src/out/Debug/content_shell --run-web-tests --ignore-certificate-errors-spki-list=Nxvaj3+bY3oVrTc+Jp7m3E3sB1n3lXtnMDCyBsqEXiY=,55qC1nKu2A88ESbFmk5sTPQS/ScG+8DD7P+2bgFA9iM= --user-data-dir --enable-crash-reporter --crash-dumps-dir=/usr/local/google/home/neis/chromium/src/out/Debug/crash-dumps -
Found 1 test; running 1, skipping 0.
Starting HTTP server ...apache2: Syntax error on line 33 of /usr/local/google/home/neis/chromium/src/third_party/blink/tools/apache_config/debian-httpd-2.4.conf: No matches for the wildcard 'php*.load' in '/etc/apache2/mods-available', failing (use IncludeOptional if required)
logging httpd errors, if any
httpd returncode None
httpd no stderr handle
httpd no error log
ServerError raised: Failed to start httpd: no pid file found
Traceback (most recent call last):
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/run_webkit_tests.py", line 66, in main
return run(port, options, args, stderr, stdout).exit_code
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/run_webkit_tests.py", line 592, in run
run_details = _run_tests(port, options, args, printer)
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/run_webkit_tests.py", line 583, in _run_tests
return manager.run(args)
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/controllers/manager.py", line 160, in run
self._start_servers(tests_to_run)
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/controllers/manager.py", line 416, in _start_servers
self._port.start_http_server(additional_dirs={}, number_of_drivers=self._options.max_locked_shards)
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/port/base.py", line 1215, in start_http_server
server.start()
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/servers/server_base.py", line 102, in start
self._pid = self._spawn_process()
File "/usr/local/google/home/neis/chromium/src/third_party/blink/tools/blinkpy/web_tests/servers/apache_http.py", line 161, in _spawn_process
raise server_base.ServerError('Failed to start %s: no pid file found' % self._name)
ServerError: Failed to start httpd: no pid file found
,
Jul 5
It might sound silly, but do you have PHP installed, more specifically libapache2-mod-php7.whatever (I think install-build-deps.sh covers that)?
,
Jul 5
Thanks. No, I didn't have it installed and I didn't need it until now. I used to run blink tests with third_party/WebKit/Tools/Scripts/run-webkit-tests successfully. I'm wondering why 'gclient sync' does not take care of installing such dependencies.
,
Jul 5
,
Jul 5
> I used to run blink tests with third_party/WebKit/Tools/Scripts/run-webkit-tests successfully. Were you running http tests in the past as well? Since the Apache configuration files haven't changed recently, the only reason I can think of for it having worked before is that you didn't need Apache and were only running tests outside LayoutTests/http.
,
Jul 5
Yes I was running http tests before. It's possible that I lost the dependencies when switching my workstation from goobunto to glinux. Anyway, thanks for the help.
,
Nov 21
I started to have this issue a while after I switch to run_web_tests.py. I run it with no issue on my desktop. Today I am using remote desktop, and run into this issue, not sure whether chromoting is related. build/install-build-deps.sh doesn't help. gclient sync doesn't help as well. What else can I try?
,
Nov 21
Reopen this issue.
,
Nov 21
Can you paste the errors you're getting and let us know which tests you're trying to run?
,
Nov 21
It's interesting that only virtual test has this issue. I've just tried normal layout tests with no problem.
python third_party/blink/tools/run_web_tests.py virtual/custom-user-timing/ --num-retries=1 -t Default
===============================
maxlg@maxlg0:~/Develop/gitRepo/chrome/chromium/src$ python third_party/blink/tools/run_web_tests.py virtual/custom-user-timing/ --num-retries=1 -t Default
Using port 'linux-trusty'
Test configuration: <trusty, x86_64, debug>
View the test results at file:///usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/out/Default/layout-test-results/results.html
Using random order with seed: 1542824162
Baseline search path: linux -> win -> generic
Using Debug build
Regular timeout: 18000, slow test timeout: 90000
Command line: /usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/out/Default/content_shell --run-web-tests --ignore-certificate-errors-spki-list=Nxvaj3+bY3oVrTc+Jp7m3E3sB1n3lXtnMDCyBsqEXiY=,55qC1nKu2A88ESbFmk5sTPQS/ScG+8DD7P+2bgFA9iM=,0Rt4mT6SJXojEMHTnKnlJ/hBKMBcI4kteBlhR1eTTdk= --user-data-dir --enable-crash-reporter --crash-dumps-dir=/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/out/Default/crash-dumps -
Found 3 tests; running 3, skipping 0.
Clobbering excess archived results in /usr/local/google/home/maxlg/Develop/gitRe logging httpd errors, if any
httpd returncode None
httpd no stderr handle
httpd error log (/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/out/Default/layout-test-results/error_log.txt) contents:
[Wed Nov 21 13:16:04.177869 2018] [ssl:emerg] [pid 159023] AH02562: Failed to configure certificate 127.0.0.1:443:0 (with chain), check /usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/apache_config/webkit-httpd.pem
[Wed Nov 21 13:16:04.177938 2018] [ssl:emerg] [pid 159023] SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
AH00016: Configuration Failed
ServerError raised: Failed to start httpd: no pid file found
Traceback (most recent call last):
File "/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/blinkpy/web_tests/run_webkit_tests.py", line 68, in main
return run(port, options, args, printer).exit_code
File "/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/blinkpy/web_tests/run_webkit_tests.py", line 593, in run
run_details = manager.run(args)
File "/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/blinkpy/web_tests/controllers/manager.py", line 160, in run
self._start_servers(tests_to_run)
File "/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/blinkpy/web_tests/controllers/manager.py", line 404, in _start_servers
self._port.start_http_server(additional_dirs={}, number_of_drivers=self._options.max_locked_shards)
File "/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/blinkpy/web_tests/port/base.py", line 1173, in start_http_server
server.start()
File "/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/blinkpy/web_tests/servers/server_base.py", line 102, in start
self._pid = self._spawn_process()
File "/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/blinkpy/web_tests/servers/apache_http.py", line 161, in _spawn_process
raise server_base.ServerError('Failed to start %s: no pid file found' % self._name)
ServerError: Failed to start httpd: no pid file found
,
Nov 21
Probably due to this error, which i don't see from the initial bug of neis@. httpd error log (/usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/out/Default/layout-test-results/error_log.txt) contents: [Wed Nov 21 13:36:38.822416 2018] [ssl:emerg] [pid 164692] AH02562: Failed to configure certificate 127.0.0.1:443:0 (with chain), check /usr/local/google/home/maxlg/Develop/gitRepo/chrome/chromium/src/third_party/blink/tools/apache_config/webkit-httpd.pem [Wed Nov 21 13:36:38.822484 2018] [ssl:emerg] [pid 164692] SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small AH00016: Configuration Failed
,
Nov 21
Right, so that's a different error from the one originally reported here. The best thing would be to file a new bug to track it -- can you CC myself and robertma@?
,
Nov 21
As it's a different bug, closing this. Opened a bug in crbug/907584. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by neis@chromium.org
, Jul 5