<?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>15144</bug_id>
          
          <creation_ts>2023-06-14 08:22:35 +0000</creation_ts>
          <short_desc>AB-INT: cve-update-db-native do_fetch failure, error 503</short_desc>
          <delta_ts>2023-08-03 15:09:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Steve Sakoman">steve</assigned_to>
          <cc>alexandre.belloni</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tomas.volka</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>95711</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-06-14 08:22:35 +0000</bug_when>
    <thetext>WARNING: cve-update-db-native-1.0-r0 do_fetch: Failed to fetch CVE data (HTTP Error 503: Service Unavailable)
WARNING: cve-update-db-native-1.0-r0 do_fetch: Host IPs are 2600:1f18:268d:1d01:f609:5e91:8a48:f546, 18.235.227.114

https://autobuilder.yoctoproject.org/typhoon/#/builders/138/builds/425/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/138/builds/423/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/138/builds/417/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/138/builds/411/steps/11/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95911</commentid>
    <comment_count>1</comment_count>
    <who name="Tomas Volka">tomas.volka</who>
    <bug_when>2023-07-11 19:58:27 +0000</bug_when>
    <thetext>We&apos;ve been fighting with this too. With cve-check enabled in the build we&apos;ve been hitting:

[18:20:45]W:	 [Step 1/1] ERROR: cve-update-nvd2-native-1.0-r0 do_fetch: Error executing a python function in exec_func_python() autogenerated:
...
[18:20:45]W:	 [Step 1/1] Exception: urllib.error.HTTPError: HTTP Error 503: Service Unavailable

The issue here is that there&apos;s only one remote URL defined in the recipe: https://services.nvd.nist.gov/rest/json/cves/2.0

Sometimes it spits out 503 - but no wonder, it&apos;s serving paginated 4MB JSONs.

And while it works on a good day, it&apos;s been broken lately and we had to disable cve-check functionality altogether.

That being said, i conclude that the service is currently not reliable enough. The python script needs either to retry and wait or it should use some other source for the CVEs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96188</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2023-08-03 15:09:23 +0000</bug_when>
    <thetext>Fixed with a series of patches:

https://git.openembedded.org/openembedded-core/commit/?id=88dad8f198baa80af5ab576498f4df6ed639d551

https://git.openembedded.org/openembedded-core/commit/?id=f4d118af2360cff7f234102fd5e4b65a6f4146a6

Patches also backported to stable branches</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>