Closed
Bug 1420346
Opened 7 years ago
Closed 7 years ago
[Errno 61] Connection refused when running robocop test
Categories
(Firefox for Android Graveyard :: Testing, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: cnevinchen, Assigned: cnevinchen)
References
Details
This week I keep getting this error when I run e.g.
./mach robocop testNewTab
Below is the message.
0:02.88 LOG: MainThread INFO runtests.py | Server pid: 18755
0:02.88 LOG: MainThread INFO runtests.py | Websocket server pid: 18756
0:02.90 LOG: MainThread INFO runtests.py | SSL tunnel pid: 18757
1:39.00 LOG: MainThread ERROR TEST-UNEXPECTED-FAIL | runtests.py | Timed out while waiting for server startup.
1:39.01 LOG: MainThread INFO Failed to stop web server on http://10.247.29.190:8888/server/shutdown
Traceback (most recent call last):
File "/Users/nechen/Desktop/mozilla-central/objdir-frontend/_tests/testing/mochitest/runtests.py", line 495, in stop
with closing(urllib2.urlopen(self.shutdownURL)) as c:
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 61] Connection refused>
Traceback (most recent call last):
File "/Users/nechen/Desktop/mozilla-central/objdir-frontend/_tests/testing/mochitest/runrobocop.py", line 566, in run_test_harness
runResult = robocop.runTests()
File "/Users/nechen/Desktop/mozilla-central/objdir-frontend/_tests/testing/mochitest/runrobocop.py", line 492, in runTests
self.startup()
File "/Users/nechen/Desktop/mozilla-central/objdir-frontend/_tests/testing/mochitest/runrobocop.py", line 121, in startup
ignoreSSLTunnelExts=True)
File "/Users/nechen/Desktop/mozilla-central/objdir-frontend/_tests/testing/mochitest/runtests.py", line 1185, in startServers
self.server.ensureReady(self.SERVER_STARTUP_TIMEOUT)
File "/Users/nechen/Desktop/mozilla-central/objdir-frontend/_tests/testing/mochitest/runtests.py", line 491, in ensureReady
sys.exit(1)
SystemExit: 1
1:39.02 LOG: MainThread ERROR runrobocop.py | Received unexpected exception while running tests
1:39.02 LOG: MainThread INFO Stopping web server
1:39.02 LOG: MainThread INFO Failed to stop web server on http://10.247.29.190:8888/server/shutdown
Traceback (most recent call last):
File "/Users/nechen/Desktop/mozilla-central/objdir-frontend/_tests/testing/mochitest/runtests.py", line 495, in stop
with closing(urllib2.urlopen(self.shutdownURL)) as c:
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 61] Connection refused>
1:39.02 LOG: MainThread INFO Stopping web socket server
1:39.04 LOG: MainThread INFO Stopping ssltunnel
1:39.75 LOG: MainThread INFO Buffered messages finished
1:39.75 LOG: MainThread ERROR Got suite_end message before suite_start. Logged with data: {}
Comment 1•7 years ago
|
||
There was a recent update to host-utils, and unfortunately, it was not backward compatible: With current Android builds, the new host-utils is required, else you get failures that look like this.
The path to your host-utils is logged just before the log portion you pasted -- something like:
0:02.37 LOG: MainThread INFO Checking for ssltunnel processes...
0:02.39 LOG: MainThread INFO Checking for xpcshell processes...
0:07.01 LOG: MainThread INFO Android sdk version '18'; will use this to filter manifests
pk12util: PKCS12 IMPORT SUCCESSFUL
0:14.96 LOG: MainThread INFO MochitestServer : launching [u'/home/gbrown/.mozbuild/android-device/host-utils-58.0a1.en-US-linux-x86_64/xpcshell', '-g', '/home/gbrown/.mozbuild/android-device/host-utils-58.0a1.en-US-linux-x86_64', '-f', '/home/gbrown/.mozbuild/android-device/host-utils-58.0a1.en-US-linux-x86_64/components/httpd.js', '-e', "const _PROFILE_PATH = '/tmp/tmpKkdm5b.mozrunner'; const _SERVER_PORT = '8888'; const _SERVER_ADDR = '192.168.0.6'; const _TEST_PREFIX = undefined; const _DISPLAY_RESULTS = false;", '-f', '/home/gbrown/objdirs/droid/_tests/testing/mochitest/server.js']
0:14.96 LOG: MainThread INFO runtests.py | Server pid: 18345
0:14.97 LOG: MainThread INFO runtests.py | Websocket server pid: 18348
0:15.00 LOG: MainThread INFO runtests.py | SSL tunnel pid: 18351
If you don't see 'host-utils-58.0a1' in the logged path, that is a problem.
If you are on Linux, 'mach robocop' should have offered to update your host-utils.
If you are on Mac, there's a patch on bug 1415242 waiting for review -- you probably need that. Then run 'mach robocop' and it should offer to update your host-utils.
See Also: → 1415242
Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•