-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Feature Request: recover from partially pulled layer (network error, NOT out out of disk space) without restarting #14616
Comments
@mtrmac @vrothberg PTAL |
This specific RFE is, I think, basically local to There might be some interaction with To be explicit, this RFE is not “retry a layer pull individually, don’t abort the copy and retry on c/common/pkg/retry to do the copy all from scratch again”. |
Another situation in which current state of things caused annoyance: process interrupted by lack of disk space. Had to download a 12GB image; after all the blobs were downloaded, the process was interrupted during unpacking due to missing space on device. Blobs were discarded, had to download them all again. Unsure if this is related to what OP said: indeed it's part of the same "continue where you left off" user experience.
|
@akiross That’s not this specific RFE. (Also, it’s not something I’d expect now that we commit layers immediately, but please report it separately.) |
A friendly reminder that this issue had no activity for 30 days. |
So, what happened for me is:
It looks like some timeout (can i increase it somewhere?) and it retries, but seems to start over... |
@alien999999999, your other comment indicated that you're using Podman v3.0. I suggest updating to a more recent version of Podman and to increase /tmp or move it to a bigger partition. |
I'm going to look at that, but i think it's part of that distribution, not sure i can easily upgrade. In any case upgrading /tmp is not gonna work, it just endlessly timeouts and retries... do you know if there is a timeout session i can just double? or download this blob manually so it gets picked up or something? i noticed an ostree option... |
Yeah, it's on the distro, but upgrading this is difficult, what else would i have to upgrade? |
A timeout/retry won't help when there's not enough space on the device. All improvements for this issue are shipped with later versions of Podman. |
the /tmp is 8GB, the file is 3GB, it's only after 4 times 1.7GB that it crosses the out of disk space... |
according to https://stackoverflow.com/questions/16895294/how-to-set-timeout-for-http-get-requests-in-golang ; http.Client has a Timeout field? could you expose this to the pull_options ? |
if i manually download this blob with curl commands; how can i put this into an ostree? is there any documentation on that? |
@alien999999999 Like #14616 (comment) , running out of space is not what we are trying to track in this RFE. Please file a fresh issue and discuss there. |
So, yes, tha'ts exactly it, this is NOT about the "out of disk space"... that is NOT my problem. my problem is it restarts after a timeout at 1.7GB (before the 3GB blob is done), and does so in endless loop, the out of disk space just happens as a result of the contant retrying, (I could add Terabytes and eventually it would also fill out); I was hoping there was a tunable timeout, so i could double that and the 3GB would be transferred and I could continue |
@mtrmac Reminder. |
any chance this will be supported soon? |
containers/image#1816 exists for quite some time now, and I think that’s the extent of what makes sense to do. A strict reading of the RFE is that if |
@mtrmac Is it possible to add an option for the recoverable pull, where user take care about the the partial file |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
When pulling an image large layer (>1GB) through registry and pull fails in between because of network issue or user cancel it then
this layer is repulled from scratch instead resuming from partially pulled layer.
It would be good to have the partial layer saved, and when the pull is attempted again for the download to resume from where it left off.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:This is kind of similar issue as #7497
The text was updated successfully, but these errors were encountered: