Zypper interrupted preload always redownload from start

Hi, when zypper is interrupted in preload phase, it’s always start from 0 bytes. No matter if it’s intentional like pressing ctrl+c or even the network itself like connection closed. I’m using vpn for personal reason. Network interruption, usually happen when using non-opensuse repo, like nvidia or vscodium rpm repo. Any workaround? If i need to manually download rpm files everytime im using external repo, it’s okay, but it’s such a hassle.

@rizkiv1 Hi and welcome to the Forum :smile:
If it’s not caching them, use the --download in-advance option.

1 Like

The packages are cached. This can be verified by having a look into the zypper cache directories. The wording of the zypper output suggests, that it redownloads already cached packages, but it doesn’t.

1 Like

Seems same as usual.
First unintended network interrupt, without --download in-advance.

Preloading: vscodium-1.105.06808-x86_64.rpm [HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)]
Preload finished. [files missing (141.4 KiB/s) ] ..............................[done]
Installation has completed with error.

And to reproduce --download in-advance parameter with intended connection reset (because my vpn software sometimes need to reset the connection if i need to change the server.)

Preloading: vscodium-1.105.06808-x86_64.rpm [OpenSSL SSL_read: OpenSSL/3.5.3: error:0A000126:SSL routines::unexpected eof while reading, errno 0]
Preload finished. [files missing (878.9 KiB/s) ] ...............................[done]
Installation has completed with error.

Yes seems my wording wrong. It is redownload the whole package/rpm which are interrupted. Because nvidia driver download 3 iirc package from their repo, and the network not quite stable to their repo, it’s those 3 which also not cached in my computer. It’s not problematic for other which are finished and cached.

running ls -la /var/cache/zypp/packages/gitlab.com_paulcarroty_vscodium_repo/.preload/ after error above, seems no contain anything, even parent dir.

Does zypper allow resume partial downloaded packages?

No, libzypp removes partial downloads before starting new ones. You will need to submit feature request and provide convincing arguments why it is needed.