Closed Bug 1751295 Opened 3 years ago Closed 3 years ago

Intermittent mozilla/tests/webdriver/protocol/allow_origins.py | <testname> - ConnectionRefusedError: [Errno 111] Connection refused

Categories

(Remote Protocol :: Marionette, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1785890

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: nerli [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=364889813&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Us_B_htcT_-tfJjEutgyIA/runs/0/artifacts/public/logs/live_backing.log


[task 2022-01-20T22:35:21.259Z] 22:35:21     INFO - TEST-START | /_mozilla/webdriver/protocol/allow_origins.py
[task 2022-01-20T22:35:21.309Z] 22:35:21     INFO - STDOUT: ============================= test session starts ==============================
[task 2022-01-20T22:35:21.310Z] 22:35:21     INFO - STDOUT: platform linux -- Python 3.6.9, pytest-6.1.1, py-1.5.2, pluggy-unknown -- /builds/worker/workspace/build/venv/bin/python
[task 2022-01-20T22:35:21.311Z] 22:35:21     INFO - STDOUT: rootdir: /builds/worker/workspace/build
[task 2022-01-20T22:35:21.312Z] 22:35:21     INFO - STDOUT: plugins: asyncio-0.14.0
[task 2022-01-20T22:35:21.313Z] 22:35:21     INFO - STDOUT: collecting ... 
[task 2022-01-20T22:35:21.317Z] 22:35:21     INFO - STDOUT: collected 6 items
[task 2022-01-20T22:35:21.319Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py::test_allow_hosts[allow_origins0-http://web-platform.test-200] 
[task 2022-01-20T22:35:21.323Z] 22:35:21     INFO - STDOUT: b'1642718121321\tgeckodriver\tINFO\tListening on 127.0.0.1:49922\n1642718121321\twebdriver::server\tDEBUG\t-> GET /status \n1642718121321\twebdriver::server\tDEBUG\t<- 200 OK {"value":{"message":"","ready":true}}\n'
[task 2022-01-20T22:35:21.325Z] 22:35:21     INFO - STDOUT: PASSED
[task 2022-01-20T22:35:21.326Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py::test_allow_hosts[allow_origins1-http://web-platform.test:80-200] 
[task 2022-01-20T22:35:21.330Z] 22:35:21     INFO - STDOUT: b'1642718121328\tgeckodriver\tINFO\tListening on 127.0.0.1:37940\n1642718121328\twebdriver::server\tDEBUG\t-> GET /status \n1642718121328\twebdriver::server\tDEBUG\t<- 200 OK {"value":{"message":"","ready":true}}\n'
[task 2022-01-20T22:35:21.332Z] 22:35:21     INFO - STDOUT: PASSED
[task 2022-01-20T22:35:21.334Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py::test_allow_hosts[allow_origins2-https://web-platform.test:443-200] 
[task 2022-01-20T22:35:21.336Z] 22:35:21     INFO - STDOUT: b'1642718121335\tgeckodriver\tINFO\tListening on 127.0.0.1:44802\n1642718121335\twebdriver::server\tDEBUG\t-> GET /status \n1642718121335\twebdriver::server\tDEBUG\t<- 200 OK {"value":{"message":"","ready":true}}\n'
[task 2022-01-20T22:35:21.338Z] 22:35:21     INFO - STDOUT: PASSED
[task 2022-01-20T22:35:21.340Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py::test_allow_hosts[allow_origins3-http://web-platform.test-500] 
[task 2022-01-20T22:35:21.343Z] 22:35:21     INFO - STDOUT: b'/builds/worker/fetches/geckodriver: error: Address in use (os error 98)\n'
[task 2022-01-20T22:35:21.442Z] 22:35:21     INFO - STDOUT: FAILED
[task 2022-01-20T22:35:21.443Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py::test_allow_hosts[allow_origins4-http://web-platform.test-500] 
[task 2022-01-20T22:35:21.447Z] 22:35:21     INFO - STDOUT: b'1642718121445\tgeckodriver\tINFO\tListening on 127.0.0.1:55782\n1642718121445\twebdriver::server\tWARN\tRejected request with Origin header http://web-platform.test, allowed values are [http://web-platform.test:8000/]\n'
[task 2022-01-20T22:35:21.450Z] 22:35:21     INFO - STDOUT: PASSED
[task 2022-01-20T22:35:21.450Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py::test_allow_hosts[allow_origins5-http://www.web-platform.test-500] 
[task 2022-01-20T22:35:21.454Z] 22:35:21     INFO - STDOUT: b'1642718121451\tgeckodriver\tINFO\tListening on 127.0.0.1:54468\n1642718121451\twebdriver::server\tWARN\tRejected request with Origin header http://www.web-platform.test, allowed values are [http://web-platform.test/]\n'
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT: PASSED
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT: =================================== FAILURES ===================================
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT: ________ test_allow_hosts[allow_origins3-http://web-platform.test-500] _________
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT: configuration = {'capabilities': {'moz:firefoxOptions': {'args': ['--profile', '/tmp/tmpmw967qp8.mozrunner'], 'binary': '/builds/worke...}}, 'host': '127.0.0.1', 'port': 47957, 'webdriver': {'args': ['-vv'], 'binary': '/builds/worker/fetches/geckodriver'}}
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT: allow_origins = ['https://web-platform.test']
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT: origin = 'http://web-platform.test', status = 500
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT:     @pytest.mark.parametrize(
[task 2022-01-20T22:35:21.469Z] 22:35:21     INFO - STDOUT:         "allow_origins, origin, status",
[task 2022-01-20T22:35:21.470Z] 22:35:21     INFO - STDOUT:         [
[task 2022-01-20T22:35:21.470Z] 22:35:21     INFO - STDOUT:             # Valid origins
[task 2022-01-20T22:35:21.470Z] 22:35:21     INFO - STDOUT:             (["http://web-platform.test"], "http://web-platform.test", 200),
[task 2022-01-20T22:35:21.470Z] 22:35:21     INFO - STDOUT:             (["http://web-platform.test"], "http://web-platform.test:80", 200),
[task 2022-01-20T22:35:21.470Z] 22:35:21     INFO - STDOUT:             (["https://web-platform.test"], "https://web-platform.test:443", 200),
[task 2022-01-20T22:35:21.470Z] 22:35:21     INFO - STDOUT:             # Invalid origins
[task 2022-01-20T22:35:21.471Z] 22:35:21     INFO - STDOUT:             (["https://web-platform.test"], "http://web-platform.test", 500),
[task 2022-01-20T22:35:21.471Z] 22:35:21     INFO - STDOUT:             (["http://web-platform.test:8000"], "http://web-platform.test", 500),
[task 2022-01-20T22:35:21.471Z] 22:35:21     INFO - STDOUT:             (["http://web-platform.test"], "http://www.web-platform.test", 500),
[task 2022-01-20T22:35:21.471Z] 22:35:21     INFO - STDOUT:         ],
[task 2022-01-20T22:35:21.471Z] 22:35:21     INFO - STDOUT:     )
[task 2022-01-20T22:35:21.471Z] 22:35:21     INFO - STDOUT:     def test_allow_hosts(configuration, allow_origins, origin, status):
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT:         extra_args = ["--allow-origins"] + allow_origins
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT:     
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT:         with Geckodriver(configuration, "localhost", extra_args) as geckodriver:
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT: >           response = request(configuration["host"], geckodriver.port, origin=origin)
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT: allow_origins = ['https://web-platform.test']
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT: configuration = {'capabilities': {'moz:firefoxOptions': {'args': ['--profile',
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO -                                                   '/tmp/tmpmw967qp8.mozrunner'],
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO -                                          'binary': '/builds/worker/workspace/build/application/firefox/firefox'}},
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO -  'host': '127.0.0.1',
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO -  'port': 47957,
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO -  'webdriver': {'args': ['-vv'], 'binary': '/builds/worker/fetches/geckodriver'}}
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT: extra_args = ['--allow-origins', 'https://web-platform.test']
[task 2022-01-20T22:35:21.472Z] 22:35:21     INFO - STDOUT: geckodriver = <protocol.Geckodriver object at 0x7fe76529f630>
[task 2022-01-20T22:35:21.473Z] 22:35:21     INFO - STDOUT: origin     = 'http://web-platform.test'
[task 2022-01-20T22:35:21.473Z] 22:35:21     INFO - STDOUT: status     = 500
[task 2022-01-20T22:35:21.474Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py
[task 2022-01-20T22:35:21.474Z] 22:35:21     INFO - STDOUT: :23: 
[task 2022-01-20T22:35:21.475Z] 22:35:21     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-01-20T22:35:21.475Z] 22:35:21     INFO - STDOUT: tests/web-platform/mozilla/tests/webdriver/protocol/__init__.py
[task 2022-01-20T22:35:21.476Z] 22:35:21     INFO - STDOUT: :21: in request
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - TEST-PASS | /_mozilla/webdriver/protocol/allow_origins.py | test_allow_hosts[allow_origins0-http://web-platform.test-200] 
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - TEST-PASS | /_mozilla/webdriver/protocol/allow_origins.py | test_allow_hosts[allow_origins1-http://web-platform.test:80-200] 
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - TEST-PASS | /_mozilla/webdriver/protocol/allow_origins.py | test_allow_hosts[allow_origins2-https://web-platform.test:443-200] 
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - TEST-UNEXPECTED-FAIL | /_mozilla/webdriver/protocol/allow_origins.py | test_allow_hosts[allow_origins3-http://web-platform.test-500] - ConnectionRefusedError: [Errno 111] Connection refused
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'args': ['--profile', '/tmp/tmpmw967qp8.mozrunner'], 'binary': '/builds/worke...}}, 'host': '127.0.0.1', 'port': 47957, 'webdriver': {'args': ['-vv'], 'binary': '/builds/worker/fetches/geckodriver'}}
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - allow_origins = ['https://web-platform.test']
[task 2022-01-20T22:35:21.482Z] 22:35:21     INFO - origin = 'http://web-platform.test', status = 500
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -     @pytest.mark.parametrize(
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -         "allow_origins, origin, status",
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -         [
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             # Valid origins
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             (["http://web-platform.test"], "http://web-platform.test", 200),
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             (["http://web-platform.test"], "http://web-platform.test:80", 200),
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             (["https://web-platform.test"], "https://web-platform.test:443", 200),
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             # Invalid origins
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             (["https://web-platform.test"], "http://web-platform.test", 500),
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             (["http://web-platform.test:8000"], "http://web-platform.test", 500),
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -             (["http://web-platform.test"], "http://www.web-platform.test", 500),
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -         ],
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -     )
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -     def test_allow_hosts(configuration, allow_origins, origin, status):
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -         extra_args = ["--allow-origins"] + allow_origins
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -     
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -         with Geckodriver(configuration, "localhost", extra_args) as geckodriver:
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - >           response = request(configuration["host"], geckodriver.port, origin=origin)
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - allow_origins = ['https://web-platform.test']
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'args': ['--profile',
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -                                                   '/tmp/tmpmw967qp8.mozrunner'],
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -                                          'binary': '/builds/worker/workspace/build/application/firefox/firefox'}},
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -  'host': '127.0.0.1',
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -  'port': 47957,
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO -  'webdriver': {'args': ['-vv'], 'binary': '/builds/worker/fetches/geckodriver'}}
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - extra_args = ['--allow-origins', 'https://web-platform.test']
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - geckodriver = <protocol.Geckodriver object at 0x7fe76529f630>
[task 2022-01-20T22:35:21.483Z] 22:35:21     INFO - origin     = 'http://web-platform.test'
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO - status     = 500
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO - tests/web-platform/mozilla/tests/webdriver/protocol/allow_origins.py:23: 
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO - tests/web-platform/mozilla/tests/webdriver/protocol/__init__.py:21: in request
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -     conn.endheaders()
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         conn       = <http.client.HTTPConnection object at 0x7fe76529f748>
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         custom_host = False
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         host       = None
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         origin     = 'http://web-platform.test'
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         path       = '/status'
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         server_host = '127.0.0.1'
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         server_port = 51392
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         url        = 'http://127.0.0.1:51392/status'
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO - /usr/lib/python3.6/http/client.py:1280: in endheaders
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -     self._send_output(message_body, encode_chunked=encode_chunked)
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         encode_chunked = False
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         message_body = None
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         self       = <http.client.HTTPConnection object at 0x7fe76529f748>
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO - /usr/lib/python3.6/http/client.py:1046: in _send_output
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -     self.send(msg)
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         encode_chunked = False
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         message_body = None
[task 2022-01-20T22:35:21.484Z] 22:35:21     INFO -         msg        = (b'GET http://127.0.0.1:51392/status HTTP/1.1\r\nHost: 127.0.0.1:51392\r\nAccep'
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -  b't-Encoding: identity\r\nOrigin: http://web-platform.test\r\n\r\n')
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         self       = <http.client.HTTPConnection object at 0x7fe76529f748>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - /usr/lib/python3.6/http/client.py:984: in send
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -     self.connect()
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         data       = (b'GET http://127.0.0.1:51392/status HTTP/1.1\r\nHost: 127.0.0.1:51392\r\nAccep'
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -  b't-Encoding: identity\r\nOrigin: http://web-platform.test\r\n\r\n')
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         self       = <http.client.HTTPConnection object at 0x7fe76529f748>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - /usr/lib/python3.6/http/client.py:956: in connect
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -     (self.host,self.port), self.timeout, self.source_address)
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         self       = <http.client.HTTPConnection object at 0x7fe76529f748>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - /usr/lib/python3.6/socket.py:724: in create_connection
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -     raise err
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         address    = ('127.0.0.1', 51392)
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         af         = <AddressFamily.AF_INET: 2>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         canonname  = ''
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         err        = ConnectionRefusedError(111, 'Connection refused')
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         host       = '127.0.0.1'
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         port       = 51392
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         proto      = 6
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         res        = (<AddressFamily.AF_INET: 2>,
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -  <SocketKind.SOCK_STREAM: 1>,
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -  6,
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -  '',
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -  ('127.0.0.1', 51392))
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         sa         = ('127.0.0.1', 51392)
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         sock       = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         socktype   = <SocketKind.SOCK_STREAM: 1>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         source_address = None
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         timeout    = <object object at 0x7fe77238f160>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - address = ('127.0.0.1', 51392), timeout = <object object at 0x7fe77238f160>
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - source_address = None
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -     def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -                           source_address=None):
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -         """Connect to *address* and return the socket object.
[task 2022-01-20T22:35:21.485Z] 22:35:21     INFO -     
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         Convenience function.  Connect to *address* (a 2-tuple ``(host,
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         port)``) and return the socket object.  Passing the optional
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         *timeout* parameter will set the timeout on the socket instance
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         before attempting to connect.  If no *timeout* is supplied, the
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         global default timeout setting returned by :func:`getdefaulttimeout`
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         is used.  If *source_address* is set it must be a tuple of (host, port)
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         for the socket to bind as a source address before making the connection.
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         A host of '' or port 0 tells the OS to use the default.
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         """
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -     
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         host, port = address
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         err = None
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -         for res in getaddrinfo(host, port, 0, SOCK_STREAM):
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -             af, socktype, proto, canonname, sa = res
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -             sock = None
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -             try:
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -                 sock = socket(af, socktype, proto)
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -                 if timeout is not _GLOBAL_DEFAULT_TIMEOUT:
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -                     sock.settimeout(timeout)
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -                 if source_address:
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -                     sock.bind(source_address)
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - >               sock.connect(sa)
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - E               ConnectionRefusedError: [Errno 111] Connection refused
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - address    = ('127.0.0.1', 51392)
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - af         = <AddressFamily.AF_INET: 2>
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - canonname  = ''
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - err        = ConnectionRefusedError(111, 'Connection refused')
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - host       = '127.0.0.1'
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - port       = 51392
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - proto      = 6
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - res        = (<AddressFamily.AF_INET: 2>,
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -  <SocketKind.SOCK_STREAM: 1>,
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -  6,
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -  '',
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO -  ('127.0.0.1', 51392))
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - sa         = ('127.0.0.1', 51392)
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - sock       = <socket.socket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - socktype   = <SocketKind.SOCK_STREAM: 1>
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - source_address = None
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - timeout    = <object object at 0x7fe77238f160>
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - 
[task 2022-01-20T22:35:21.486Z] 22:35:21     INFO - /usr/lib/python3.6/socket.py:713: ConnectionRefusedError
[task 2022-01-20T22:35:21.487Z] 22:35:21     INFO - ..

A test doesn't seem to correctly quit the additional geckodriver instance:

'/builds/worker/fetches/geckodriver: error: Address in use (os error 98)

Also this is about wdspec and not a general testing related failure.

Component: General → geckodriver
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Summary: Intermittent mozilla/tests/webdriver/protocol/allow_origins.py | test_allow_hosts[allow_origins3-http://web-platform.test-500] - ConnectionRefusedError: [Errno 111] Connection refused → Intermittent mozilla/tests/webdriver/protocol/allow_origins.py | <testname> - ConnectionRefusedError: [Errno 111] Connection refused
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → DUPLICATE
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.