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

buildah push is not retrying? #5855

Open
cmorve-te opened this issue Dec 4, 2024 · 2 comments
Open

buildah push is not retrying? #5855

cmorve-te opened this issue Dec 4, 2024 · 2 comments

Comments

@cmorve-te
Copy link

The docs say

**--retry** *attempts*

Number of times to retry in case of failure when performing push of images to registry.

Defaults to `3`.

So I was expecting up to 3 retries if there is any problem pushing the image. But I'm getting

$ buildah push <image>
Getting image source signatures
Copying blob sha256:<hash>
Copying blob sha256:<hash>
Error: pushing image "<image>" to "docker://<image>": writing blob: Patch "https://<...>/blobs/uploads/<hash>": write tcp <ip>:<port>-><ip>:443: use of closed network connection

error messages with buildah 1.38.0, which don't seem to indicate any retry?

I don't know go, but FWIW in https://github.com/containers/buildah/blob/v1.38.0/push.go#L120 I see RetryDelay but no MaxRetries.

@cmorve-te
Copy link
Author

Sometimes it actually does retry

$ buildah push <image>
time="2024-12-04T13:58:53Z" level=warning msg="Failed, retrying in 1s ... (1/3). Error: trying to reuse blob sha256:<hash> at destination: pinging container registry <hostname>: Get \"[<url>\](<url>/)": EOF"

Copy link

github-actions bot commented Jan 4, 2025

A friendly reminder that this issue had no activity for 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant