Replies: 6 comments 1 reply
-
Started to look into the issue reported. Issue with BoltDB OPEN call
BoltDB documents in "boltdb/bolt/blob/master/errors.go"
Could this be an Endian issue on Big Endian systems? "The data structures in the Bolt database are memory mapped so the data file will be endian specific. This means that you cannot copy a Bolt file from a little endian machine to a big endian machine and have it work. For most users this is not a concern since most modern CPUs are little endian." I'm going to check if there is another version of the trivia.db for big endian. |
Beta Was this translation helpful? Give feedback.
-
I'm attempting to build the Trivy-DB locally as that should resolve the issue in the immediate time frame. Although, i have issue with trivy-db because of issue with the vuln-list missing artifacts on Ruby Gems. I'll take that up with those projects. |
Beta Was this translation helpful? Give feedback.
-
Built Trivy-DB locally. I can now run trivy against containers on s390x. |
Beta Was this translation helpful? Give feedback.
-
Thanks for updating! Do you have any idea about building Trivy DB on s390x? |
Beta Was this translation helpful? Give feedback.
-
The process to build trivy-db was the same as any other platform. I used the containerized method to build the current DB as it solved the dependencies to build the DB for me. |
Beta Was this translation helpful? Give feedback.
-
Is there any way to build the database for s390x on GitHub Actions? |
Beta Was this translation helpful? Give feedback.
-
Description
What did you expect to happen?
Expected Trivy scan to complete without fatal error and scan container.
What happened instead?
2022-09-14T15:42:27.253-0400 FATAL init error: DB error: error in vulnerability DB initialize: failed to open db: invalid database
Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
This container image is based on RH ubi8, locally built on the same system with "docker build .", I do not think the scanner got to a point that it actually started to scan the container.
Beta Was this translation helpful? Give feedback.
All reactions