Trivy 0.58.1 can't download vulnerability DB #8225
Replies: 3 comments 1 reply
-
Also tried run trivy clean, still not work.
|
Beta Was this translation helpful? Give feedback.
-
Hello @LiZhang19817 Looks like i found similar problem - https://forums.docker.com/t/docker-login-fails-with-error-saving-credentials-error-storing-credentials-err-signal-killed-out/136277 Have you logged into Docker for |
Beta Was this translation helpful? Give feedback.
-
@DmitriyLewen Yes, change with other db repository, still git the same issue.
|
Beta Was this translation helpful? Give feedback.
-
Description
trivy --version
Version: 0.58.1
Desired Behavior
Should be able to scan my image
Actual Behavior
trivy image python:3.4-alpine --debug
2025-01-10T11:55:07+08:00 DEBUG No plugins loaded
2025-01-10T11:55:07+08:00 DEBUG Default config file "file_path=trivy.yaml" not found, using built in values
2025-01-10T11:55:07+08:00 DEBUG Cache dir dir="/Users/lizhang/Library/Caches/trivy"
2025-01-10T11:55:07+08:00 DEBUG Cache dir dir="/Users/lizhang/Library/Caches/trivy"
2025-01-10T11:55:07+08:00 DEBUG Parsed severities severities=[UNKNOWN LOW MEDIUM HIGH CRITICAL]
2025-01-10T11:55:07+08:00 DEBUG Ignore statuses statuses=[]
2025-01-10T11:55:07+08:00 DEBUG [vulndb] There is no valid metadata file err="unable to open a file: open /Users/lizhang/Library/Caches/trivy/db/metadata.json: no such file or directory"
2025-01-10T11:55:07+08:00 INFO [vulndb] Need to update DB
2025-01-10T11:55:07+08:00 DEBUG [vulndb] No metadata file
2025-01-10T11:55:07+08:00 INFO [vulndb] Downloading vulnerability DB...
2025-01-10T11:55:07+08:00 INFO [vulndb] Downloading artifact... repo="mirror.gcr.io/aquasec/trivy-db:2"
2025-01-10T11:55:07+08:00 FATAL Fatal error
github.com/aquasecurity/trivy/pkg/commands/artifact.Run
github.com/aquasecurity/trivy/pkg/commands/artifact/run.go:367
github.com/aquasecurity/trivy/pkg/commands/artifact.NewRunner
github.com/aquasecurity/trivy/pkg/commands/artifact/run.go:119
github.com/aquasecurity/trivy/pkg/commands/operation.DownloadDB
github.com/aquasecurity/trivy/pkg/commands/operation/operation.go:40
github.com/aquasecurity/trivy/pkg/db.(*Client).Download
github.com/aquasecurity/trivy/pkg/db/db.go:163
github.com/aquasecurity/trivy/pkg/db.(*Client).downloadDB
github.com/aquasecurity/trivy/pkg/db/db.go:212
github.com/aquasecurity/trivy/pkg/oci.Artifacts.Download
github.com/aquasecurity/trivy/pkg/oci/artifact.go:238
github.com/aquasecurity/trivy/pkg/oci.(*Artifact).populate
github.com/aquasecurity/trivy/pkg/oci/artifact.go:97
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
MacOS 15.2 M1
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions