filesystem scan error: scan error: scan failed: failed analysis: walk filesystem: walk dir error: #7071
shashank-gugalia-ck
started this conversation in
Bugs
Replies: 1 comment
-
this reliably happens when scanning an AMI with the ECS agent installed, we're using v0.55.0, the output is:
(AMI/snapshot ID removed because they're not public) also tried with |
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
2024-07-01T00:00:04-07:00 FATAL Fatal error filesystem scan error: scan error: scan failed: failed analysis: walk filesystem: walk dir error: unknown error with $filename: open filenamename : no such file or directory
We get this error on few different instance every day and than scanning fails
trivy -v
Version: 0.52.0
Vulnerability DB:
Version: 2
UpdatedAt: 2024-06-12 00:15:57.030512903 +0000 UTC
NextUpdate: 2024-06-12 06:15:57.030512632 +0000 UTC
DownloadedAt: 2024-06-12 00:53:53.016363 +0000 UTC
Desired Behavior
There are transient files with different formats, so identifying the skipping pattern would be reactive hence IMO we should log this error but not stop the scanning,
Actual Behavior
Process terminates after this error without logging the the findings
Reproduction Steps
1.Its hard to reproduce this, we are running trivy on 1000s of instances since last 4 days and so far every day we see 1 or 2 instance logging it but its never the same instance 2. The understanding is that there are transient files, which exist when the scan start but are no longer available when that file is actually getting scanner for secrets by trivy ...
Target
Filesystem
Scanner
Secret
Output Format
JSON
Mode
Standalone
Debug Output
Its hard to run the tool with -debug on all the instance. Given last 4 days since we are running this tool and this error has happened on different instance all the time
Operating System
Rocky Linux
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions