2024-09-25T09:06:05Z FATAL Fatal error #7670
Replies: 1 comment
-
Duplicate of #7538 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Getting below error in azure pipeline trivy task. This happens intermittently.
22126857a555: Verifying Checksum
22126857a555: Download complete
1e4db3f86ba5: Verifying Checksum
1e4db3f86ba5: Download complete
22126857a555: Pull complete
1e4db3f86ba5: Pull complete
f5a907a27a4a: Pull complete
Digest: sha256:addfb8fd6b9e520c25b22c61d8aa5d58ecd7879177aa959f952bf4734f4e3f60
Status: Downloaded newer image for aquasec/trivy:latest
2024-09-25T09:06:04Z DEBUG No plugins loaded
2024-09-25T09:06:04Z DEBUG Default config file "file_path=trivy.yaml" not found, using built in values
2024-09-25T09:06:04Z DEBUG Cache dir dir="/root/.cache/trivy"
2024-09-25T09:06:04Z DEBUG Cache dir dir="/root/.cache/trivy"
2024-09-25T09:06:04Z DEBUG Parsed severities severities=[UNKNOWN LOW MEDIUM HIGH CRITICAL]
2024-09-25T09:06:04Z DEBUG Ignore statuses statuses=[]
2024-09-25T09:06:04Z DEBUG There is no valid metadata file err="unable to open a file: open /root/.cache/trivy/db/metadata.json: no such file or directory"
2024-09-25T09:06:04Z INFO [db] Need to update DB
2024-09-25T09:06:04Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-25T09:06:04Z DEBUG No metadata file
2024-09-25T09:06:05Z FATAL Fatal error
github.com/aquasecurity/trivy/pkg/commands/artifact.Run
/home/runner/work/trivy/trivy/pkg/commands/artifact/run.go:366
github.com/aquasecurity/trivy/pkg/commands/artifact.NewRunner
/home/runner/work/trivy/trivy/pkg/commands/artifact/run.go:118
github.com/aquasecurity/trivy/pkg/commands/operation.DownloadDB
/home/runner/work/trivy/trivy/pkg/commands/operation/operation.go:41
github.com/aquasecurity/trivy/pkg/db.(*Client).Download
/home/runner/work/trivy/trivy/pkg/db/db.go:162
github.com/aquasecurity/trivy/pkg/oci.(*Artifact).Download
/home/runner/work/trivy/trivy/pkg/oci/artifact.go:144
github.com/aquasecurity/trivy/pkg/oci.(*Artifact).download
/home/runner/work/trivy/trivy/pkg/oci/artifact.go:158
##[error]Failed: Trivy detected problems.
Publishing JSON results...
##[error]Unable to process command '##vso[task.addattachment type=JSON_RESULT;name=trivy0.536304797538341.json;]/tmp/trivy-results-0.7104559655238769.json' successfully. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=817296)
##[error]Value cannot be null. (Parameter 'Cannot upload task attachment file, attachment file location is not specified or attachment file does not exist on disk.')
Done!
Finishing: Trivy scan - DEV/SIT
Desired Behavior
On each azure pipeline run it should scan sucessfully
Actual Behavior
Pipeline fails now and then
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
Ubuntu-latest
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions