<?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>9483</bug_id>
          
          <creation_ts>2016-04-19 08:39:42 +0000</creation_ts>
          <short_desc>&quot;Testing URL&quot; hangs forever</short_desc>
          <delta_ts>2016-05-17 09:20:14 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>2.0.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jin">jin</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61374</commentid>
    <comment_count>0</comment_count>
    <who name="Jin">jin</who>
    <bug_when>2016-04-19 08:39:42 +0000</bug_when>
    <thetext>This behaviour started about 1-2 weeks ago, we are running nightly builds and we noticed that they started to hang. Interestingly enough, it often happens happens during &quot;package-index&quot;, so its not a source fetcher problem:

ps auxww | grep bitbake
oebuild  26788  0.0  0.3 222340 122820 ?       S    03:38   0:04 /opt/poky/2.0/sysroots/x86_64-pokysdk-linux/usr/bin/python2.7 /oe/dss-oe/yocto/feedconfig/devel/poky/bitbake/bin/bitbake -DDD package-index
oebuild  26803  0.0  0.6 377292 196464 ?       Sl   03:38   0:03 /opt/poky/2.0/sysroots/x86_64-pokysdk-linux/usr/bin/python2.7 /oe/dss-oe/yocto/feedconfig/devel/poky/bitbake/bin/bitbake -DDD package-index
oebuild  26805  0.0  0.3 298224 119308 ?       Sl   03:38   0:11 /opt/poky/2.0/sysroots/x86_64-pokysdk-linux/usr/bin/python2.7 /oe/dss-oe/yocto/feedconfig/devel/poky/bitbake/bin/bitbake -DDD package-index

There is no timeout,  it will stay in this state for days.

netstat -t -W shows:
tcp        0      0 CentOS-70-64-minimal:39783 yocto-www.yoctoproject.org:https ESTABLISHED

I added -DDD to my build script and now I can see where it actually hangs, the last entry is:

DEBUG: Testing URL http://bugzilla.yoctoproject.org/report.cgi

At this very moment bitbake still hangs, at the same time the URL can be opened in a browser. I now killed bitbake (had to use -9) and restarted the build and it works again, but it is failing very consistently every night (the build is started at 3:30 A.M. CEST

I also had a couple of cases where it was also hanging when I manually restarted the build, I can not trace it to any network outages or similar. In any case there should be a timeout.

I am building poky 2.0.1:

BB_VERSION        = &quot;1.28.0&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0.1&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61421</commentid>
    <comment_count>1</comment_count>
    <who name="Jin">jin</who>
    <bug_when>2016-04-19 19:49:15 +0000</bug_when>
    <thetext>Lowering importance since there turned out to be a workaround CONNECTIVITY_CHECK_URIS=&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61423</commentid>
    <comment_count>2</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-04-19 20:53:14 +0000</bug_when>
    <thetext>Sometimes networks and connections are just plain flakey. There was a commit on master back in January (423a2645377bff2cd7292e1dc9796eeb3595e937) that replaced CONNECTIVITY_CHECK_URIS in meta-yocto/conf/distro/poky.conf with just &quot;https://www.example.com/&quot;. You might try that and see if it solves your problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61784</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-28 10:55:24 +0000</bug_when>
    <thetext>There&apos;s a series in review for jethro which includes backporting 423a2645377bff2cd7292e1dc9796eeb3595e937</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62246</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-05-17 09:20:14 +0000</bug_when>
    <thetext>Patch backported to jethro:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=jethro&amp;id=16d64def97154d76fc1134ecd6cf9d704621e689</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>