download() in util.py got "Connection refused" from some server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
Fix Released
|
High
|
Spring Zhang |
Bug Description
Linaro image server has no such failure, but I saw it on my own server, and I think it may affect some server too.
Printing traceback will see the "Connection refused" error:
root@master:
tar czf /tmp/lava_
root@master:
{print $1}' eth0 | grep 'inet addr' | awk -F: '{print $2}' |awk '
192.168.12.2
root@master:/tmp#
id=0
python -m SimpleHTTPServer 80 &> /dev/null &
Traceback (most recent call last):
File "/home/
response = urllib2.
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.do_
File "/usr/lib/
raise URLError(err)
URLError: <urlopen error [Errno 111] Connection refused>
Traceback (most recent call last):
File "./lava-dispatch", line 42, in <module>
job.run()
File "/home/
action.
File "/home/
result_path = download(
File "/home/
raise RuntimeError("Could not retrieve %s" % url)
RuntimeError: Could not retrieve http://
Related branches
- Spring Zhang (community): Approve
-
Diff: 52 lines (+16/-7)2 files modifiedlava_dispatcher/actions/launch_control.py (+12/-4)
lava_dispatcher/client.py (+4/-3)
Changed in lava-dispatcher: | |
assignee: | nobody → Spring Zhang (qzhang) |
status: | New → Fix Committed |
milestone: | none → 2011.09 |
importance: | Undecided → High |
Changed in lava-dispatcher: | |
status: | Fix Committed → Fix Released |
I've seen this once or twice too. I assume it's a race condition, the host side attempting to connect before the board side's server is up and running (obscuring the actual error with the RuntimeError is really unhelpful btw).