Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11392 - Portage won't resume stopped download
Summary: Portage won't resume stopped download
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 11428 11542 12489 12730 13642 14932 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-30 08:29 UTC by Philippe Fremy
Modified: 2011-10-30 22:21 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Fremy 2002-11-30 08:29:25 UTC
If I start an emerge, then stop it with a C-C, half of my package has alrady
been downloaded.

When I restart portage, I would expect it to resume the download. Instead of
that, if complains that there is an existing file with a wrong checksum. I am
using the standard wget as my downloader. I really wonder what the resumecommand
is for in make.globals. I could not find a way to resume my download.

When downloading, Konqueror creates a file.tar.gz.part and only move the file to
file.tar.gz when it is actually downloaded. It allows to know that the download
was stop in the middle. Maybe you could use something like that.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2002-11-30 19:46:17 UTC
emerge info
please.
Comment 2 Philippe Fremy 2002-11-30 23:51:15 UTC
Sorry, I forgot it. Here you are: 
 
werewindle /usr/portage/media-sound/alsa-utils # emerge info 
Portage 2.0.44 (default-x86-1.4, gcc-3.2, glibc-2.2.5-r7) 
================================================================= 
System uname: 2.4.19-gentoo-r9 i686 Pentium III (Coppermine) 
USE="x86 3dnow apm avi crypt cups gif jpeg libg++ mikmod mmx mpeg ncurses nls 
pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm 
berkdb slang readline arts tetex svga tcltk guile X sdl tcpd pam libwww ssl 
perl python imlib oggvorbis gtk qt kde motif bonobo dvd encode -esd evo flash 
ggz gpm -gnome gphoto2 java libgda mozilla nas opengl oss" 
ARCH="x86" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" 
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config 
/usr/kde/2/share/config /usr/kde/3/share/config 
/usr/kde/3/share/config:/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
MAKEOPTS="-j3" 
JDK_HOME="/opt/blackdown-jdk-1.3.1" 
JAVA_HOME="/opt/blackdown-jdk-1.3.1" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
 
 
Comment 3 SpanKY gentoo-dev 2002-12-01 10:56:40 UTC
*** Bug 11428 has been marked as a duplicate of this bug. ***
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2002-12-11 16:14:00 UTC
*** Bug 11542 has been marked as a duplicate of this bug. ***
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-20 14:05:53 UTC
*** Bug 12489 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2002-12-26 08:07:34 UTC
*** Bug 12730 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2003-01-10 10:29:22 UTC
*** Bug 13642 has been marked as a duplicate of this bug. ***
Comment 8 m.martucci 2003-01-10 17:18:24 UTC
Sorry, didn't find this bug before. This is what I wrote in #13642:

Here's what happens:
1. portage attempts download from a gentoo mirror.
2. gentoo mirror returns a 404 not found (for http)
3. portage attempts download with alternate site
4. portage dlds from alternate site.
5. dld gets interrupted for whatever reason (eg, modem disconnect/ctrl-C).
6. emerge manually restarted
7. portage requests partial content from gentoo mirror (the one that 404'd)
8. gentoo mirror returns 416 requested range not satisfiable
9. wget/portage thinks file must already be downloaded, so proceeds with md5sum
checks.
10. md5sum fails because file only partially dlded, and portage user must
manually delete file & hope to get it all in one chunk OR disable the gentoo
mirrors in env vars or make.conf.
Comment 9 m.martucci 2003-01-10 17:23:23 UTC
A temporary fix for this problem is to type this for emerging the problematic
package:

#> GENTOO_MIRRORS="" emerge <package>...

This causes the gentoo mirrors not to be tried when downloading the file.
Comment 10 SpanKY gentoo-dev 2003-02-01 22:01:54 UTC
*** Bug 14932 has been marked as a duplicate of this bug. ***
Comment 11 Nicholas Jones (RETIRED) gentoo-dev 2003-02-03 07:03:29 UTC
Hopefully I've got this properly fixed in 2.0.46-r10
Comment 12 FieldySnuts 2003-02-03 09:57:10 UTC
Okay. Is -r10 a work in progress, or has it just not made it to the tree yet?

Thanks :)
Comment 13 Chris Paulson-Ellis 2004-01-15 13:24:33 UTC
I'm still seeing this problem (my symtoms are best described by one of the duplicates - bug 11542 - but the package I'm merging is gentoo-sources!), and I'm running portage 2.0.49-r21.

*** This bug should be reopened ***

Problem shown again and emerge info output follows:

# rm /usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2 
# emerge gentoo-sources
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/gentoo-sources-2.4.22-r5 to /
>>> Downloading http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
--21:08:54--  http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving www.mirror.ac.uk... 212.219.56.162, 212.219.247.10, 212.219.247.11, ...
Connecting to www.mirror.ac.uk[212.219.56.162]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
21:08:54 ERROR 404: Not Found.

>>> Downloading http://ftp.easynet.nl/mirror/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
--21:08:54--  http://ftp.easynet.nl/mirror/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving ftp.easynet.nl... 195.86.128.57
Connecting to ftp.easynet.nl[195.86.128.57]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,766,950 [text/plain]

100%[================================================================================>] 3,766,950     57.61K/s    ETA 00:00

21:09:59 (57.15 KB/s) - `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2' saved [3766950/3766950]

>>> Resuming download...
>>> Downloading http://gentoo.oregonstate.edu/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
--21:09:59--  http://gentoo.oregonstate.edu/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

>>> Resuming download...
>>> Downloading http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
--21:09:59--  http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving www.ibiblio.org... 152.2.210.81
Connecting to www.ibiblio.org[152.2.210.81]:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2 [following]
--21:09:59--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving distro.ibiblio.org... 152.2.210.109
Connecting to distro.ibiblio.org[152.2.210.109]:80... connected.
HTTP request sent, awaiting response... 404 Not Found

Continued download failed on this file, which conflicts with `-c'.
Refusing to truncate existing file `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'.

>>> Resuming download...
>>> Downloading http://dev.gentoo.org/~iggy/gentoo-sources-2.4.22-r5.patch.bz2
--21:10:04--  http://dev.gentoo.org/%7Eiggy/gentoo-sources-2.4.22-r5.patch.bz2
           => `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'
Resolving dev.gentoo.org... 128.193.0.39
Connecting to dev.gentoo.org[128.193.0.39]:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

Continued download failed on this file, which conflicts with `-c'.
Refusing to truncate existing file `/usr/portage/distfiles/gentoo-sources-2.4.22-r5.patch.bz2'.

!!! Couldn't download gentoo-sources-2.4.22-r5.patch.bz2. Aborting.
# 
#
#
#
# emerge info
Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control /var/yp"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X apache2 apm arts avi berkdb cdr crypt cups dvdr encode esd gdbm gif gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib"