Replies: 2 comments 9 replies
-
Hello @jerrac I think it is better to avoid scanning directory with changing files:
Some users ignoring logs, so we have only one way to draw attention on this dir - to return error. But users periodically write about this error. @knqyf263 wdyt? |
Beta Was this translation helpful? Give feedback.
-
Hi, Seen this discussion and wanted to +1 @jerrac's request. I am seeing this error for a lot of different directories and there is too many to list using --skipp-dirs and --skip-files. As mentioned an option to log the error and continue the scan would be a great addition 👍 |
Beta Was this translation helpful? Give feedback.
-
Description
I'd like a way to let Trivy ignore "FATAL ... no such file or directory" errors.
I've run into that error ending Trivy's scan multiple times. Both when using 'fs' and 'rootfs'. (Ubuntu 22.04 with Trivy installed from your apt repos.)
Since the files causing the error are always in directories I expect to have changing data, I'm guessing that Trivy is getting a list of files, then scanning each file in turn. And when one of the files has gone away, it throws a fatal error.
I see similar issues here:
Since neither seem to have any conclusions, I'm not sure if this is a bug, or behavior that is intentional.
So, if this is a bug, I'd love to see it fixed.
If it is intentional, then can we have a way to override it?
Or, maybe just an explanation of why Trivy behaves this way?
Thanks!
Target
None
Scanner
None
Beta Was this translation helpful? Give feedback.
All reactions