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

push tool can't push manifest and ends with BLOB_UNKNOWN error #59

Closed
theoriginalgri opened this issue Oct 2, 2024 · 3 comments
Closed

Comments

@theoriginalgri
Copy link
Contributor

I've run into having a layer > 200 MB which makes the use of docker push unavailable as of now.

So I've tried to push tool introduced in #47 but somehow fail to even upload a retagged version of ubuntu:latest which I've tried as a comparison.

 $ echo $DOCKER_DEV_REGISTRY_PASSWORD | USERNAME_REGISTRY=$DOCKER_DEV_REGISTRY_USERNAME bun run index.ts registry.mycompany.io/ubuntu:latest       

Preparing image...
compressing...
Starting push to remote
Pushed sha256:c22ec0081bf1bc159b97b27b55812319e99b710df960a16c2f2495dc7fc61c00
392 |   body: JSON.stringify(manifestObject),
393 |   method: "PUT",
394 | });
395 | 
396 | if (!responseManifestUpload.ok) {
397 |   throw new Error(
              ^
error: manifest upload https://registry.mycompany.io/v2/ubuntu/manifests/latest returned 400: {"errors":[{"code":"BLOB_UNKNOWN","message":"unknown blob sha256:0daecdc511ef686320a43c1fad37a4d77053bcf4c318214781e26d97b36668a9","detail":{}}]}
      at /Users/username/projects/serverless-registry/push/index.ts:397:9

Bun v1.1.29 (macOS arm64)

The same behaviour happens in a CI script on a x86_64 linux machine. Pushing the same ubuntu image with docker push works just fine.

@gabivlj
Copy link
Collaborator

gabivlj commented Oct 2, 2024

Oops: #60

thx for reporting!

@gabivlj
Copy link
Collaborator

gabivlj commented Oct 2, 2024

It's been merged. Sorry about the issues!

@theoriginalgri
Copy link
Contributor Author

I can confirm it's working fine now 🎉 Thanks for the fast fix 🙏

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

2 participants