grype: grype db is not being downloaded
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-releaseor similar): mac
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (9 by maintainers)
Hello @kzantow , this is the result of the curl
@kzantow It is happening consistently, i’m in eu region
For those affected by this issue, the team deployed the changes to how the grype vulnerability database is served late last night (UK time). So, runs should now no longer exhibit the same network stalling.
Please report if you see any further issues.
Hey everyone! The team is working on moving this over to a new distribution method at the moment.
There is recent commentary on this thread for potential work arounds from @kzantow: https://github.com/anchore/grype/issues/1731#issuecomment-2294148185
Current migration work can be seen here: https://github.com/anchore/grype-db/pull/359
Facing the same issue as reported by Max.
Interestingly fetching an earlier database works fine with wget
time wget https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-08-12T16:17:27Z_1723482328.tar.gzHowever for latest database
https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-08-16T01:31:16Z_1723782141.tar.gz, it slows down to a crawl after completing 70% of the downloadgrype db list output