<?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>14689</bug_id>
          
          <creation_ts>2022-01-14 15:59:14 +0000</creation_ts>
          <short_desc>Need to show activity when talking to hash equivalence servers</short_desc>
          <delta_ts>2023-03-21 07:18:46 +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>4.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>normal</bug_severity>
          <target_milestone>4.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>quaresma.jose</cc>
    
    <cc>randy.macleod</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>92325</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-01-14 15:59:14 +0000</bug_when>
    <thetext>I have this issue after cloning the latest Poky (master), and starting a fresh &quot;bitbake core-image-minimal&quot; build with the below conf/local.conf settings:

BB_HASHSERVE = &quot;auto&quot;
BB_SIGNATURE_HANDLER = &quot;OEEquivHash&quot;
SSTATE_MIRRORS ?= &quot;file://.* http://sstate.yoctoproject.org/dev/PATH;downloadfilename=PATH&quot;
BB_HASHSERVE_UPSTREAM = &quot;typhoon.yocto.io:8687&quot;

Quickly after startup, Bitbake remains stuck at 44% during the &quot;Initializing task&quot; step, for several minutes (3 to 5?).

Then, the build proceeds nicely.

I ran &quot;strace&quot; on the Bitbake parent process:
...
futex(0x277c200, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0,
{tv_sec=1642092729, tv_nsec=110486000}, FUTEX_BITSET_MATCH_ANY) = -1
ETIMEDOUT (Connection timed out)
futex(0x277c200, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0,
{tv_sec=1642092729, tv_nsec=360665000}, FUTEX_BITSET_MATCH_ANY) = -1
ETIMEDOUT (Connection timed out)
futex(0x277c200, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0,
{tv_sec=1642092729, tv_nsec=610862000}, FUTEX_BITSET_MATCH_ANY) = -1
ETIMEDOUT (Connection timed out)
futex(0x277c200, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0,
{tv_sec=1642092729, tv_nsec=861086000}, FUTEX_BITSET_MATCH_ANY) = -1
ETIMEDOUT (Connection timed out)
futex(0x277c200, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0,
{tv_sec=1642092730, tv_nsec=111295000}, FUTEX_BITSET_MATCH_ANY) = -1
ETIMEDOUT (Connection timed out)
...

I&apos;m using Ubuntu 20.04 by the way.
Any idea why this happens?
I&apos;ll be happy to try code patches if this can help...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92363</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-01-20 15:34:53 +0000</bug_when>
    <thetext>I&apos;m using Python 3.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92396</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-01-26 10:09:33 +0000</bug_when>
    <thetext>After a new update, I commented out:
BB_HASHSERVE_UPSTREAM = &quot;typhoon.yocto.io:8687&quot;

I didn&apos;t get the issue, but I didn&apos;t get it either after adding back BB_HASHSERVE_UPSTREAM

This issue is difficult to reproduce. I&apos;ll keep an eye on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92503</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-02-10 13:21:56 +0000</bug_when>
    <thetext>The issue will depend whether there are local cache values for the hash equivalence. Once queried the cache will be present and it will be faster.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92737</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-03-08 09:43:38 +0000</bug_when>
    <thetext>Still facing this issue after a Poky update.
The &quot;stuck&quot; time was about 4 minutes.
At least, it would be good to show signs of life.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93191</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-28 14:22:00 +0000</bug_when>
    <thetext>Original title &apos;Bitbake stuck for several minutes at &quot;Initialising tasks:  44%&quot;&apos; but issue is showing progress when talking to hash equivalence servers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93222</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-05-04 16:11:55 +0000</bug_when>
    <thetext>Still facing this issue with the latest Poky.
There is no apparent CPU activity for 2 to 3 minutes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94929</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-02-15 09:28:44 +0000</bug_when>
    <thetext>Hello
I don´t face this issue any more.
Can we close it?
Cheers
Michael.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95172</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-03-21 07:18:46 +0000</bug_when>
    <thetext>This bug is now fixed for me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>