IssueRaiser

Ratelimiting error when downloading vulnerability db from ghcr.io

Hi, we're using trivy to scan our containers, lately we've been seeing an increase number of rate-limiting errors when trivy is downloading the vulnerability database. ![image](https://github.com/user-attachments/assets/5d495282-148f-455b-9546-89d6456ff789) >"2024-09-18T10:40:44Z FATAL Fatal error init error: DB error: failed to download vulnerability DB: database download error: oci download error: failed to fetch the layer: GET https://ghcr.io/v2/aquasecurity/trivy-db/blobs/sha256:11c57f2012b2ac112256f94aa404e1feb7e1b7a5787598946b87149115cdb43d: TOOMANYREQUESTS: retry-after: 129.163µs, allowed: 44000/minute" My guess is this is a global ratelimit as i can't imagine our low number of devs are causing 700+ requests a second. I have in the meantime discovered that these scans are only used for SBOM generation on our end so we don't need to download the vulnerability database everytime, but i though this issue should be raised as i can't imagine we are the only ones seeing these errors.

Posted by HenrikDK on Sep 18, 2024, 11:01 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

github (Software)

Ratelimiting error when downloading vulnerability db from ghcr.io

HenrikDKSep 18, 2024, 11:01 AM

Hi, we're using trivy to scan our containers, lately we've been seeing an increase number of rate-limiting errors when trivy is downloading the vulnerability database. ![image](https://github.com/user-attachments/assets/5d495282-148f-455b-9546-89d6456ff789) >"2024-09-18T10:40:44Z FATAL Fatal error init error: DB error: failed to download vulnerability DB: database download error: oci download error: failed to fetch the layer: GET https://ghcr.io/v2/aquasecurity/trivy-db/blobs/sha256:11c57f2012b2ac112256f94aa404e1feb7e1b7a5787598946b87149115cdb43d: TOOMANYREQUESTS: retry-after: 129.163µs, allowed: 44000/minute" My guess is this is a global ratelimit as i can't imagine our low number of devs are causing 700+ requests a second. I have in the meantime discovered that these scans are only used for SBOM generation on our end so we don't need to download the vulnerability database everytime, but i though this issue should be raised as i can't imagine we are the only ones seeing these errors.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue