[Bug 570917] New: libzypp cannot parse aria2c output when network connection is lost
http://bugzilla.novell.com/show_bug.cgi?id=570917 http://bugzilla.novell.com/show_bug.cgi?id=570917#c0 Summary: libzypp cannot parse aria2c output when network connection is lost Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: jkupec@novell.com ReportedBy: lslezak@novell.com QAContact: qa@suse.de CC: dmacvicar@novell.com Found By: --- Blocker: --- I have pulled out the network cable from my computer during repository refresh. Libzypp then reports this error in a loop: 2010-01-15 09:12:33 <1> muffin(29723) [zypp++] ExternalProgram.cc(start_program):221 Executing 'aria2c' '--user-agent=ZYpp 6.28.0 (aria2 version 1.7.2) openSUSE-11.3-x86_64' '--summary-interval=1' '--follow-metalink=mem' '--check-integrity=true' '--file-allocation=none' '--server-stat-of=/var/cache/zypp/aria2.stats' '--server-stat-if=/var/cache/zypp/aria2.stats' '--uri-selector=adaptive' '--use-head=false' '--max-tries=5' '--max-concurrent-downloads=2' '--header=X-ZYpp-AnonymousId: 2f449c74-b82c-4b36-82ec-36d7c9db2d14' '--header=X-ZYpp-DistributionFlavor: ftp' '--header=Pragma:' '--connect-timeout=180' '--dir=/var/adm/mount/AP_0x00000007' 'http://download.opensuse.org/factory/repo/non-oss/gpg-pubkey-9c800aca-481f34...' 2010-01-15 09:12:33 <1> muffin(29723) [zypp++] ExternalProgram.cc(start_program):373 pid 29865 launched 2010-01-15 09:12:35 <3> muffin(29723) [zypp] MediaAria2c.cc(getFileCopy):389 Can't parse progress from '[#1 SIZE:0B/0B CN:1 SPD:0Bs]' 2010-01-15 09:12:37 <3> muffin(29723) [zypp] MediaAria2c.cc(getFileCopy):389 Can't parse progress from '[#1 SIZE:0B/0B CN:1 SPD:0Bs]' 2010-01-15 09:12:38 <3> muffin(29723) [zypp] MediaAria2c.cc(getFileCopy):389 Can't parse progress from '[#1 SIZE:0B/0B CN:1 SPD:0Bs]' (and continues...) # rpm -q libzypp aria2 libzypp-6.28.0-2.1.x86_64 aria2-1.7.2-1.2.x86_64 -- 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=570917 http://bugzilla.novell.com/show_bug.cgi?id=570917#c1 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium CC| |ma@novell.com, | |tatsuhiro.t@gmail.com Severity|Major |Minor --- Comment #1 from Ján Kupec <jkupec@novell.com> 2010-01-15 12:45:35 UTC --- Fortunately, the log does not grow too fast this time :O) just one record per second (so this is not a major bug). This is another example why a machine-friendly output or an API would be useful in aria2c. The most straightforward way to fix this is to move these 'cant parse' messages to the excessive XXX log, even though that will make debugging any future parsing problems more difficult. Another way could be to find a good regex for the progress line and use that to parse it and log the error only if the line does not match the regex. The percentage part of the line would be optional in the regex. -- 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=570917 http://bugzilla.novell.com/show_bug.cgi?id=570917#c2 --- Comment #2 from Ján Kupec <jkupec@novell.com> 2010-01-15 17:18:35 UTC --- Created an attachment (id=336867) --> (http://bugzilla.novell.com/attachment.cgi?id=336867) proposed patch I changed the parsing to use the following ERE: ^\[#[0-9]+ SIZE:[0-9\.]+(|Ki|Mi|Ti)B/[0-9\.]+(|Ki|Mi|Ti)B\(?([0-9]+)?%?\)? CN:[0-9]+ SPD:([0-9\.]+)(|Ki|Mi|Ti)Bs.*\]$ Fixes this bug and should be more robust now. -- 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=570917 http://bugzilla.novell.com/show_bug.cgi?id=570917#c3 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Ján Kupec <jkupec@novell.com> 2010-01-15 17:21:21 UTC --- Fixed in git, will be in libzypp 6.28.1. -- 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=570917 http://bugzilla.novell.com/show_bug.cgi?id=570917#c4 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.2:32913 --- Comment #4 from Swamp Workflow Management <swamp@suse.com> 2010-05-06 15:05:38 UTC --- Update released for: PackageKit, PackageKit-debuginfo, PackageKit-debugsource, PackageKit-devel, PackageKit-doc, PackageKit-lang, libpackagekit-glib12, libpackagekit-glib12-debuginfo, libpackagekit-glib12-devel, libpackagekit-qt12, libpackagekit-qt12-debuginfo, libpackagekit-qt12-devel, libsatsolver, libsatsolver-debugsource, libsatsolver-demo, libsatsolver-demo-debuginfo, libsatsolver-devel, libsatsolver-devel-debuginfo, libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, perl-satsolver-debuginfo, perl-zypp, python-satsolver, python-satsolver-debuginfo, python-zypp, ruby-satsolver, ruby-satsolver-debuginfo, ruby-zypp, ruck, satsolver-tools, satsolver-tools-debuginfo, yast2-ncurses, yast2-ncurses-debuginfo, yast2-ncurses-debugsource, yast2-ncurses-devel, yast2-ncurses-pkg, yast2-ncurses-pkg-debuginfo, yast2-ncurses-pkg-debugsource, yast2-qt-pkg, yast2-qt-pkg-debuginfo, yast2-qt-pkg-debugsource, zypp-testsuite-tools, zypper, zypper-debuginfo, zypper-debugsource Products: openSUSE 11.2 (debug, i586, x86_64) -- 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