-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected EOF errors while analyzing image layers #3807
Comments
Hello @namandf Do you try to use |
Hi @DmitriyLewen , Haven't tried out the slow flag. Let me give it a try. But that would mean sequential processing of files within a layer. Is that correct?
|
correct
right, but lets check, it can give us more information.
This error occurs when Trivy takes a long time to parse a file while connection is open. We currently save all jar files and open them from local PC. |
Encountered a different error this time.
|
can you check Perhaps it is empty file. Same issue is #3818 |
Sure. Let me check. But isn't the fix for this issue already part of 0.38.2 #3832 ? |
No. Last release(v0.38.3) doesn't include these changes. |
v0.39.0 should fix the issue. Please let us know if it is not the case. |
I'm scanning a Drupal application and getting the same error. Composer.json file is 443.31 KB. I'm using the version 0.40.0. |
Hello @AguangMikeZhang Can you send me an image for investigation in #4003? |
Hi @DmitriyLewen , thank you for the reply. It turns out it was trying to scan a different composer.lock that was empty, which caused the issue. It's all good now. Thanks again! |
@knqyf263 I am still seeing this issue in v0.39.0 [/jobservice/runner/redis.go:123]: Job 'IMAGE_SCAN:2f23113f5bd5e4c4a52162bb' exit with error: run error: unexpected EOF also i am seeing new error for conversion Failed to convert vulnerability data to new schema for report e64c20c0-2606-4490-9113-1df0a848ba6f, error Error when converting vulnerability report: unexpected EOF ++ @AyushCloud |
@DmitriyLewen , could you please assist us |
Hello @janepelladinesh Do you get this error for Trivy application? |
Hi @DmitriyLewen but still i see few images are failing with trivy v0.39.0 Apr 24 08:58:08 172.22.0.1 jobservice[12818]: 2023-04-24T08:58:08Z [INFO] [/pkg/scan/job.go:167]: Report mime types: [application/vnd.security.vulnerability.report; version=1.1] |
Description
Trivy image scans fail intermittently with unexpected EOF errors while analysing layers.
What did you expect to happen?
Scan should complete without errors.
What happened instead?
Output of run with
-debug
:trivy_0.38.2.txt
Output of
trivy -v
:Additional details (base image name, container registry info...):
The text was updated successfully, but these errors were encountered: