Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 231759 - wget retries with wrong file name
Summary: wget retries with wrong file name
Alias: None
Product: Fedora
Classification: Fedora
Component: wget
Version: 6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
Whiteboard: bzcl34nup
Depends On:
TreeView+ depends on / blocked
Reported: 2007-03-11 08:33 UTC by Kasper Dupont
Modified: 2008-05-07 07:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-05-06 19:20:31 UTC

Attachments (Terms of Use)

Description Kasper Dupont 2007-03-11 08:33:54 UTC
Description of problem:
When the connection is broken and wget retry the rest of the file it is saved to
a different file rather than being appended to the existing file.

Version-Release number of selected component (if applicable):

How reproducible:
Happens every time.

Steps to Reproduce:
1. Start downloading a file with wget
2. Server breaks connection
Actual results:
wget retry and create a new file with .1 appended to the end for the rest of the

Expected results:
The rest of the contents are appended to the existing file.

Additional info:

Comment 1 Alan Pevec 2007-04-25 18:55:35 UTC
This bug is present in FC6

Comment 2 Chuck Ebbert 2007-04-25 19:09:51 UTC
Does using wget -c work?

Comment 3 Richard W.M. Jones 2007-04-26 07:52:25 UTC
I have the same problem.  My report ...

'wget'-ing a file from the W3C's website, the web server closed the connection
after 6%, wget correctly resumed the connection, but saved the rest of the file
as 'file.1'.  As a result neither 'file' nor 'file.1' contain the right data
(although I suppose I could concatenate them together).

$ wget
Resolving,,, ...
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6894439 (6.6M) [application/octet-stream]
Saving to: `xsts-2002-01-16.tar.gz'

 6% [=>                                      ] 439,872     6.21K/s   in 47s

13:42:48 (9.07 KB/s) - Connection closed at byte 439872. Retrying.

--13:42:49--  (try: 2)
Connecting to||:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 6894439 (6.6M), 6454567 (6.2M) remaining [application/octet-stream]
Saving to: `xsts-2002-01-16.tar.gz.1'

100%[++=====================================>] 6,894,439    227K/s   in 43s

13:43:34 (147 KB/s) - `xsts-2002-01-16.tar.gz.1' saved [6894439/6894439]

$ ls -l xsts-2002-01-16.tar.gz*
-rw-rw-r-- 1 rjones rjones  439872 Apr 25 13:42 xsts-2002-01-16.tar.gz
-rw-rw-r-- 1 rjones rjones 6454567 May 20  2005 xsts-2002-01-16.tar.gz.1

$ which wget
$ wget --version
GNU Wget 1.10.2 (Red Hat modified)

Copyright (C) 2005 Free Software Foundation, Inc.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public Licence for more details.

Originally written by Hrvoje Niksic <>.

The machine is running FC6.  I was doing a massive upload in the background
which appears to be why wget failed.

I can reproduce this pretty reliably just by doing the wget & upload at the same
time - though of course it fails at a random place each time.


"wget -c" is not the solution to this, since we're not trying to resume across
invocations of wget.

Comment 4 Karsten Hopp 2007-06-18 14:58:05 UTC
reproducable with ifdown/ifup during the download.
Looks like this is  fixed in F-7, I'll prepare new FC-6 packages soon

Comment 5 Bug Zapper 2008-04-04 06:30:14 UTC
Fedora apologizes that these issues have not been resolved yet. We're
sorry it's taken so long for your bug to be properly triaged and acted
on. We appreciate the time you took to report this issue and want to
make sure no important bugs slip through the cracks.

If you're currently running a version of Fedora Core between 1 and 6,
please note that Fedora no longer maintains these releases. We strongly
encourage you to upgrade to a current Fedora release. In order to
refocus our efforts as a project we are flagging all of the open bugs
for releases which are no longer maintained and closing them.

If this bug is still open against Fedora Core 1 through 6, thirty days
from now, it will be closed 'WONTFIX'. If you can reporduce this bug in
the latest Fedora version, please change to the respective version. If
you are unable to do this, please add a comment to this bug requesting
the change.

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we are following is outlined here:

We will be following the process here: to ensure this
doesn't happen again.

And if you'd like to join the bug triage team to help make things
better, check out

Comment 6 Bug Zapper 2008-05-06 19:20:30 UTC
This bug is open for a Fedora version that is no longer maintained and
will not be fixed by Fedora. Therefore we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen thus bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 7 Richard W.M. Jones 2008-05-07 07:40:25 UTC
This seems to be fixed for me in wget 1.10.2.

Note You need to log in before you can comment on or make changes to this bug.