Bug 12829 - [master & rokco] checkuri fails
Summary: [master & rokco] checkuri fails
Status: CLOSED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4.4
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-06-28 14:05 UTC by Armin Kuster
Modified: 2018-08-15 03:23 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Kuster 2018-06-28 14:05:33 UTC
iptables_1.6.1.bb:do_checkuri
libmnl_1.0.4.bb:do_checkuri
Comment 1 Armin Kuster 2018-06-28 14:11:31 UTC
plus backport
Comment 2 Armin Kuster 2018-06-28 14:16:26 UTC
master had this error:

ERROR: iptables-1.6.2-r0 do_checkuri: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_checkuri(d)
     0003:
File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/meta/classes/utility-tasks.bbclass', lineno: 48, function: do_checkuri
     0044:        return
     0045:
     0046:    try:
     0047:        fetcher = bb.fetch2.Fetch(src_uri, d)
 *** 0048:        fetcher.checkstatus()
     0049:    except bb.fetch2.BBFetchException as e:
     0050:        bb.fatal(str(e))
     0051:}
     0052:
File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/__init__.py', lineno: 1738, function: checkstatus
     1734:            mirrors = mirror_from_string(self.d.getVar('PREMIRRORS'))
     1735:            ret = try_mirrors(self, self.d, ud, mirrors, True)
     1736:            if not ret:
     1737:                # Next try checking from the original uri, u
 *** 1738:                ret = m.checkstatus(self, ud, self.d)
     1739:                if not ret:
     1740:                    # Finally, try checking uri, u, from MIRRORS
     1741:                    mirrors = mirror_from_string(self.d.getVar('MIRRORS'))
     1742:                    ret = try_mirrors(self, self.d, ud, mirrors, True)
File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/wget.py', lineno: 336, function: checkstatus
     0332:                add_basic_auth("%s:%s" % (login, password), r)
     0333:            except (TypeError, ImportError, IOError, netrc.NetrcParseError):
     0334:                 pass
     0335:
 *** 0336:            with opener.open(r) as response:
     0337:                pass
     0338:        except urllib.error.URLError as e:
     0339:            if try_again:
     0340:                logger.debug(2, "checkstatus: trying again")
File: '/usr/lib64/python3.4/urllib/request.py', lineno: 464, function: open
     0460:        for processor in self.process_request.get(protocol, []):
     0461:            meth = getattr(processor, meth_name)
     0462:            req = meth(req)
     0463:
 *** 0464:        response = self._open(req, data)
     0465:
     0466:        # post-process response
     0467:        meth_name = protocol+"_response"
     0468:        for processor in self.process_response.get(protocol, []):
File: '/usr/lib64/python3.4/urllib/request.py', lineno: 482, function: _open
     0478:            return result
     0479:
     0480:        protocol = req.type
     0481:        result = self._call_chain(self.handle_open, protocol, protocol +
 *** 0482:                                  '_open', req)
     0483:        if result:
     0484:            return result
     0485:
     0486:        return self._call_chain(self.handle_open, 'unknown',
File: '/usr/lib64/python3.4/urllib/request.py', lineno: 442, function: _call_chain
     0438:        # could.  Otherwise, they return the response.
     0439:        handlers = chain.get(kind, ())
     0440:        for handler in handlers:
     0441:            func = getattr(handler, meth_name)
 *** 0442:            result = func(*args)
     0443:            if result is not None:
     0444:                return result
     0445:
     0446:    def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/wget.py', lineno: 157, function: http_open
     0153:                        self._tunnel()
     0154:
     0155:        class CacheHTTPHandler(urllib.request.HTTPHandler):
     0156:            def http_open(self, req):
 *** 0157:                return self.do_open(HTTPConnectionCache, req)
     0158:
     0159:            def do_open(self, http_class, req):
     0160:                """Return an addinfourl object for the request, using http_class.
     0161:
File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/wget.py', lineno: 230, function: do_open
     0226:                else:
     0227:                    try:
     0228:                        r = h.getresponse(buffering=True)
     0229:                    except TypeError: # buffering kw not supported
 *** 0230:                        r = h.getresponse()
     0231:
     0232:                # Pick apart the HTTPResponse object to get the addinfourl
     0233:                # object initialized properly.
     0234:
File: '/usr/lib64/python3.4/http/client.py', lineno: 1227, function: getresponse
     1223:        else:
     1224:            response = self.response_class(self.sock, method=self._method)
     1225:
     1226:        try:
 *** 1227:            response.begin()
     1228:            assert response.will_close != _UNKNOWN
     1229:            self.__state = _CS_IDLE
     1230:
     1231:            if response.will_close:
File: '/usr/lib64/python3.4/http/client.py', lineno: 386, function: begin
     0382:            return
     0383:
     0384:        # read until we get a non-100 response
     0385:        while True:
 *** 0386:            version, status, reason = self._read_status()
     0387:            if status != CONTINUE:
     0388:                break
     0389:            # skip the header from the 100 response
     0390:            while True:
File: '/usr/lib64/python3.4/http/client.py', lineno: 348, function: _read_status
     0344:        self.length = _UNKNOWN          # number of bytes left in response
     0345:        self.will_close = _UNKNOWN      # conn will close at end of response
     0346:
     0347:    def _read_status(self):
 *** 0348:        line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
     0349:        if len(line) > _MAXLINE:
     0350:            raise LineTooLong("status line")
     0351:        if self.debuglevel > 0:
     0352:            print("reply:", repr(line))
File: '/usr/lib64/python3.4/socket.py', lineno: 378, function: readinto
     0374:        if self._timeout_occurred:
     0375:            raise OSError("cannot read from timed out object")
     0376:        while True:
     0377:            try:
 *** 0378:                return self._sock.recv_into(b)
     0379:            except timeout:
     0380:                self._timeout_occurred = True
     0381:                raise
     0382:            except InterruptedError:
Exception: ConnectionResetError: [Errno 104] Connection reset by peer
Comment 3 Armin Kuster 2018-06-28 14:21:24 UTC
Rocko had the same tracebacks on the same packages.

bitbake fecth works for both.

running checkuri now on rocko
Comment 4 Armin Kuster 2018-08-15 03:23:26 UTC
this seems to be working now.

not sure what went wrong.
Comment 5 Armin Kuster 2018-08-15 03:23:58 UTC
.