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

Aptly support for resume downloads like wget #1289

Closed
sgtcoder opened this issue May 10, 2024 · 6 comments · May be fixed by #1296
Closed

Aptly support for resume downloads like wget #1289

sgtcoder opened this issue May 10, 2024 · 6 comments · May be fixed by #1296

Comments

@sgtcoder
Copy link

aptly mirror update Max Retries should support resume download like wget has. This would allow a download from Spotify to complete successfully
image

Detailed Description

Spotify repo can only be downloaded with multiple retries with resume support. It would be nice for aptly to support resume support.

Context

We can then download repos like Spotify where the connection keeps terminating

Others can then download updates to Spotify and other apps

Possible Implementation

Depending on what you use to download the deb files, it would be nice to enable resume support like wget has by default.

Your Environment

OS: Debian 12
Kernel: 6.6.28-x64v3-xanmod2
aptly version: 1.5.0+ds1-1+b4

@neolynx
Copy link
Member

neolynx commented Jun 4, 2024

what downloader did you use ? there is the default and grab. The latter is supposed to continue download in a wget -c fashion.

could you try to configure the downloader to grab in either the config or in as argument in the mirror update command ?

@sgtcoder
Copy link
Author

sgtcoder commented Jun 4, 2024

I used whatever the default was. Spotify likes to disconnect every couple seconds so it needs to reconnect and resume.

I am using this command

aptly mirror update -keyring trustedkeys.gpg ${repo_name}

@neolynx
Copy link
Member

neolynx commented Jun 5, 2024

Could you try using the grab downloader ?

aptly mirror update -downloader grab -keyring trustedkeys.gpg ${repo_name}

You could also add the -max-tries=10 option.

@sgtcoder
Copy link
Author

sgtcoder commented Jun 5, 2024

Thank you, this actually worked along with max-tries=10 for spotify. I set max-tries just for spotify. It seemed to work and not corrupt.

@neolynx
Copy link
Member

neolynx commented Jun 5, 2024

happy to hear that !

may I close this issue ?

@sgtcoder
Copy link
Author

sgtcoder commented Jun 5, 2024

Yes, maybe add this to the documentation. Normally it's not a problem, but Spotify repo is messed up and needs the grab with max-tries

@sgtcoder sgtcoder closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@neolynx @sgtcoder and others