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

Error: PUT request body is not rewindable #456

Closed
jobcespedes opened this issue Jul 21, 2022 · 14 comments · Fixed by #462
Closed

Error: PUT request body is not rewindable #456

jobcespedes opened this issue Jul 21, 2022 · 14 comments · Fixed by #462
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jobcespedes
Copy link

jobcespedes commented Jul 21, 2022

Oras version 0.13.0

DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/sha256:a39831967c0c168144c24
e4a0d9659dfd275b700fdf29fe5ea7ac595c0c8156c"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "Authorization": "*****"
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0000]  Response Status: "401 Unauthorized"
DEBU[0000]  Response headers:
DEBU[0000]    "Content-Type": "application/json; charset=utf-8"
DEBU[0000]    "Content-Length": "58"
DEBU[0000]    "Connection": "keep-alive"
DEBU[0000]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0000]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws
\""
DEBU[0000]    "Date": "Thu, 21 Jul 2022 17:24:01 GMT"
DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/sha256:44136fa355b3678a1146a
d16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "Authorization": "*****"
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "404 Not Found"
DEBU[0001]  Response headers:
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Date": "Thu, 21 Jul 2022 17:24:01 GMT"
Uploading a39831967c0c all_state_image_artifact.tar.gz
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/"
DEBU[0001]  Request method: "POST"
DEBU[0001]  Request headers:
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "200 OK"
DEBU[0001]  Response headers:
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Date": "Thu, 21 Jul 2022 17:24:01 GMT"
DEBU[0001]    "Content-Type": "application/vnd.docker.container.image.v1+json"
DEBU[0001]    "Content-Length": "2"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Content-Digest": "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
Exists    44136fa355b3
DEBU[0001]  Response Status: "401 Unauthorized"
DEBU[0001]  Response headers:
DEBU[0001]    "Date": "Thu, 21 Jul 2022 17:24:01 GMT"
DEBU[0001]    "Content-Type": "application/json; charset=utf-8"
DEBU[0001]    "Content-Length": "58"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws
\""
DEBU[0001]  Request URL: "https://public.ecr.aws/token/?scope=aws&scope=repository%3Ae3i0l4d7%2Fall_state_image_artifact
%3Apull%2Cpush&service=public.ecr.aws"
DEBU[0001]  Request method: "GET"
DEBU[0001]  Request headers:
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]    "Authorization": "*****"
DEBU[0001]  Response Status: "200 OK"
DEBU[0001]  Response headers:
DEBU[0001]    "Content-Type": "application/json; charset=utf-8"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Date": "Thu, 21 Jul 2022 17:24:01 GMT"
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/"
DEBU[0001]  Request method: "POST"
DEBU[0001]  Request headers:
DEBU[0001]    "Authorization": "*****"
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "202 Accepted"
DEBU[0001]  Response headers:
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Location": "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/1744e467-77b3-415e-
9a88-ac318d1fdfd7"
DEBU[0001]    "Date": "Thu, 21 Jul 2022 17:24:01 GMT"
DEBU[0001]    "Range": "bytes=0-10485760"
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/1744e467-77b3-415e-9
a88-ac318d1fdfd7?digest=sha256%3Aa39831967c0c168144c24e4a0d9659dfd275b700fdf29fe5ea7ac595c0c8156c"
DEBU[0001]  Request method: "PUT"
DEBU[0001]  Request headers:
DEBU[0001]    "Content-Type": "application/octet-stream"
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "401 Unauthorized"
DEBU[0001]  Response headers:
DEBU[0001]    "Content-Type": "application/json; charset=utf-8"
DEBU[0001]    "Content-Length": "58"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws
\""
DEBU[0001]    "Date": "Thu, 21 Jul 2022 17:24:01 GMT"
Error: PUT "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/1744e467-77b3-415e-9a88-ac318d1fdf
d7?digest=sha256%3Aa39831967c0c168144c24e4a0d9659dfd275b700fdf29fe5ea7ac595c0c8156c": request body is not rewindable
@qweeah
Copy link
Contributor

qweeah commented Jul 22, 2022

@jobcespedes Is this recurring or intermittent? Looks like blob a39831967c0c(all_state_image_artifact.tar.gz) got uploaded but got 401 when querying the status.

@jobcespedes
Copy link
Author

I got it consistently with a file, let's call it file A. Then I tried to push a smaller file B. The smaller one got pushed. I also tried a different file C, bigger than B, it through the error.

After that, I downgraded to Oras version 0.8.0, pushed file A and it worked without issues.

@qweeah
Copy link
Contributor

qweeah commented Jul 24, 2022

I got it consistently with a file, let's call it file A. Then I tried to push a smaller file B. The smaller one got pushed. I also tried a different file C, bigger than B, it through the error.

Just to confirm, with oras 0.13.0,

  • file A(10485760 bytes) cannot be uploaded
  • file B(<10485760 bytes) and file C(??? bytes) can be upload

With oras 0.8.0, ABC can all be uploaded

@jobcespedes
Copy link
Author

I mislead you with my suggestion bigger file size had something to do. Sorry. This are correct the upload results acording to file sizes in my case:

file A.tar.gz: 3122 -> consistent error
file B.tar.gz: 95148 -> ok
file C.tar.gz: 5586668 -> ok

However, with other oras version (it is actually v0.8.1) there are no errors with any of those three files.

@qweeah
Copy link
Contributor

qweeah commented Jul 25, 2022

I mislead you with my suggestion bigger file size had something to do. Sorry. This are correct the upload results acording to file sizes in my case:

file A.tar.gz: 3122 -> consistent error file B.tar.gz: 95148 -> ok file C.tar.gz: 5586668 -> ok

However, with other oras version (it is actually v0.8.1) there are no errors with any of those three files.

Can you kindly share the debugging logs for pushing A.tar.gz?

@qweeah
Copy link
Contributor

qweeah commented Jul 25, 2022

Also how did you provide the credential? Via running oras login in advance, or username/password flags for oras push?

@shizhMSFT
Copy link
Contributor

/cc @nima for helping investigation.

@jobcespedes
Copy link
Author

Also how did you provide the credential?

Via docker login (config.json)

Can you kindly share the debugging logs for pushing A.tar.gz?

Command oras push -v -d public.ecr.aws/e3i0l4d7/all_state_image_artifact:b9c7f4a9b868c47ab2106935aa1434aa3c99e7f0 /tmp/testA.tar.gz:

Preparing /tmp/testA.tar.gz
DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/manifests/sha256:0be5fae8c8cbfdce92f692f51656a125ee62a53f9504cc75ac233c495eaf1253"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "Accept": "application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, application/vnd.cncf.oras.artifact.manifest.v1+json"
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0000]  Response Status: "401 Unauthorized"
DEBU[0000]  Response headers:
DEBU[0000]    "Content-Type": "application/json; charset=utf-8"
DEBU[0000]    "Content-Length": "58"
DEBU[0000]    "Connection": "keep-alive"
DEBU[0000]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0000]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws\""
DEBU[0000]    "Date": "Tue, 26 Jul 2022 04:09:50 GMT"
DEBU[0000]  Request URL: "https://public.ecr.aws/token/?scope=aws&scope=repository%3Ae3i0l4d7%2Fall_state_image_artifact%3Apull&service=public.ecr.aws"
DEBU[0000]  Request method: "GET"
DEBU[0000]  Request headers:
DEBU[0000]    "Authorization": "*****"
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0000]  Response Status: "200 OK"
DEBU[0000]  Response headers:
DEBU[0000]    "Date": "Tue, 26 Jul 2022 04:09:50 GMT"
DEBU[0000]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0000]    "Content-Type": "application/json; charset=utf-8"
DEBU[0000]    "Connection": "keep-alive"
DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/manifests/sha256:0be5fae8c8cbfdce92f692f51656a125ee62a53f9504cc75ac233c495eaf1253"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "Accept": "application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, application/vnd.cncf.oras.artifact.manifest.v1+json"
DEBU[0000]    "Authorization": "*****"
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0000]  Response Status: "404 Not Found"
DEBU[0000]  Response headers:
DEBU[0000]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0000]    "Content-Type": "application/json; charset=utf-8"
DEBU[0000]    "Content-Length": "79"
DEBU[0000]    "Connection": "keep-alive"
DEBU[0000]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/sha256:39c608eccf630ae7d883f36bd3878b3bb52e6cb79e24947569b9a34ec1cbb8cf"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0000]  Response Status: "401 Unauthorized"
DEBU[0000]  Response headers:
DEBU[0000]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0000]    "Content-Type": "application/json; charset=utf-8"
DEBU[0000]    "Content-Length": "58"
DEBU[0000]    "Connection": "keep-alive"
DEBU[0000]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0000]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws\""
DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/sha256:39c608eccf630ae7d883f36bd3878b3bb52e6cb79e24947569b9a34ec1cbb8cf"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "Authorization": "*****"
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0000]  Response Status: "401 Unauthorized"
DEBU[0000]  Response headers:
DEBU[0000]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0000]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws\""
DEBU[0000]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0000]    "Content-Type": "application/json; charset=utf-8"
DEBU[0000]    "Content-Length": "58"
DEBU[0000]    "Connection": "keep-alive"
DEBU[0000]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
DEBU[0000]  Request method: "HEAD"
DEBU[0000]  Request headers:
DEBU[0000]    "Authorization": "*****"
DEBU[0000]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "404 Not Found"
DEBU[0001]  Response headers:
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
Uploading 39c608eccf63 /tmp/testA.tar.gz
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/"
DEBU[0001]  Request method: "POST"
DEBU[0001]  Request headers:
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "404 Not Found"
DEBU[0001]  Response headers:
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
Uploading 44136fa355b3 application/vnd.unknown.config.v1+json
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/"
DEBU[0001]  Request method: "POST"
DEBU[0001]  Request headers:
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "401 Unauthorized"
DEBU[0001]  Response headers:
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0001]    "Content-Type": "application/json; charset=utf-8"
DEBU[0001]    "Content-Length": "58"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws\""
DEBU[0001]  Request URL: "https://public.ecr.aws/token/?scope=aws&scope=repository%3Ae3i0l4d7%2Fall_state_image_artifact%3Apull%2Cpush&service=public.ecr.aws"
DEBU[0001]  Request method: "GET"
DEBU[0001]  Request headers:
DEBU[0001]    "Authorization": "*****"
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "200 OK"
DEBU[0001]  Response headers:
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0001]    "Content-Type": "application/json; charset=utf-8"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]  Response Status: "401 Unauthorized"
DEBU[0001]  Response headers:
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws\""
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0001]    "Content-Type": "application/json; charset=utf-8"
DEBU[0001]    "Content-Length": "58"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/"
DEBU[0001]  Request method: "POST"
DEBU[0001]  Request headers:
DEBU[0001]    "Authorization": "*****"
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/"
DEBU[0001]  Request method: "POST"
DEBU[0001]  Request headers:
DEBU[0001]    "Authorization": "*****"
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "202 Accepted"
DEBU[0001]  Response headers:
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Location": "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/0a5cb83a-5039-441b-bca4-df9ed55c5ef8"
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:51 GMT"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Range": "bytes=0-10485760"
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/0a5cb83a-5039-441b-bca4-df9ed55c5ef8?digest=sha256%3A39c608eccf630ae7d883f36bd3878b3bb52e6cb79e24947569b9a34ec1cbb8cf"
DEBU[0001]  Request method: "PUT"
DEBU[0001]  Request headers:
DEBU[0001]    "Content-Type": "application/octet-stream"
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "202 Accepted"
DEBU[0001]  Response headers:
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:52 GMT"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Location": "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/b8764924-1d05-4bbb-a9b6-a81089b766de"
DEBU[0001]    "Range": "bytes=0-10485760"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]  Request URL: "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/b8764924-1d05-4bbb-a9b6-a81089b766de?digest=sha256%3A44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
DEBU[0001]  Request method: "PUT"
DEBU[0001]  Request headers:
DEBU[0001]    "Content-Type": "application/octet-stream"
DEBU[0001]    "User-Agent": "oras/0.13.0"
DEBU[0001]  Response Status: "401 Unauthorized"
DEBU[0001]  Response headers:
DEBU[0001]    "Date": "Tue, 26 Jul 2022 04:09:52 GMT"
DEBU[0001]    "Content-Type": "application/json; charset=utf-8"
DEBU[0001]    "Content-Length": "58"
DEBU[0001]    "Connection": "keep-alive"
DEBU[0001]    "Docker-Distribution-Api-Version": "registry/2.0"
DEBU[0001]    "Www-Authenticate": "Bearer realm=\"https://public.ecr.aws/token/\",service=\"public.ecr.aws\",scope=\"aws\""
ERRO[0001] Error in getting response: %!w(*errors.errorString=&{context canceled})
Error: PUT "https://public.ecr.aws/v2/e3i0l4d7/all_state_image_artifact/blobs/uploads/0a5cb83a-5039-441b-bca4-df9ed55c5ef8?digest=sha256%3A39c608eccf630ae7d883f36bd3878b3bb52e6cb79e24947569b9a34ec1cbb8cf": request body is not rewindable                                                                               

