<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12829</bug_id>
          
          <creation_ts>2018-06-28 14:05:33 +0000</creation_ts>
          <short_desc>[master &amp; rokco]  checkuri fails</short_desc>
          <delta_ts>2018-08-15 03:23:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80956</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-06-28 14:05:33 +0000</bug_when>
    <thetext>iptables_1.6.1.bb:do_checkuri
libmnl_1.0.4.bb:do_checkuri</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80958</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-06-28 14:11:31 +0000</bug_when>
    <thetext>plus backport</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80959</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-06-28 14:16:26 +0000</bug_when>
    <thetext>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: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_checkuri(d)
     0003:
File: &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/meta/classes/utility-tasks.bbclass&apos;, 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: &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/__init__.py&apos;, lineno: 1738, function: checkstatus
     1734:            mirrors = mirror_from_string(self.d.getVar(&apos;PREMIRRORS&apos;))
     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(&apos;MIRRORS&apos;))
     1742:                    ret = try_mirrors(self, self.d, ud, mirrors, True)
File: &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/wget.py&apos;, lineno: 336, function: checkstatus
     0332:                add_basic_auth(&quot;%s:%s&quot; % (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, &quot;checkstatus: trying again&quot;)
File: &apos;/usr/lib64/python3.4/urllib/request.py&apos;, 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+&quot;_response&quot;
     0468:        for processor in self.process_response.get(protocol, []):
File: &apos;/usr/lib64/python3.4/urllib/request.py&apos;, lineno: 482, function: _open
     0478:            return result
     0479:
     0480:        protocol = req.type
     0481:        result = self._call_chain(self.handle_open, protocol, protocol +
 *** 0482:                                  &apos;_open&apos;, req)
     0483:        if result:
     0484:            return result
     0485:
     0486:        return self._call_chain(self.handle_open, &apos;unknown&apos;,
File: &apos;/usr/lib64/python3.4/urllib/request.py&apos;, 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: &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/wget.py&apos;, 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:                &quot;&quot;&quot;Return an addinfourl object for the request, using http_class.
     0161:
File: &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-checkuri/build/bitbake/lib/bb/fetch2/wget.py&apos;, 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: &apos;/usr/lib64/python3.4/http/client.py&apos;, 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: &apos;/usr/lib64/python3.4/http/client.py&apos;, 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: &apos;/usr/lib64/python3.4/http/client.py&apos;, 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), &quot;iso-8859-1&quot;)
     0349:        if len(line) &gt; _MAXLINE:
     0350:            raise LineTooLong(&quot;status line&quot;)
     0351:        if self.debuglevel &gt; 0:
     0352:            print(&quot;reply:&quot;, repr(line))
File: &apos;/usr/lib64/python3.4/socket.py&apos;, lineno: 378, function: readinto
     0374:        if self._timeout_occurred:
     0375:            raise OSError(&quot;cannot read from timed out object&quot;)
     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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80960</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-06-28 14:21:24 +0000</bug_when>
    <thetext>Rocko had the same tracebacks on the same packages.

bitbake fecth works for both.

running checkuri now on rocko</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81353</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-15 03:23:26 +0000</bug_when>
    <thetext>this seems to be working now.

not sure what went wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81354</commentid>
    <comment_count>5</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-15 03:23:58 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>