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

Regression from aptly_1.0.1 -> aptly_1.1.0 with aptly mirror update #641

Closed
pmorch opened this issue Sep 19, 2017 · 3 comments
Closed

Regression from aptly_1.0.1 -> aptly_1.1.0 with aptly mirror update #641

pmorch opened this issue Sep 19, 2017 · 3 comments
Labels

Comments

@pmorch
Copy link

pmorch commented Sep 19, 2017

Detailed Description

With aptly 1.0.1 if I do

aptly mirror update foobar

and it fails before finishing, then if I retry, it (re)uses the packages that it has already downloaded and only tries to download remaining packages.

With 1.1.0 (and 1.1.1), if an aptly mirror update fails, then retrying downloads everything again from scratch.

Context

That is really annoying (also for mirrors?), because mirroring debian jessie for just i386 and amd64 is 120GB+ and if that fails (seen in real life but also tested with CTRL-C) after having downloaded 100GB, then it needs to download 120GB all over over again, instead of just the remaining 20GB. After 4 failed attempts at downloading 120GB, I have seen a ~/.aptly taking up 400GB disk space. (aptly db cleanup does fix this though).

I've tried to read releases info but there was no mention of this behaviour. So I'd like to ask: Is this a feature or a bug?

If its a feature, I'd like to understand why, because it seems like a waste of bandwidth, time and disk space. I didn't get any answer for 19 days to my post in the google group, so I'm writing up this issue here.

Your Environment

Occurs in 1.1.0 and 1.1.1 on debian jessie

@smira
Copy link
Contributor

smira commented Sep 21, 2017

Copying from mailing list:


Yes, if you cancel it on your own (but not if download fails for some files), aptly won't be able to keep already downloaded files.

This is great question, it was compromise between allowing other commands while download is going and allowing retries.

One good thing would be to save progress on ^C. Certainly something for me to consider for the next release.

Thanks for reporting that!

@smira smira closed this as completed Sep 21, 2017
@smira smira reopened this Sep 21, 2017
@smira
Copy link
Contributor

smira commented Sep 25, 2017

Should be fixed with #545

@smira
Copy link
Contributor

smira commented Nov 30, 2017

Should be available now in nightly build aptly_1.1.1+75+g9cb2a30

@smira smira closed this as completed Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants