Skip to content
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

grype db is not being downloaded #1939

Open
tomersein opened this issue Jun 13, 2024 · 4 comments
Open

grype db is not being downloaded #1939

tomersein opened this issue Jun 13, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@tomersein
Copy link

What happened:
trying to scan images like alpine \ ubuntu.
it starts to download grype-db and then hangs.
this issue started today.
What you expected to happen:
download the db
How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
attaching logs:

0000] DEBUG found database update candidate: Listing(url=https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-06-13T01:31:30Z_1718252496.tar.gz)
[0000] DEBUG existing database (2024-06-10 01:30:58 +0000 UTC) is older than candidate update (2024-06-13 01:31:30 +0000 UTC), using update...
[0000] DEBUG database update available: Listing(url=https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-06-13T01:31:30Z_1718252496.tar.gz)
[0000]  INFO downloading new vulnerability DB
[0000]  INFO new version of grype is available: 0.78.0 (currently running: 0.74.7)

Environment:

  • Output of grype version: 0.78.0
  • OS (e.g: cat /etc/os-release or similar): mac
@tomersein tomersein added the bug Something isn't working label Jun 13, 2024
@tgerla
Copy link
Contributor

tgerla commented Jun 13, 2024

Hi @tomersein, thanks for the report. I just tried to trivially reproduce this and I was able to successfully use "grype db update" to download the database. Can you try this manual download command using curl and let us know the output?

curl -vO https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-06-13T01:31:30Z_1718252496.tar.gz

@tomerse-sg
Copy link

I guess it is something with my network..
40m and it is still downloading it

@tgerla
Copy link
Contributor

tgerla commented Jun 13, 2024

Let us know if you continue to see problems, we have had other issue with our CDN in the past.

@tomersein
Copy link
Author

tomersein commented Jun 16, 2024

happens in grype db diff

example from today:
unable to download listing: context deadline exceeded (Client.Timeout or context cancellation while reading body)

last log i can see -
[0000] INFO base_db_url and target_db_url not provided; fetching most recent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants