Bug 14894 - AB-INT: do_cve_check failure: sqlite3.OperationalError: database is locked
Summary: AB-INT: do_cve_check failure: sqlite3.OperationalError: database is locked
Status: RESOLVED DUPLICATE of bug 14887
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2022-08-17 14:49 UTC by Alexandre Belloni
Modified: 2022-08-18 14:38 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2022-08-17 14:49:11 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/138/builds/102/steps/11/logs/stdio

metrics ubuntu2204-ty-1

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4006/steps/15/logs/stdio

oe-selftest-centos alma8-ty-1

ERROR: linux-yocto-5.19+gitAUTOINC+89fdc2046b_e0e977e1b0-r0 do_cve_check: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_cve_check(d)
     0003:
File: '/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/classes/cve-check.bbclass', lineno: 155, function: do_cve_check
     0151:        except FileNotFoundError:
     0152:            bb.fatal("Failure in searching patches")
     0153:        ignored, patched, unpatched, status = check_cves(d, patched_cves)
     0154:        if patched or unpatched or (d.getVar("CVE_CHECK_COVERAGE") == "1" and status):
 *** 0155:            cve_data = get_cve_info(d, patched + unpatched + ignored)
     0156:            cve_write_data(d, patched, unpatched, ignored, cve_data, status)
     0157:    else:
     0158:        bb.note("No CVE database found, skipping CVE check")
     0159:
File: '/home/pokybuild/yocto-worker/oe-selftest-centos/build/meta/classes/cve-check.bbclass', lineno: 390, function: get_cve_info
     0386:    db_file = d.expand("file:${CVE_CHECK_DB_FILE}?mode=ro")
     0387:    conn = sqlite3.connect(db_file, uri=True)
     0388:
     0389:    for cve in cves:
 *** 0390:        for row in conn.execute("SELECT * FROM NVD WHERE ID IS ?", (cve,)):
     0391:            cve_data[row[0]] = {}
     0392:            cve_data[row[0]]["summary"] = row[1]
     0393:            cve_data[row[0]]["scorev2"] = row[2]
     0394:            cve_data[row[0]]["scorev3"] = row[3]
Exception: sqlite3.OperationalError: database is locked
Comment 1 Richard Purdie 2022-08-18 14:38:00 UTC
Bug filed twice

*** This bug has been marked as a duplicate of bug 14887 ***