-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Implement a retry on failing uploads / podman push #14048
Comments
@vrothberg PTAL. I know we've talked about this before but I can't recall what the result was. |
Podman has three retries by default (also for pushing). I need to take a closer look at the exact error and at the retry semantics but either the retries are not triggered by the code, or the connection is just to unstable. Podman will retry the entire push operation though. If the image is sufficiently big, or the connection sufficiently flaky, we may have a hard time. @mtrmac, did we ever consider lifting the retries to the granularity of blobs? |
This particular error looks like I think we wouldn’t retry on that in any case. Does it always fail this way? Per-blob retries were ~infeasible with the public c/image API. Now that we have |
@mtrmac I must admit it happens often. I always crashes the same way. I think the big question I have is if it is a bug or if you recommend me to create some retry outside of podman? |
At this point I think it’s a bug that should be fixed rather than hidden by retries … OTOH I appreciate that doesn’t get you to a working pull behavior immediately. |
@mtrmac Thanks for your insides. I case you need anything additional from my end let me know and just write here. Otherwise I just await your results. |
A friendly reminder that this issue had no activity for 30 days. |
Hi, please have a look. I have a similar thing now. My podman man is more or less the lastest stable docker container.
|
A friendly reminder that this issue had no activity for 30 days. |
I am going to close this issue, since there is a retry in Podman now. There are lots of discussions on improving this at containers/image. |
/kind feature
Description
I desire the ability to retry on network errors on push via cli parameter or some automatic handling.
Steps to reproduce the issue:
Have a internet connection wiht some package loss
podman push ...
Describe the results you received:
Getting image source signatures
Copying blob sha256:518a144c927e39441b520c6822058018e1ed7aa1c25f461dd226773399a7b580
Copying blob sha256:a4e267c20a44d1b461bff8bba4c5f9dc5878c9282586e1835c873490c27555c0
Copying blob sha256:53494403a146764387ecbbd1b0b99962d2414878c5a6ce6784aa95b631e07e16
Copying blob sha256:700a186f64039635bede8f29c3759e01d050dcaf11a67786a986836b266fb6ef
Copying blob sha256:9e6713d530bf59dd0ce8155e1a48372e2ad1773be06a8087deafeb5ad0fed586
Copying blob sha256:75bfbbe80458d9c3debe3469df4015a72d59c32002232f3efdf4f509f31bb09b
Copying blob sha256:2913c343f3819abe60586ded803cccfb1e0f776b7daec36092a73c36dae70a04
Copying blob sha256:acfababd775298c320d1d2cfa8333c7004ae7e8641346ad71015abaa5812ecf9
Copying blob sha256:54867274c4d15ca35da1c6b08f37c7b046fb569908aa9b84641a55c84f10f237
Copying blob sha256:48148327ed2cfbd80fb98ace50cceeccad2b26fed70ad5285e05f2655fe5bbcf
Error: writing blob: Patch "https://registry.gitlab.com/v2/xrow-public/repository/ibexa-experience/blobs/uploads/0ff84441-86eb-4e99-92c4-f43b507270df?_state=SFD3hLF07NgdrS-0gfZ3HUEcBqHa564iLIrHdOMu-Zx7Ik5hbWUiOiJ4cm93LXB1YmxpYy9yZXBvc2l0b3J5L2liZXhhLWV4cGVyaWVuY2UiLCJVVUlEIjoiMGZmODQ0NDEtODZlYi00ZTk5LTkyYzQtZjQzYjUwNzI3MGRmIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDIyLTA0LTI4VDA3OjMyOjEzLjc5NTg3MjM0N1oifQ%3D%3D": write tcp 10.88.106.240:33858->35.227.35.254:443: use of closed network connection
Describe the results you expected:
Ability to retry on network errors via parameter.
Additional information you deem important (e.g. issue happens only occasionally):
As said before. You need a problematic connection to the server. Maybe you can try to pull the network cable in and out to simulate.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
VirtualBox
The text was updated successfully, but these errors were encountered: