./mach web-platform-tests fails with "EnvironmentError: https server on port 8443 failed to start"

RESOLVED INVALID

Status

Testing
web-platform-tests
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: birtles, Unassigned)

Tracking

Trunk
x86_64
Windows 10
Points:
---

Firefox Tracking Flags

(firefox46 affected)

Details

(Reporter)

Description

3 years ago
$ ./mach web-platform-tests testing/web-platform/tests/web-animations/
 0:01.87 LOG: MainThread INFO Using 1 client processes
Socket error on port 8443
Process Process-7:
Traceback (most recent call last):
  File "c:\mozilla-build\python\lib\multiprocessing\process.py", line 258, in _bootstrap
    self.run()
  File "c:\mozilla-build\python\lib\multiprocessing\process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "c:\moz\src\testing\web-platform\tests\tools\serve\serve.py", line 146, in create_daemon
    ssl_config, **kwargs)
  File "c:\moz\src\testing\web-platform\tests\tools\serve\serve.py", line 266, in start_https_server
    latency=kwargs.get("latency"))
  File "c:\moz\src\testing\web-platform\tests\tools\wptserve\wptserve\server.py", line 417, in __init__
    latency=latency)
  File "c:\moz\src\testing\web-platform\tests\tools\wptserve\wptserve\server.py", line 164, in __init__
    BaseHTTPServer.HTTPServer.__init__(self, hostname_port, RequestHandlerClass, **kwargs)
  File "c:\mozilla-build\python\lib\SocketServer.py", line 420, in __init__
    self.server_bind()
  File "c:\mozilla-build\python\lib\BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "c:\mozilla-build\python\lib\SocketServer.py", line 434, in server_bind
    self.socket.bind(self.server_address)
  File "c:\mozilla-build\python\lib\socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 10013] アクセス許可で禁じられた方法でソケットにアクセスしようとし ました。
 0:04.40 LOG: MainThread INFO Closing logging queue
 0:04.40 LOG: MainThread INFO queue closed
Error running mach:

    ['web-platform-tests', 'testing/web-platform/tests/web-animations/']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

EnvironmentError: https server on port 8443 failed to start

  File "c:\moz\src\testing/web-platform/mach_commands.py", line 283, in run_web_platform_tests
    return wpt_runner.run_tests(**params)
  File "c:\moz\src\testing/web-platform/mach_commands.py", line 72, in run_tests
    result = wptrunner.run_tests(**kwargs)
  File "c:\moz\src\testing/web-platform/harness\wptrunner\wptrunner.py", line 155, in run_tests
    test_environment.ensure_started()
  File "c:\moz\src\testing/web-platform/harness\wptrunner\environment.py", line 214, in ensure_started
    raise EnvironmentError("%s server on port %d failed to start" % (scheme, port))


The line:
アクセス許可で禁じられた方法でソケットにアクセスしようとしました
means "Tried to access socket with a method prohibited by access permission"

This is a standard Windows 10 install. I don't have any special firewall configuration (and I *thought* web-platform-tests used to work but I could be wrong.)

I tried with --ssl-type none but it just gets stuck in a loop with some failure.
(Reporter)

Comment 1

3 years ago
Let me know if there's anything I can do to help fix or workaround this.
Hmm. I thought this worked for me when I tried it a while ago. You don't have any anti-virus or similar that might be blocking access to the port? That seems to be an issue some other people have had that led to the same error.
(Reporter)

Comment 3

3 years ago
Thanks for your help James!

I worked it out. vmware-hostd.exe uses the same port, 8443. I wonder, Is there anyway to specify the port when running mach web-platform-tests?
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.