<?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>4499</bug_id>
          
          <creation_ts>2013-05-15 20:29:47 +0000</creation_ts>
          <short_desc>sstate archive/siginfo fetch can display errors to the user on fetch failure</short_desc>
          <delta_ts>2014-10-27 18:09:24 +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>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Larson">kergoth</reporter>
          <assigned_to name="Christopher Larson">kergoth</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>33099</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2013-05-15 20:29:47 +0000</bug_when>
    <thetext>It&apos;s possible, when using file:// uris in SSTATE_MIRRORS, to see dumps of fetch errors with a dump of the FILESPATH it was searching, for example:

ERROR: Fetcher failure: Unable to find file file://Ubuntu-12.04/f0/sstate-quilt-native-x86_64-linux-0.60-r0-x86_64-3-f0a7abcdce876cacbbaa33fadfd49ea6_populate-lic.tgz.siginfo anywhere. The paths that were searched were:
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt-0.60/x86-64
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt-0.60/armv7a
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt-0.60/marzenh1
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt-0.60/mel
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt-0.60/
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt/x86-64
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt/armv7a
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt/marzenh1
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt/mel
    /scratch/test/poky/meta/recipes-devtools/quilt/quilt/
    /scratch/test/poky/meta/recipes-devtools/quilt/files/x86-64
    /scratch/test/poky/meta/recipes-devtools/quilt/files/armv7a
    /scratch/test/poky/meta/recipes-devtools/quilt/files/marzenh1
    /scratch/test/poky/meta/recipes-devtools/quilt/files/mel
    /scratch/test/poky/meta/recipes-devtools/quilt/files/
    /scratch/test/build/cached-binaries

Clearly this isn&apos;t something the user needs to see or is ever likely to care about, as the failure mode just results in rebuilding something if the sstate archive and corresponding siginfo weren&apos;t available. It does seem that I see this more often with the siginfo than the sstates for some reason, but I think we need to rethink the fetchers print of log messages at all in this case, and instead let it pass off the print of the message to the caller.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33100</commentid>
    <comment_count>1</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2013-05-15 20:30:41 +0000</bug_when>
    <thetext>Aside: we may also want to think about emptying the default FILESPATH when fetching sstates, as I doubt we care about the standard search paths in that case :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33105</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-05-16 06:58:26 +0000</bug_when>
    <thetext>Are working this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33119</commentid>
    <comment_count>3</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2013-05-16 14:13:34 +0000</bug_when>
    <thetext>Perhaps. We can implement a hacky workaround: http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/commit/?h=dylan&amp;id=277d52a or we can fix it more properly, changing how fetch2 handles errors, but that would require coordination between the bitbake change and the change to uses of fetch2 in oe-core. fetch2 is Richard&apos;s baby, so I&apos;d be curious to hear his opinion on this before beginning further work on the ideal fix, but barring any objections I&apos;ll submit the workaround to oe-core as a temporary measure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34139</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-06-25 22:42:54 +0000</bug_when>
    <thetext>Ideally we should fix this properly, I&apos;m quite happy to have the fetcher beaten into submission to fix this kind of issue properly. We can handle sync between bitbake and OE-Core at this point in the release cycle, obviously in a month or two, it will be more problematic.

Can you confirm the workaround does work ok with bitbake master after the bitbake-worker changes. Initially I didn&apos;t think it would but now I look at it again, it should be fine so we probably could merge that. It is a bit of a hack though :/.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39878</commentid>
    <comment_count>5</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2014-01-16 18:42:06 +0000</bug_when>
    <thetext>The workaround definitely still works, but I&apos;m hoping to find the time soon to look at a better fix in fetch2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46599</commentid>
    <comment_count>6</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2014-10-27 18:09:24 +0000</bug_when>
    <thetext>I think this may be gone when using downloadfilename=PATH. Will re-open if it comes back.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>