[Errno 111] Connection refused error in bok-choy test

Description

Sometimes you get this error message from a bok-choy test.

I believe that this is when the browser is being launched. Perhaps we need to increase the timeout or do more synchronization?

e.g. https://build.testeng.edx.org/job/edx-platform-all-tests/71/SHARD=2,TEST_SUITE=bok-choy/testReport/junit/acceptance.tests.video.test_video_module/Html5VideoTest/test_full_screen_video_alignment_with_transcript_visible/

Error Message

1 2 3 4 5 [Errno 111] Connection refused -------------------- >> begin captured logging << -------------------- bok_choy.browser: INFO: Using local browser: firefox [Default is firefox] --------------------- >> end captured logging << ---------------------

Stacktrace

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 File "/usr/lib/python2.7/unittest/case.py", line 318, in run self.setUp() File "/home/jenkins/workspace/edx-platform-all-tests/SHARD/2/TEST_SUITE/bok-choy/common/test/acceptance/tests/video/test_video_module.py", line 705, in setUp super(Html5VideoTest, self).setUp() File "/home/jenkins/workspace/edx-platform-all-tests/SHARD/2/TEST_SUITE/bok-choy/common/test/acceptance/tests/video/test_video_module.py", line 43, in setUp super(VideoBaseTest, self).setUp() File "/home/jenkins/workspace/edx-platform-all-tests/SHARD/2/TEST_SUITE/bok-choy/common/test/acceptance/tests/helpers.py", line 182, in setUp super(UniqueCourseTest, self).setUp() File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/web_app_test.py", line 55, in setUp self.browser = browser(tags, self.proxy) File "/home/jenkins/edx-venv/src/bok-choy/bok_choy/browser.py", line 186, in browser return browser_class(*browser_args, **browser_kwargs) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/firefox/webdriver.py", line 61, in __init__ keep_alive=True) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 73, in __init__ self.start_session(desired_capabilities, browser_profile) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 121, in start_session 'desiredCapabilities': desired_capabilities, File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 171, in execute response = self.command_executor.execute(driver_command, params) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 347, in execute return self._request(command_info[0], url, body=data) File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/remote_connection.py", line 377, in _request self._conn.request(method, parsed_url.path, body, headers) File "/usr/lib/python2.7/httplib.py", line 958, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 992, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 954, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 814, in _send_output self.send(msg) File "/usr/lib/python2.7/httplib.py", line 776, in send self.connect() File "/usr/lib/python2.7/httplib.py", line 757, in connect self.timeout, self.source_address) File "/usr/lib/python2.7/socket.py", line 571, in create_connection raise err '[Errno 111] Connection refused\n-------------------- >> begin captured logging << --------------------\nbok_choy.browser: INFO: Using local browser: firefox [Default is firefox]\n--------------------- >> end captured logging << ---------------------'

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

clytwynecR

Reporter

JesseZ

Labels

Reach

None

Impact

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Stakeholders

None

Story Points

1

Sprint

None

Priority

Unset
Configure