<?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>16268</bug_id>
          
          <creation_ts>2026-04-25 04:26:45 +0000</creation_ts>
          <short_desc>OSError silently ignored in do_fetch</short_desc>
          <delta_ts>2026-08-10 10:59:03 +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>5.0.19</version>
          <rep_platform>All</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>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anthony Squires">me</reporter>
          <assigned_to name="Anthony Squires">me</assigned_to>
          <cc>mathieu.dubois-briand</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</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>105264</commentid>
    <comment_count>0</comment_count>
    <who name="Anthony Squires">me</who>
    <bug_when>2026-04-25 04:26:45 +0000</bug_when>
    <thetext>I encountered an issue during do_fetch where it silently failed due to an OSError being thrown and ignored. The task completed successfully but no file was downloaded and do_unpack subsequently failed. In my case it was Errno 36 but I think any OSError/IOError would encounter this.

Adding a &quot;raise&quot; on line 1934 of bitbake/lib/bb/fetch2/__init__.py resolved my issue and let me figure out the real error (that my filename was way too long).

```
 except IOError as e:
     if e.errno in [errno.ESTALE]:
         logger.error(&quot;Stale Error Observed %s.&quot; % u)
         raise ChecksumError(&quot;Stale Error Detected&quot;)
-
+    raise
 except BBFetchException as e:
```
ref:
https://git.yoctoproject.org/poky/tree/bitbake/lib/bb/fetch2/__init__.py?id=bdd2b0fee18c43597efc3493b9ac9ace9ccf7959#n1930

Happy to send a one-line patch if this is desired but figured a bug was a better place to start to provide context.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105281</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-04-28 16:37:21 +0000</bug_when>
    <thetext>Your fix looks correct to me, if you could submit a patch that would be appreciated, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106481</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-08-10 10:59:03 +0000</bug_when>
    <thetext>https://git.openembedded.org/bitbake/commit/lib/bb/fetch2/__init__.py?id=0460038e4705934e614b26ba5febc09293924cd4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>