Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-6714

Data length mismatch on (seemingly) fine rpm bdb

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • clair-4.7.3
    • clair-4.7.2
    • clair
    • None

      ClairCore is unable to read the rpmdb of docker.io/ansible/awx_task@sha256:2b319b88c938b3e3e3832275bd304b24991cb03d32c685f9cbb187ae1da48eef because of the following error:

      failed to scan all layer contents: layer \"sha256:bb3fddc88a906630731b5d91dc47d733f7be6f6b6196eca47171dc85d1b7116f\": rpm: error reading native db: rpm: error reading headers: bdb: expected data length botch: 4836 != 4008

       

      When running the container and checking 

      $ rpm -qa --queryformat '%{NAME}\n%{EVR}\n\n'

      everything seems fine.

      It's possible the db has a mistake in it, or the bdb reader is miscalculating the size

              Unassigned Unassigned
              rtannenb@redhat.com Ross Tannenbaum
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: