URL:
  <https://savannah.gnu.org/bugs/?68031>

                 Summary: wget exits with success on "416 Requested Range Not
Satisfiable" on retry after initial failure
                   Group: GNU Wget
               Submitter: thesamesam
               Submitted: Sun 08 Feb 2026 01:24:57 AM UTC
                Category: Program Logic
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked
                 Release: None
        Operating System: None
         Reproducibility: None
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 08 Feb 2026 01:24:57 AM UTC By: Sam James <thesamesam>
We had a report of a fetch failure with the following log in our package
manager (which defaults to calling wget):

>>> Downloading 'http://distfiles.gentoo.org/distfiles/layout.conf'
--2026-02-06 22:39:05--  http://distfiles.gentoo.org/distfiles/layout.conf
Resolving distfiles.gentoo.org... 185.76.11.120, 185.76.11.111, 185.76.11.66,
...
Connecting to distfiles.gentoo.org|185.76.11.120|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38 [text/plain]
Saving to:
‘/var/cache/distfiles/.layout.conf.distfiles.gentoo.org.__download__’

     0K                                                       100% 2,98M=0s

2026-02-06 22:39:06 (2,98 MB/s) -
‘/var/cache/distfiles/.layout.conf.distfiles.gentoo.org.__download__’
saved [38/38]

>>> Downloading
>>> 'http://distfiles.gentoo.org/distfiles/f0/lxml-6.0.2.gh.tar.gz'
--2026-02-06 22:39:06--
http://distfiles.gentoo.org/distfiles/f0/lxml-6.0.2.gh.tar.gz
Resolving distfiles.gentoo.org... 185.76.11.120, 185.76.11.111, 185.76.11.66,
...
Connecting to distfiles.gentoo.org|185.76.11.120|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 990107 (967K) [application/x-gzip]
Saving to: ‘/var/cache/distfiles/lxml-6.0.2.gh.tar.gz.__download__’

     0K .......... .......... .......... .......... ..........  5%  521K 2s
    50K .......... .......... .......... .......... .......... 10% 1,08M 1s
   100K .......... .......... .......... .......... .......... 15% 1,89M 1s
   150K .......... .......... .......... .......... .......... 20% 2,25M 1s
   200K .......... .......... .......... .......... .......... 25% 3,45M 1s
   250K .......... .......... .......... .......... .......... 31% 4,08M 0s
   300K .......... .......... .......... .......... .......... 36% 5,16M 0s
   350K .......... .......... .......... .......... .......... 41% 5,05M 0s
   400K .......... .......... .......... .......... .......... 46% 5,99M 0s
   450K .......... .......... .......... .......... .......... 51% 4,20M 0s
   500K .......... .......... .......... .......... .......... 56% 11,4M 0s
   550K .......... .......... .......... .......... .......... 62% 9,00M 0s
   600K .......... .........                                   64% 1,22M=0,3s

2026-02-06 22:39:06 (2,17 MB/s) - Read error at byte 634440/990107 (Connection
reset by peer). Retrying.

--2026-02-06 22:39:07--  (try: 2)
http://distfiles.gentoo.org/distfiles/f0/lxml-6.0.2.gh.tar.gz
Connecting to distfiles.gentoo.org|185.76.11.120|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.


The first attempt fails (OK, fine) but on the retry, we get Requested Range
Not Satisfiable, and don't recognise that we failed earlier, and exit w/
success.

This gets caught by verification down the line but wget should exit with an
error instead in that case.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68031>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to