Skip to content
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

Unable to publish corral image to registry 404 manifest invalid #95

Open
slickwarren opened this issue Dec 6, 2022 · 0 comments
Open

Comments

@slickwarren
Copy link
Contributor

When using the corral package publish <local package> <public name> function, I run into an error which points to a bad manifest.

After some investigation, this may be due to a versioning or content-type issue:
host logs:

manifest: {"schemaVersion":2,"config":{"mediaType":"application/vnd.oci.image.layer.v1.tar","digest":"sha256:54a835b1925555d625da47d3d35405c3890915f6e90821acec24f4a42d50c8fc","size":2425},"layers":[{"mediaType":"application/vnd.oci.image.layer.v1.tar+gzip","digest":"sha256:3c602b3756058d0cfd9e01460aaf5c894d7d93af0205eeae0e41925fd1582c00","size":795},{"mediaType":"application/vnd.oci.image.layer.v1.tar+gzip","digest":"sha256:79a91e44b6b496e026ef8e27ffb5aab9e6b059b2d97946944f6fda0506365e7f","size":1320},{"mediaType":"application/vnd.oci.image.layer.v1.tar+gzip","digest":"sha256:fc13a90040cd1f87bee16b43f07ecc3c644a7d6ec83935e994ed876bc6a54f2b","size":906}],"annotations":{"corral.cattle.io/corral-version":"test","corral.cattle.io/published-at":"2022-12-06T00:52:55Z","corral.cattle.io/published-by":"ctw","corral.cattle.io/terraform-version":"1.0.11"}} 




"MANIFEST_INVALID\",\"message\":\"manifest invalid\",\"detail\":{}}]}\n" resp="&{400 Bad Request 400 HTTP/1.1 1 1 map[Connection:[keep-alive] Content-Length:[82] Content-Type:[application/json; charset=utf-8] Date:[Tue, 06 Dec 2022 00:53:01 GMT] Docker-Distribution-Api-Version:[registry/2.0] Server:[nginx/1.23.2] X-Content-Type-Options:[nosniff]] 0xc00039e040 82 [] false false map[] 0xc00009bf00 0xc00054a0b0}"
[4:55](https://suse.slack.com/archives/D02M89K081L/p1670288134012479)
time="2022-12-06T00:53:01Z" level=error msg="response completed with error" err.code="manifest unknown" err.detail="unknown tag=latest" err.message="manifest unknown" go.version=go1.7.6 http.request.host=ctwtest-registry.qa.rancher.space http.request.id=1932de35-0883-4801-aad7-c086030c54c0 http.request.method=HEAD http.request.remoteaddr=73.189.63.80 http.request.uri="/v2/corral-packages/aws-replace-node-rke2-replace-node-calico-v1.24.7-rke2r1/manifests/latest" http.request.useragent="Corral/c5a0b23-dirty" http.response.contenttype="application/json; charset=utf-8" http.response.duration=1.550633ms http.response.status=404 http.response.written=96 instance.id=42c1974a-fa4d-4743-bcf2-87cb5c410148 vars.name="corral-packages/aws-replace-node-rke2-replace-node-calico-v1.24.7-rke2r1" vars.reference=latest version=v2.6.2-14-ga66a4c3 

Registry logs:

time="2022-12-06T00:53:01Z" level=error msg="response completed with error" err.code="manifest invalid" err.detail="missing signature key" err.message="manifest invalid" go.version=go1.7.6 http.request.contenttype="application/vnd.oci.image.manifest.v1+json" http.request.host=ctwtest-registry.qa.rancher.space http.request.id=da6dd9f6-ed17-4be5-8a2d-3f8eee5b1fad http.request.method=PUT http.request.remoteaddr=73.189.63.80 http.request.uri="/v2/corral-packages/aws-replace-node-rke2-replace-node-calico-v1.24.7-rke2r1/manifests/latest" http.request.useragent="Corral/c5a0b23-dirty" http.response.contenttype="application/json; charset=utf-8" http.response.duration=1.457591ms http.response.status=400 http.response.written=82 instance.id=42c1974a-fa4d-4743-bcf2-87cb5c410148 vars.name="corral-packages/aws-replace-node-rke2-replace-node-calico-v1.24.7-rke2r1" vars.reference=latest version=v2.6.2-14-ga66a4c3 
172.17.0.3 - - [06/Dec/2022:00:53:01 +0000] "PUT /v2/corral-packages/aws-replace-node-rke2-replace-node-calico-v1.24.7-rke2r1/manifests/latest HTTP/1.0" 400 82 "" "Corral/c5a0b23-dirty"

example of a noncorral image's content type:

http.request.contenttype="application/vnd.docker.distribution.manifest.v2+json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant