XRAY: Resolving Timeout Errors When Scanning Large Artifacts with JFrog Advanced Security

XRAY: Resolving Timeout Errors When Scanning Large Artifacts with JFrog Advanced Security

AuthorFullName__c
Shashwath Rai
articleNumber
000006284
FirstPublishedDate
2024-12-26T08:28:07Z
lastModifiedDate
2025-07-22
Overview

When scanning large artifacts using the JFrog Advanced Security features like Contextual Analysis and Exposures, you may encounter timeout errors in the Xray analysis service log files. These errors indicate that the scanning jobs exceeded the default execution time thresholds and were marked as failed.

Error Messages Observed:
For Contextual Analysis:
2024-11-01T09:38:01.484Z [33m[jfxan][0m [31m[WARN ][0m [82b95fef75a0203b] [icability_execution_worker:143] […092-5c1e-4108-83d2-a10908a119b5] Job (applicabilityscannersjob-5d415092-5c1e-4108-83d2-a10908a119b5, applicabilityscannersjob-5d415092-5c1e-4108-83d2-a10908a119b5) has exceeded timeout of 30m0s minutes (started 2024-11-01 09:07:36 +0000 UTC) - marking it as failed
2024-11-01T09:38:01.484Z [33m[jfxan][0m [1m[31m[ERROR][0m [82b95fef75a0203b] [icability_execution_worker:130] […092-5c1e-4108-83d2-a10908a119b5] Job failed, notifying handler. runId: 1866408783924797440, JobId: applicabilityscannersjob-5d415092-5c1e-4108-83d2-a10908a119b5

For Exposures Scan:
2024-11-01T09:33:43.734Z [33m[jfxan][0m [1m[31m[ERROR][0m [82b95fef75a0203b] [exposures_execution_worker:152] […ccc-c94a-44b2-9759-3407a210ff15] Job has exceeded timeout of 25m0s minutes. runId: 694, JobId: exposuresscannersjob-95d89ccc-c94a-44b2-9759-3407a210ff15
2024-11-01T09:33:43.734Z [33m[jfxan][0m [1m[31m[ERROR][0m [82b95fef75a0203b] [exposures_execution_worker:144] […ccc-c94a-44b2-9759-3407a210ff15] Job failed, notifying handler. runId: 694, JobId: exposuresscannersjob-95d89ccc-c94a-44b2-9759-3407a210ff15

 
contextualAnalysis:
  enabled: true
  jobTotalTimeOutMin: 60
exposures:
  enabled: true
  jobTimeoutMinutes: 60

Steps to Implement:
1. Update the system.yaml file with the above configuration.
2. Restart the Xray service to apply the changes.