-
Notifications
You must be signed in to change notification settings - Fork 1.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
docker push retry loop #584
Comments
I just ran into this on our integration tests for skaffold - it would be very good if we could retry temporary errors in Kaniko, Docker also retries pushes:
|
Retry is already in google/go-containerregistry#459 but kaniko needs to upgrade this dependency. |
Did extra checking and I think the issue is that just tryUpload part but not checkExistingBlob part in
|
+1 Very much desired functionality |
I have Kaniko jobs that run in parallel on my CI system. If the system is busy, I see these errors:
This appears to be some problem on my registry side, but it only happens in high traffic. It would be great to have a retry, since the build succeed, but the push temporarily failed. |
+1 Continue waiting for this functionality. |
+1 Very much desired functionality |
👍 |
in my experience p3 is the "edge feature" / "nice to have" category. i would kindly request bumping it to p2. Since the continued annoyance of devs and ops using this project seems not to be enough: please think of the excess co2 produced by the unnecessary recompilations of already successfully compiled steps. (yes, the 'think of the trees!' argument) |
There seems to be a commit google/go-containerregistry@3b7741e from Jan 7. Could this solve our issue for good? Addendum: this commit is part of |
+1 Very much desired functionality |
Users of registries with a HA loadbalancing in front need this fix urgently @priyawadhwa @tejal29 @dlorenc Thanks in advance. |
yay, 2 years later :) |
Setting the value to `3` initially, which we can adjust as needed. This feature was introduced relatively recently, the following PR GoogleContainerTools/kaniko#1578 Reason for feature: > We are facing intermittent issues to push the image to the destination. Cause is as far as I can tell network flakeness. There is a long-standing issue asking for retries for the push operation, so I investigated this. I recently noticed this error that happened to coincide with 5 dependency MRs from Renovate all coming in at once. This user references similar experiences with Kaniko/Gitlab: GoogleContainerTools/kaniko#584 (comment) The hope here using the `--push-retry` option is that it will try to push a few more times and avoid the need for us to manually retry the `build` job to get it to pass.
Actual behavior
first of: this is feature request rather than a bug report
i am running a private cluster and sometimes run into the occasion, that the push to the (on-cloud) registry receives a 504.
I am aware, that this is an issue with the cluster itself, but this doesn't make the feature request any less valid:
please wrap the actual docker push command into i retry loop.
additional thoughts on that:
--retries=0
as default to --retries=10 or more)Expected behavior
avoid starting kaniko all over again and computing everything all over again.
have it retry the push only
To Reproduce
Steps to reproduce the behavior:
i would assume it should be possible to shutdown the target repository for the first few retries to test/implement that
Additional Information
irrelevant, i suppose
best regards and thanks for this marvelous project!
The text was updated successfully, but these errors were encountered: