Mailinglist Archive: opensuse-bugs (10103 mails)

< Previous Next >
[Bug 555803] New: zypper package download hangs forever (waiting for aria2c)
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 16 Nov 2009 12:18:34 +0000
  • Message-id: <bug-555803-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=555803


Summary: zypper package download hangs forever (waiting for
aria2c)
Classification: openSUSE
Product: openSUSE 11.2
Version: Final
Platform: 32bit
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libzypp
AssignedTo: zypp-maintainers@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: poeml@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


--- Comment #0 from Peter Poeml <poeml@xxxxxxxxxxx> 2009-11-16 12:18:32 UTC ---
Hi,

I started 'zypper -v up' on a Factory system (last updated shortly before 11.2
release).

[I don't find the component/product Factory in Bugzilla, hence the report for
11.2. But the software might not match exactly 11.2.)

# rpm -q aria2 zypper libzypp
aria2-1.5.2-1.3.i586
zypper-1.2.5-1.2.i586
libzypp-6.18.0-1.2.i586


The zypper update eventually hangs when downloading one package. Here's
debugging info.


root@linux-7q6o:~ # cat /dev/vcs1 | fmt -w 96 | tail -2
Retrieving package opensuse-manuals_en-11.2-5.2.noarch (5/667), 20.6 MiB (30.7
MiB unpacked)
Retrieving: opensuse-manuals_en-11.2-5.2.noarch.rpm [80% (192.0 KiB/s)]




root 2680 0.0 0.3 5176 2000 ? Ss 00:13 0:00 login -- root
root 2793 0.0 0.4 5484 2344 tty1 Ss 00:14 0:00 \_ -zsh
root 2814 0.0 0.4 4484 2296 tty1 S 00:14 0:00 \_ zsh
root 2819 0.3 7.7 49128 39396 tty1 S+ 00:14 0:08 \_
zypper -v up
root 9716 0.2 0.8 8404 4184 tty1 S+ 00:17 0:06
\_ aria2c --user-agent=ZYpp 6.18.0 (aria2 version 1.5.2) openSUSE-11.2-i586
--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: da93627e-e5ca-42ba-8ebc-122fe15c9a8d
--header=X-ZYpp-DistributionFlavor: ftp --header=Pragma: --connect-timeout=180
--dir=/var/adm/mount/AP_0x00000003/suse/noarch
http://download.opensuse.org/factory/repo/oss/suse/noarch/opensuse-manuals_en-11.2-5.2.noarch.rpm

root@linux-7q6o:~ # tail /var/log/aria2.log
2009-11-15 00:17:20.772930 DEBUG - CUID#10 - socket: read:1, write:0, hup:0,
err:0
2009-11-15 00:17:20.780089 DEBUG - CUID#10 - socket: read:1, write:0, hup:0,
err:0
2009-11-15 00:17:20.795122 DEBUG - CUID#10 - socket: read:1, write:0, hup:0,
err:0
2009-11-15 00:17:20.833372 DEBUG - CUID#10 - socket: read:1, write:0, hup:0,
err:0
2009-11-15 00:17:20.844119 DEBUG - CUID#10 - socket: read:1, write:0, hup:0,
err:0
2009-11-15 00:17:20.850661 DEBUG - CUID#10 - socket: read:1, write:0, hup:0,
err:0
2009-11-15 00:17:20.850825 INFO - CUID#10 - The download for one segment
completed successfully.
2009-11-15 00:17:20.850872 DEBUG - Hash is available! index=29
2009-11-15 00:17:20.850998 INFO - Good chunk checksum.
hash=50e4e715bbeefbbe73f484b9744ef82ba943f3ea
2009-11-15 00:17:20.851053 INFO - The download was complete.

root@linux-7q6o:~ # lsof -p 9716
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
aria2c 9716 root cwd DIR 8,2 4096 113121 /root
aria2c 9716 root rtd DIR 8,2 4096 2 /
aria2c 9716 root txt REG 8,2 2620264 17518 /usr/bin/aria2c
aria2c 9716 root DEL REG 8,2 444624 /var/run/nscd/dblOHSt1
aria2c 9716 root mem REG 8,2 256316 41319
/usr/lib/locale/en_US.utf8/LC_CTYPE
aria2c 9716 root mem REG 8,2 14016 258605 /lib/libdl-2.10.1.so
aria2c 9716 root mem REG 8,2 1430104 258573 /lib/libc-2.10.1.so
aria2c 9716 root mem REG 8,2 124540 258848 /lib/libgcc_s.so.1
aria2c 9716 root mem REG 8,2 165924 258626 /lib/libm-2.10.1.so
aria2c 9716 root mem REG 8,2 966984 457527
/usr/lib/libstdc++.so.6.0.12
aria2c 9716 root mem REG 8,2 75416 258726 /lib/libz.so.1.2.3
aria2c 9716 root mem REG 8,2 157180 258974 /lib/libexpat.so.1.5.2
aria2c 9716 root mem REG 8,2 1495732 457241
/usr/lib/libcrypto.so.0.9.8
aria2c 9716 root mem REG 8,2 303232 457593 /usr/lib/libssl.so.0.9.8
aria2c 9716 root mem REG 8,2 26048 24738
/usr/lib/gconv/gconv-modules.cache
aria2c 9716 root mem REG 8,2 125684 258567 /lib/ld-2.10.1.so
aria2c 9716 root 0r FIFO 0,8 0t0 24895 pipe
aria2c 9716 root 1w FIFO 0,8 0t0 24896 pipe
aria2c 9716 root 2w FIFO 0,8 0t0 24896 pipe
aria2c 9716 root 3w CHR 1,3 0t0 2276 /dev/null
aria2c 9716 root 4w REG 8,2 242220104 445232 /var/log/aria2.log
aria2c 9716 root 5u 0000 0,9 0 357 anon_inode
aria2c 9716 root 6u IPv4 24901 0t0 TCP
linux-7q6o.localdomain:58075->pontifex.opensuse.org:http (CLOSE_WAIT)
aria2c 9716 root 7u 0000 0,9 0 357 anon_inode
aria2c 9716 root 8u REG 8,2 21563559 145660
/var/adm/mount/AP_0x00000003/suse/noarch/opensuse-manuals_en-11.2-5.2.noarch.rpm
aria2c 9716 root 15u IPv4 24986 0t0 TCP
linux-7q6o.localdomain:55526->mirror.leaseweb.net:http (CLOSE_WAIT)
aria2c 9716 root 16u 0000 0,9 0 357 anon_inode

root@linux-7q6o:~ # strace -f -p 9716
Process 9716 attached - interrupt to quit
epoll_wait(5, {}, 1024, 1000) = 0
time(NULL) = 1258241244
time(NULL) = 1258241244
time(NULL) = 1258241244
time(NULL) = 1258241244
gettimeofday({1258241244, 386798}, NULL) = 0
epoll_wait(5, {}, 1024, 1000) = 0
time(NULL) = 1258241245
time(NULL) = 1258241245
time(NULL) = 1258241245
time(NULL) = 1258241245
gettimeofday({1258241245, 412522}, NULL) = 0
epoll_wait(5, {}, 1024, 1000) = 0
time(NULL) = 1258241246
time(NULL) = 1258241246
time(NULL) = 1258241246
time(NULL) = 1258241246
gettimeofday({1258241246, 440871}, NULL) = 0
epoll_wait(5, {}, 1024, 1000) = 0
time(NULL) = 1258241247
time(NULL) = 1258241247
time(NULL) = 1258241247
time(NULL) = 1258241247
gettimeofday({1258241247, 484179}, NULL) = 0
epoll_wait(5, ^C <unfinished ...>
Process 9716 detached



Two peculiarities here. aria2c keeps epoll'ing on fd 5, which is listed as
anon_inode by the system(?). Second, while aria2c logged "The download was
complete", the last output of zypper was "80%", and aria2c still runs...


--
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.

< Previous Next >