[Bug 545242] New: zypper fails to use partially downloaded package when retrying download
http://bugzilla.novell.com/show_bug.cgi?id=545242 Summary: zypper fails to use partially downloaded package when retrying download Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: dave.plater@yahoo.co.uk QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-1.4 Firefox/3.0.6, Ant.com Toolbar 1.3 I have just performed a three day zypper dup to factory on a trial dsl line. This has brought to light the failure of zypper to use the partially downloaded package and restart the download from where the connection dropped. I eventually used aria2c to download kernel-desktop direct to the package cache and installed on another console using rpm. I was lucky that the internet connection was better for openoffice. I am attaching three days of logs from aria2c and zypper. I'm also opening a bug for the download in advance feature and I will reference this bug for the logs Reproducible: Always Steps to Reproduce: 1.zypper dup on a poor internet connection 2.Connection drops when downloading a large package 3.When libzypp retries the download it discards the partially downloaded package and starts from the beginning Actual Results: zypper dup takes three days Expected Results: libzypp retries and resumes partial download -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=545242 User dave.plater@yahoo.co.uk added comment http://bugzilla.novell.com/show_bug.cgi?id=545242#c1 --- Comment #1 from Dave Plater <dave.plater@yahoo.co.uk> 2009-10-08 02:03:01 MDT --- Created an attachment (id=321590) --> (http://bugzilla.novell.com/attachment.cgi?id=321590) zypper logs -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=545242 User dave.plater@yahoo.co.uk added comment http://bugzilla.novell.com/show_bug.cgi?id=545242#c2 --- Comment #2 from Dave Plater <dave.plater@yahoo.co.uk> 2009-10-08 02:20:54 MDT --- Created an attachment (id=321592) --> (http://bugzilla.novell.com/attachment.cgi?id=321592) aria2c logs -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=545242 User ma@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=545242#c3 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ma@novell.com Resolution| |FEATURE Status Whiteboard| |openFATE#120326 --- Comment #3 from Michael Andres <ma@novell.com> 2009-10-08 04:48:25 MDT --- This is feature request is tracked at https://features.opensuse.org/120326 "Resume download". -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=545242 User dave.plater@yahoo.co.uk added comment http://bugzilla.novell.com/show_bug.cgi?id=545242#c4 --- Comment #4 from Dave Plater <dave.plater@yahoo.co.uk> 2009-10-08 05:24:32 MDT --- In my case it was more like a bug because it caused my dup to fail several times. The feature request has been around for so long I had forgotten about it, it first appeared around the time aria2c was first implemented. I don't understand why aria2c's resume feature is overridden by libzypp, surely it can't be difficult to allow aria2c to use its resume feature. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=545242 User jkupec@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=545242#c5 --- Comment #5 from Ján Kupec <jkupec@novell.com> 2009-10-08 06:13:05 MDT --- Dave, you're welcome to send us a patch, you'll start to understand while doing it :O) But here's one possible explanation: libzypp does not override aria's resume, but it downloads files to a random temporary directory. After an error the directory gets probably removed and for new download a new one is used. Only after successful download the (.rpm) file is moved into the persistent cache. This must be changed in order to make use of aria's resume feature. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=545242 User dave.plater@yahoo.co.uk added comment http://bugzilla.novell.com/show_bug.cgi?id=545242#c6 --- Comment #6 from Dave Plater <dave.plater@yahoo.co.uk> 2009-10-08 09:25:03 MDT --- I remember observing that behavior way back before you could keep downloaded packages, in attempt to keep downloaded packages, I think it's /var/adm/something. Is there any reason that the temp download directory can't be changed to the package cache. Point me to the routine that performs the operation and I'm willing to try to change it. Most of my past programming experience is with assembly languages and Windows but the best way to learn is to hack somebody else's program. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com