timeout is not working as expected #4403
Replies: 4 comments
-
Hello @sourabhgupta385 Can you update Trivy and retry the scan? Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
-
I am wondering if the timeout only considers the scan time. Could it be that it took ~10 minutes to pull the image and then another 10 minutes to scan? I am asking because I have a different problem with the timeout when I cannot connect to the Trivy server in ClientServer mode (I used the wrong port intentionally in the following command). I set the timeout to 30s but the command takes more than 2 minutes before it times out:
|
Beta Was this translation helpful? Give feedback.
-
Hello @elchenberg Currently, Trivy has a total time to pull the image and scan it. About timeout for connecting to Trivy server: Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
-
I see the same with But I executed command below and it was running 15 minutes before I killed it.
|
Beta Was this translation helpful? Give feedback.
-
Description
I am using trivy 0.26.0 to scan docker images and I am using timeout of 10m in the Jenkins pipelines. Below is my command to do scan:
What did you expect to happen?
In case of taking more than 10m to do scanning, it should timed out at 10 min threshold and report an error.
What happened instead?
Scanning ran for about 20 min and then reported error. Sometimes it is running for more time also.
Output of run:
Beta Was this translation helpful? Give feedback.
All reactions