-
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
Trivy java-db not updated automatically #3711
Comments
Hello @workerus I have been playing with
We already have #3560 Best Regards, Dmitriy |
I wonder how do you reproduce it? Do you change date and time on your server? Yesterday we have updated trivy to 0.38.0 and updated manually java-db next update is scheduled for March 4th let's see if trivy will be able to updated the db without my intervention.
|
Trivy checks e.g.:
after that I changed day in
and tried to scan image with
|
Thank you for your reply @DmitriyLewen. I observe that if on my server java-db is updated then when i launch scan no java-db is saved on the client but when java-db is not updated on the server then client is downloading and saving java-db. I just tested it a few times and i can confirm this behaviour. Also this morning i see again on server side:
Do you know why java-db is not updating automatically the same way as db?
The point here is to make sure we always have updated db on the server so no client will ever download this db from ghcr.io/aquasecurity/trivy-java-db:1 because sometimes the download is stuck and it's failing our CI/CD. |
Hello @workerus Currently Trivy parses files on client.
In this case Trivy download |
@DmitriyLewen thank you for your support! |
i close this issue, feel free to reopen this issue, if you still have questions. |
Description
Trivy java-db not updated automatically.
When i open java-db/metadata.json on February 27th i see NextUpdate":"2023-02-26 which didn't happen for some reason.
To update it i run the following command and it's working fine:
What did you expect to happen?
I expect java-db to be updated automatically every three day interval. Please note we have this issue only with java-db. The db is being updated automatically regularly without issues.
What happened instead?
We run Trivy Docker image and scan our images with --server argument.
The problem is that Trivy not updating java-db automatically on ourTrivyServer and thus when i launch scan with --server argument since the db is not updated on our Trivy server this DB is updating locally and sometimes it takes very long time to download this DB.
For that reason it's important for us to have this DB updated on our Trivy server.
Output of run with
-debug
:On February 27th i get this output:
Output of
trivy -v
:We use latest Trivy client and server.
Additional details (base image name, container registry info...):
The text was updated successfully, but these errors were encountered: