← Back to team overview

linaro-release team mailing list archive

[Bug 831784] Re: download() in util.py got "Connection refused" from some server

 

** Changed in: lava-dispatcher
     Assignee: (unassigned) => Spring Zhang (qzhang)

** Changed in: lava-dispatcher
       Status: New => Fix Committed

** Changed in: lava-dispatcher
    Milestone: None => 2011.09

** Changed in: lava-dispatcher
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Linaro
Validation Team, which is the registrant for LAVA Dispatcher.
https://bugs.launchpad.net/bugs/831784

Title:
  download() in util.py got "Connection refused" from some server

Status in LAVA Dispatcher:
  Fix Committed

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:/tmp#tar czf /tmp/lava_results.tgz -C /tmp//lava/results .
   tar czf /tmp/lava_results.tgz -C /tmp//lava/results .
  root@master:/tmifconfig eth0 | grep 'inet addr' | awk -F: '{print $2}' |awk '{print $1}'
  {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/spring/linaro/lava/91_merged/reliable-result-transfer/lava_dispatcher/utils.py", line 35, in download
      response = urllib2.urlopen(urllib2.quote(url, safe=":/"), timeout=5)
    File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
      return _opener.open(url, data, timeout)
    File "/usr/lib/python2.6/urllib2.py", line 391, in open
      response = self._open(req, data)
    File "/usr/lib/python2.6/urllib2.py", line 409, in _open
      '_open', req)
    File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
      result = func(*args)
    File "/usr/lib/python2.6/urllib2.py", line 1161, in http_open
      return self.do_open(httplib.HTTPConnection, req)
    File "/usr/lib/python2.6/urllib2.py", line 1136, in do_open
      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/spring/linaro/lava/91_merged/reliable-result-transfer/lava_dispatcher/__init__.py", line 103, in run
      action.run(**params)
    File "/home/spring/linaro/lava/91_merged/reliable-result-transfer/lava_dispatcher/actions/launch_control.py", line 108, in run
      result_path = download(result_tarball, tarball_dir)
    File "/home/spring/linaro/lava/91_merged/reliable-result-transfer/lava_dispatcher/utils.py", line 42, in download
      raise RuntimeError("Could not retrieve %s" % url)
  RuntimeError: Could not retrieve http://192.168.12.2/lava_results.tgz

To manage notifications about this bug go to:
https://bugs.launchpad.net/lava-dispatcher/+bug/831784/+subscriptions