[Buildroot] [PATCH/autobuild] get_toolchain_configs: be robust against network errors
Peter Korsgaard
peter at korsgaard.com
Wed Feb 15 14:20:24 UTC 2017
>>>>> "Peter" == Peter Korsgaard <peter at korsgaard.com> writes:
> Once in a while some of my autobuilder instances hangs with an exception
> from urllib:
> Process Process-1:
> Traceback (most recent call last):
> File "/home/peko/host/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
> self.run()
> File "/home/peko/host/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
> self._target(*self._args, **self._kwargs)
> File "/home/peko/buildroot-test/scripts/autobuild-run", line 804, in run_instance
> ret = gen_config(**kwargs)
> File "/home/peko/buildroot-test/scripts/autobuild-run", line 526, in gen_config
> configs = get_toolchain_configs()
> File "/home/peko/buildroot-test/scripts/autobuild-run", line 291, in get_toolchain_configs
> with urlopen_closing(config["url"]) as r:
> File "/home/peko/buildroot-test/scripts/autobuild-run", line 146, in <lambda>
> urlopen_closing = lambda uri: contextlib.closing(urlopen(uri))
> File "/home/peko/host/usr/lib/python2.7/urllib2.py", line 127, in urlopen
> return _opener.open(url, data, timeout)
> File "/home/peko/host/usr/lib/python2.7/urllib2.py", line 404, in open
> response = self._open(req, data)
> File "/home/peko/host/usr/lib/python2.7/urllib2.py", line 422, in _open
> '_open', req)
> File "/home/peko/host/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
> result = func(*args)
> File "/home/peko/host/usr/lib/python2.7/urllib2.py", line 1214, in http_open
> return self.do_open(httplib.HTTPConnection, req)
> File "/home/peko/host/usr/lib/python2.7/urllib2.py", line 1184, in do_open
> raise URLError(err)
> URLError: <urlopen error [Errno -2] Name or service not known>
> If this happens, simply ignore the configuration and try again.
> Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
Committed, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list