zot: [Bug]: Search plugin (UI) and zli util faling when repository contains oci and docker images
zot version
2.1.3-rc2
Describe the bug
push to registry with buildx:
docker buildx build --provenance false --cache-to=type=registry,ref=REDACTED_REGISTRY/REDACTED_IMAGE:buildcache --cache-from=type=registry,ref=REDACTED_REGISTRY/REDACTED_IMAGE:buildcache --push -t REDACTED_REGISTRY/REDACTED_IMAGE:$CI_COMMIT_SHA -t REDACTED_REGISTRY/REDACTED_IMAGE:latest -f docker/fpm/prod/Dockerfile .
index.json now contains:
To reproduce
- Configuration
"http": {
"compat": ["docker2s2"],
-
Client tool used ARG DOCKER_BUILDX_VERSION=‘0.19.3’ ARG DOCKER_CLI_VERSION=‘27.5.0’
-
Seen error can’t open image in UI, can’t list from zli
zli image list --config main --user gitlab:REDACTED
Error: image meta not found for digest sha256:16b9836dca45707981c817453501386c71301f95b5b17dd401a78157e0218497
image meta not found for digest sha256:025c56f98b679f70b7a54241917e56da7b59ab9d2defecc6ebdb0bf2750484bb
image meta not found for digest sha256:11770f5f7017e0db22612c408744bdfb56e86f3935a49610c8d41c47c7c0e8fc
image meta not found for digest sha256:03770a1b4101749f61ef1af8e88224509c31864f69ee1d06fc8aaaea068d3b2d
image meta not found for digest sha256:14a9829550521d3d06307a2fa4df44e33985bed12bc5d1ec08b103a8b871d353
image meta not found for digest sha256:07534e03af8159e0a04775c92a2227886a46b5eabc47139810ed8ede1f462425
image meta not found for digest sha256:02ec378cf71a3d05ab15795afa258ae173d0451b123411870fdbc9d89cc0baec
image meta not found for digest sha256:05579c985f9f5002ddeca897f7ca44967019f68857a65d44f0b0d45ad9c06ffc
zot log
{"level":"error","clusterMember":"10.12.18.52:8080","clusterMemberIndex":"1","error":"image meta not found for digest sha256:03770a1b4101749f61ef1af8e88224509c31864f69ee1d06fc8aaaea068d3b2d","repository":"REDACTED","component":"graphql","goroutine":355289,"caller":"zotregistry.dev/zot/pkg/extensions/search/resolver.go:1456","time":"2025-03-03T20:05:08.148594275Z","message":"can't retrieve imageMeta for repo"}
Expected behavior
No response
Screenshots
No response
Additional context
btw , the same error after build with buildx options below:
--cache-to=type=registry,image-manifest=false,oci-mediatypes=false
another set of options :
--cache-to=type=registry,image-manifest=true,oci-mediatypes=false
the error is:
#17 exporting config sha256:200dbfe4415b9b7e10eab6122b8c330e79421cc892ad740d56d0861d173ccdde done
#17 pushing layers
#17 pushing layers 1.2s done
#17 ERROR: failed to push REDACTED/REDACTED:ba82da8c681b4870b3c26bccff6b0ac56aa635d8: failed commit on ref "layer-sha256:b34d500ca5643854b7d57ef3ee41ec87eb88c61222a332dfe7f34274091ac215": unexpected status from PUT request to https://REDACTED/v2/REDACTED/blobs/uploads/2e86abb8-64d3-4fdf-9284-a3db52f7f1fe?digest=sha256%3Ab34d500ca5643854b7d57ef3ee41ec87eb88c61222a332dfe7f34274091ac215: 404 Not Found
------
> exporting to image:
------
ERROR: failed to solve: failed to push REDACTED/REDACTED:ba82da8c681b4870b3c26bccff6b0ac56aa635d8: failed commit on ref "layer-sha256:b34d500ca5643854b7d57ef3ee41ec87eb88c61222a332dfe7f34274091ac215": unexpected status from PUT request to https:/REDACTED/v2/REDACTED/blobs/uploads/2e86abb8-64d3-4fdf-9284-a3db52f7f1fe?digest=sha256%3Ab34d500ca5643854b7d57ef3ee41ec87eb88c61222a332dfe7f34274091ac215: 404 Not Found
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (10 by maintainers)
Commits related to this issue
- fix: show data from docker mediatypes in search results Including handling indexes / manifest lists for buildkit manifest lists containing image cache See - https://github.com/project-zot/zui/issues... — committed to andaaron/zot by andaaron 2 years ago
- fix: show data from docker mediatypes in search results Including handling indexes / manifest lists for buildkit manifest lists containing image cache See - https://github.com/project-zot/zui/issues... — committed to andaaron/zot by andaaron 2 years ago
- fix: show data from docker mediatypes in search results (#3019) Including handling indexes / manifest lists for buildkit manifest lists containing image cache See - https://github.com/project-zot/zu... — committed to project-zot/zot by andaaron 2 years ago
I also fixed the UI errors in https://github.com/project-zot/zot/pull/3044
@shcherbak please let me know if we can close this issue.
We should determine if this is caused by a mix of docker and oci media types in one repository, or caused by invalid indexes (produced in the past without image-manifest=true) being present in one repository.
L.E. in any case we should double check the code handling indexes containing manifests of non manifest/index media types.
@shcherbak thanks for all the testing you are doing.
Yes, docker compatibility is fairly new and there are some feature parity gaps.