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-release or similar): mac

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Hello @kzantow , this is the result of the curl image

@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.gz

However 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 download

grype db list output

Built:    2024-08-16 01:31:16 +0000 UTC
URL:      https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-08-16T01:31:16Z_1723782141.tar.gz
Checksum: sha256:ac053bd8dfbae55e9d5d62a10d0f71fb592a51047dc56d97b6e8aba0c1aa3610

Built:    2024-08-15 01:31:38 +0000 UTC
URL:      https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-08-15T01:31:38Z_1723695637.tar.gz
Checksum: sha256:952512c6f98bf36d30d474a0a69cf15adae21dc49387f3110cd8f67dd5ad9129

Built:    2024-08-13 01:31:28 +0000 UTC
URL:      https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-08-13T01:31:28Z_1723556154.tar.gz
Checksum: sha256:babe390d62917f076b2b0cc2397edf246b3d6bcc214230f147b18dea448b5d57

Built:    2024-08-12 16:17:27 +0000 UTC
URL:      https://toolbox-data.anchore.io/grype/databases/vulnerability-db_v5_2024-08-12T16:17:27Z_1723482328.tar.gz
Checksum: sha256:abac9b95d0c6f31f9834260c19ca23ec478d593ba5cb324f2b5dff2ea0c9ce89