| Summary: | AB-INT: cve-update-db-native do_fetch failure, error 503 | ||
|---|---|---|---|
| Product: | [Infrastructure] AutoBuilder | Reporter: | Alexandre Belloni <alexandre.belloni> |
| Component: | autobuilder | Assignee: | Steve Sakoman <steve> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | alexandre.belloni, infras.ab.watcher, Infras.watcher, pidge, randy.macleod, tomas.volka |
| Version: | unspecified | ||
| Target Milestone: | 4.3 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | AB-INT | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Alexandre Belloni
2023-06-14 08:22:35 UTC
We've been fighting with this too. With cve-check enabled in the build we'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'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's serving paginated 4MB JSONs. And while it works on a good day, it'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. 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 |