devguard icon indicating copy to clipboard operation
devguard copied to clipboard

context deadline exceeded

Open 5byuri opened this issue 3 months ago • 5 comments

Image

https://uptrace.dev/glossary/context-deadline-exceeded

Applies for Container Scanning and SCA this results in the pipelines always failing

5byuri avatar Sep 26 '25 09:09 5byuri

This is related to a database update... Hopefully we get this much faster soon... https://github.com/l3montree-dev/devguard/pull/1147

timbastin avatar Sep 26 '25 09:09 timbastin

I have a similar issue with the sast command:

Error: could not send request: Post "http://localhost:8080/api/v1/sarif-scan/": context deadline exceeded

In other projects i had no issues. Uploading the result.sarif with the Web UI or with devguard-scanner sarif worked in seconds. The filesize of result.sarif is around 4MB. I installed the scanner locally with go install github.com/l3montree-dev/devguard/cmd/[email protected].

pwassermann avatar Oct 06 '25 14:10 pwassermann

hi @pwassermann this usually happens when devguard is doing a database update and the database is to slow to respond. We already merged the fix for much faster database updates. We will get this to production this week. Can you maybe double check if your issue is not related to a database update? The logs in the devguard api server should indicate that it is currently doing that - or just memory and cpu consumption of the postgres container.

timbastin avatar Oct 06 '25 14:10 timbastin

thanks @timbastin for the quick reply. i wasn't able to identify heavy database or api usage during the last minute of the scan (the defined request timeout). But I will wait for the vulndb performance fix this week and try again. if it does not help, i will give my best to provide more details for debugging.

pwassermann avatar Oct 06 '25 15:10 pwassermann

Hi @pwassermann did the new update work out for you? Do you still have any issues?

timbastin avatar Oct 24 '25 07:10 timbastin