Failed to download vulnerability DB: failed to download vulnerability DB: DB file not found #434
-
I'm using starboard operator for trivy. Used used my company github_token which is private github. I'm getting below error. "status.reason": "Error", "status.message": "2021-03-18T10:33:56.770Z\t\u001b[34mINFO\u001b[0m\tUse your github token\n2021-03-18T10:33:56.7 tNeed to update DB\n2021-03-18T10:33:56.770Z\t\u001b[34mINFO\u001b[0m\tDownloading DB...\n2021-03-18T10:33:58.681Z\t\u001b[31mFATAL\u001b[0m\tfailed to download vulnerability DB: failed to download vulnerability DB: DB file not found\n"} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
👋 @mamathak412 We've seen already that GitHub API may be unstable and if that's the case you will see such errors. Trivy is trying to download release assets from https://github.com/aquasecurity/trivy-db/releases. Make sure that you can download trivy-db.tgz archive with wget or curl command and then retry scanning with Starboard. Do let us know if the problem persists. |
Beta Was this translation helpful? Give feedback.
-
That looks weird @mamathak412 and I cannot reproduce the same with GitHub personal access token. Could you please do one more test and run Trivy in your cluster as a Kubernetes job? This is after all what Starboard does under the covers. For example:
|
Beta Was this translation helpful? Give feedback.
👋 @mamathak412 We've seen already that GitHub API may be unstable and if that's the case you will see such errors. Trivy is trying to download release assets from https://github.com/aquasecurity/trivy-db/releases. Make sure that you can download trivy-db.tgz archive with wget or curl command and then retry scanning with Starboard. Do let us know if the problem persists.