context deadline exceeded
https://uptrace.dev/glossary/context-deadline-exceeded
Applies for Container Scanning and SCA this results in the pipelines always failing
This is related to a database update... Hopefully we get this much faster soon... https://github.com/l3montree-dev/devguard/pull/1147
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].
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.
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.
Hi @pwassermann did the new update work out for you? Do you still have any issues?