Possible race condition when reading Java DB files after download #5443
Closed
JanMosigItemis
started this conversation in
Bugs
Replies: 1 comment
-
You can track the problem here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The other day, we encountered Trivy crashes when scanning our Java based service images. The scan fails because of problems finding downloaded Java DB files. The problem is not 100% reproducible but appears on a regular basis.
As a workaround, we are now downloading the DBs separately before initiating the scan. This seems to work 100% of the time.
Desired Behavior
Trivy scan is successful.
Actual Behavior
The scan fails with one of two kinds of errors: Either open failed or chmod failed. Both because a file was missing. The missing file is not always the same.
Examples:
chmod is exactly the same with slightly different error
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
Template
Mode
Standalone
Debug Output
Could not be saved or reproduced. However, the one debug log we saw did not contain any errors except for the ones already posted.
Operating System
Linux
Version
A docker image with 0.46.0 at the time of writing.
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions