clair-scanner: [CRITICAL] Clair Scannner 400 errors when Analyzing code
Running clair-scanner in docker and we are noticing blobs/sha256 appended to the layer and the scanning is failing.
23:26:52 + /clair/clair-scanner --clair=http://clair/ --ip=X.X.X.X --report=build/clair/clair-result_1.json --whitelist=build/clair/clair-allowlist.yaml sha256:eb9d02bc6996d6ff8e8b20e6ab12d97ae9288e1868461e640d6caa6f17acc754
23:26:52 2024/12/09 04:26:51 [0;32m[INFO] ▶ Start clair-scanner[0m
23:27:00 2024/12/09 04:26:59 [0;32m[INFO] ▶ Server listening on port 9279[0m
23:27:00 2024/12/09 04:26:59 [0;32m[INFO] ▶ Analyzing blobs/sha256/a9b34f345c5b4d6b4e95067e09312cad6db11e6593eb93dd73df573dff9b3f02[0m
23:27:00 2024/12/09 04:26:59 [0;31m[CRIT] ▶ Could not analyze layer: Clair responded with a failure: Got response 400 with message {"Error":{"Message":"could not find layer"}}
23:27:00 [0m
23:27:00 [Pipeline] echo
23:27:00 Clair returned with status 1
23:27:00 [Pipeline] archiveArtifacts
Earlier scans didn’t have blobs/sha256 infront of the layer.
Tried pointing to older image for clair scanner but that didn’t work either.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 33 (1 by maintainers)
Hello @datadot
I think I’ve good news, increasing memory to 4 Gigs solved the problem. I was able to scan image successfully.