-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue initialising the Java DB when scanning for mis-configurations #3795
Comments
I'm pretty sure this is a duplicate of #3794 but I will leave it here just in case it is different. |
Yep seems to be the exact same problem. Only occures since the breaking change in 0.37.2 was introduced (https://github.com/aquasecurity/trivy/releases/tag/v0.37.2) |
I've used the
|
I know, I was simply pointing out that I am seeing this error since the version 0.37.2. I am fully aware that the "fix" documented in the release notes does not work, as I already pointed out in the other issue #3794. |
@very-doge-wow ah right, my apologies. From now on I'm just going to add to your own issue as these are duplicates and you created the issue first. I will mark this issue as closed. |
Description
Configuration scanning is not working due to an error when when attempting to initialise the java DB. It seems as if the database is successfully downloaded, but there is an issue in initialising it.
I noticed this problem working in our remote environments, but I tested it locally and I get the same issue, so it's not a problem specific to my own systems/infrastructure.
What did you expect to happen?
Expected Trivy to successfully scan the configuration of an image and output the result
Command used:
trivy image --debug --scanners config {MY_IMAGE}:{MY_TAG}
What happened instead?
Obtained the following error:
ERROR Unable to initialize the Java DB: Java DB update failed: Java DB client not initialized
Output of run with
-debug
:Output of
trivy -v
:Additional details (base image name, container registry info...):
The image I am scanning is a Java image, I do not get this error when scanning a non-java based image (It's an error initialising the java DB)
I get this same error when attempting to scan for secrets (using:
trivy image --debug --scanners secret {MY_IMAGE}:{MY_TAG}
) but everything works when I scan for vulnerabilities (using:trivy image --debug --scanners vuln {MY_IMAGE}:{MY_TAG}
)The text was updated successfully, but these errors were encountered: