-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
After upgrading to v2.8.2 version, getting unexpected status code: 500, expected: 200 error for scan #18824
Comments
@psandeep09 are you able to pull the image with docker client? And could you please share the details on how you configuration and install harbor? especially on the parts of storage, it seems that trivy adapter failed by storage permission. cc @zyyw |
except scan everything is working. I am using docker-compose. just downloaded the online release files and execute the install sh file. |
Hi @psandeep09 , would you mind push another image, for example nginx:1.23.3 to your Harbor instance and scan it to see if this issue still persists?
These would be related, please push |
@zyyw @wy65701436 a PR has been submitted to disable the |
@zyyw I see issues only if the image has vulnerabilities. |
@zyyw yes, it's a windows image. |
We are facing the same problem scanning a windows image after we upgraded from an old version (<2.5) to 2.8.3 |
Even after adding
Any advice would be appreciated 😄 |
yes getting same issue with latest version for docker pull fluent/fluentd:v1.16.2-windows-ltsc2019-1.0 |
2.9.0 still has this issue, so scanning windows based images is still broken. |
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
Seeing the same thing for |
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue. |
I have re-installed Harbor from scratch but still getting the same error.
Before re-installing I have removed -
2023-06-16T12:34:16Z [INFO] [/pkg/scan/job.go:387]: { "uuid": "bac2bed9-0c3e-11ee-9038-0242c0a8e009", "name": "Trivy", "description": "The Trivy scanner adapter", "url": "http://trivy-adapter:8080", "disabled": false, "is_default": true, "health": "healthy", "auth": "", "access_credential": "[HIDDEN]", "skip_certVerify": false, "use_internal_addr": true, "adapter": "Trivy", "vendor": "Aqua Security", "version": "v0.42.0", "create_time": "2023-06-16T12:10:05.589622Z", "update_time": "2023-06-16T12:10:05.589624Z" } 2023-06-16T12:34:16Z [INFO] [/pkg/scan/job.go:387]: { "registry": { "url": "http://core:8080", "authorization": "[HIDDEN]" }, "artifact": { "namespace_id": 2, "repository": "generic/nodejs-baseimage", "tag": "v3.5-20201013-windowsservercore-ltsc2019.v16.20.0", "digest": "sha256:a4e186667ebb927d2bde495a1ff6163eaf161517d49bc7e742bc38f46a09c2bd", "mime_type": "application/vnd.docker.distribution.manifest.v2+json" } } 2023-06-16T12:34:16Z [INFO] [/pkg/scan/job.go:167]: Report mime types: [application/vnd.security.vulnerability.report; version=1.1] 2023-06-16T12:34:16Z [INFO] [/pkg/scan/job.go:224]: Get report for mime type: application/vnd.security.vulnerability.report; version=1.1 2023-06-16T12:34:18Z [INFO] [/pkg/scan/job.go:245]: Report with mime type application/vnd.security.vulnerability.report; version=1.1 is not ready yet, retry after 5 seconds 2023-06-16T12:34:23Z [ERROR] [/pkg/scan/job.go:294]: check scan report with mime type application/vnd.security.vulnerability.report; version=1.1: running trivy wrapper: running trivy: exit status 1: 2023-06-16T12:34:17.483Z �[34mINFO�[0m Vulnerability scanning is enabled 2023-06-16T12:34:19.299Z �[31mFATAL�[0m image scan error: scan error: scan failed: failed analysis: analyze error: pipeline error: failed to analyze layer (sha256:d5e83508b2cbfebc1c5e9156cfb7d4a0747c1fcc2318ea4099c65c6e866a6e26): post analysis error: post analysis error: terraformplan scan error: fs filter error: fs filter error: walk error open /tmp/layers-4293593078/layer-file-1959996178: permission denied: open /tmp/layers-4293593078/layer-file-1959996178: permission denied : general response handler: unexpected status code: 500, expected: 200
The text was updated successfully, but these errors were encountered: