Replies: 4 comments 13 replies
-
|
Could you try with |
Beta Was this translation helpful? Give feedback.
-
|
Hi @knqyf263, I retried the scan with debug mode enabled. The WildFly repository worked fine, but we faced a similar error on another project, camel-quarkus. Sharing a small part of the debug log below: |
Beta Was this translation helpful? Give feedback.
-
|
Same error, it is very random, it's happening about 1/2. When it works it is very fast, less than <25sec. And when it fails it timeout. (10min) I kind of suspect mvnd is not always consistant in the downloading ? which may explain our 50% failure rate. Any hints appreciated. Also we could open an issue? EDIT:
Trivy is run after the build. I'm pretty sure all dependencies are downloaded before. |
Beta Was this translation helpful? Give feedback.
-
|
@DmitriyLewen Any insights on above? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi Team,
While scanning WildFly source repositories using
trivy fs, the scan intermittently fails with acontext deadline exceedederror. The issue appears during the file traversal or analysis stage for specific pom.xml files within the WildFly source tree.Error Logs:
Executing trivy scanner 2025-10-31T06:26:31Z FATAL Fatal error run error: fs scan error: scan error: scan failed: failed analysis: analyze with traversal: walk dir error: unknown error with wildfly/clustering/common/pom.xml: failed to analyze file: analyze file (clustering/common/pom.xml): semaphore acquire: context deadline exceeded 2025-10-31T06:56:31Z FATAL Fatal error run error: fs scan error: scan error: scan failed: failed analysis: analyze with traversal: walk dir error: unknown error with wildfly/clustering/ejb/cache/pom.xml: failed to analyze file: analyze file (clustering/ejb/cache/pom.xml): semaphore acquire: context deadline exceeded Error: Process completed with exit code 1.Command Used:
sudo trivy -q fs --timeout 30m -f json <source_code>Expected Behavior:
Trivy should complete the full filesystem scan without timing out on specific files.
Actual Behavior:
Trivy terminates with a fatal error, failing to analyze certain pom.xml files in the WildFly source tree, showing a semaphore acquire: context deadline exceeded message.
Additional Context / Notes:
Increasing the timeout to 30m did not resolve the problem.
It would be really helpful if you'll could help investigate or suggest a workaround for this issue.
Thanks!
Target
Filesystem
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Operating System
ppc64le
Version
Beta Was this translation helpful? Give feedback.
All reactions