@shizhMSFT shizhMSFT added the bug Something isn't working label Jul 26, 2022
@shizhMSFT shizhMSFT added this to the v0.14.0 milestone Jul 26, 2022
@qweeah
Copy link
Contributor

qweeah commented Jul 26, 2022

@jobcespedes Thanks for reporting this error. It was caused by the PUT failure during pushing an artifact.

As a registry client, ORAS should do the layer pushing in two step:

  1. Try to initiate an upload process via a POST request
  2. Do the blob upload via PUT or PATCHes

During PUT(step 2), ORAS fails to reuse the token obtained by POST(step 1) and ends in rewinding the request body.

Why it only fails for ECR:
An credential cache was introduced in oras-go v2. The cache was keyed by the scopes in the oauth challenge. An OCI-compliant format of the scope should be like repository:some-project/some-repo:pull,push. ECR returns aws and that unexpected key prevents PUT(step 2) from getting the token cached by POST(step 1).

We had a fix in oras-go and will apply the change to CLI. This issue will be fixed in upcoming ORAS release.

cc @nima

@shizhMSFT shizhMSFT linked a pull request Aug 2, 2022 that will close this issue
@FeynmanZhou
Copy link
Member

Hi @jobcespedes ,

Could you pls help to verify if this issue has been fixed? I think we can build the latest binary from the main branch.

@jobcespedes
Copy link
Author

Sure. Would you share the latest binary with me? Or, you want me to built it?

@qweeah
Copy link
Contributor

qweeah commented Aug 10, 2022

Sure. Would you share the latest binary with me? Or, you want me to built it?

@jobcespedes We haven't done a release yet. You can build via following https://oras.land/cli/5_developer_guide/

@jobcespedes
Copy link
Author

Confirm: no error

oras version

Version:        0.13.0+unreleased
Go version:     go1.18.5
Git commit:     d776a225d752f88fe36e919895ef420d2d94c44e
Git tree state: clean

@shizhMSFT
Copy link
Contributor

Closing as fix has been confirmed.

ewollesen pushed a commit to ewollesen/eks-anywhere-packages that referenced this issue Aug 24, 2022
This upgrades our oras cli to 0.14.0 which fixes a bug in the oras push
command. This is a second attempt, as we previously tried 0.13.0 (to get the
--password-stdin flag, but were blocked by the aforementioned push bug). The
0.14.0 release should include fixes that make this possible to use once again.

The push bug: oras-project/oras#456

The previous attempt: aws#398
ewollesen pushed a commit to ewollesen/eks-anywhere-packages that referenced this issue Aug 24, 2022
This upgrades our oras cli to 0.14.0 which fixes a bug in the oras push
command. This is a second attempt, as we previously tried 0.13.0 (to get the
--password-stdin flag, but were blocked by the aforementioned push bug). The
0.14.0 release should include fixes that make this possible to use once again.

The push bug: oras-project/oras#456

The previous attempt: aws#398
ewollesen pushed a commit to ewollesen/eks-anywhere-packages that referenced this issue Sep 7, 2022
This upgrades our oras cli to 0.14.1 which fixes bugs in the oras push
command. This is third attempt, as we previously tried 0.13.0 (to get the
--password-stdin flag, but were blocked by the aforementioned push bugs). Then
0.14.0 (which introduced a different push bug). The 0.14.1 release includes
fixes that make this possible to use once again.

The push bugs:
  - oras-project/oras#456
  - oras-project/oras-go#252

The previous attempt: aws#398
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants