Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Network > General > Issue <<  110 of 208 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4216
Last update: 11-16-04
Issue:
Why does curl not seem to resume my ISO download from Red Hat Network (RHN)?
Resolution:
Release Found: All

Symptom:
Upon trying to resume a download of an ISO from Red Hat Network (RHN) the following error message is generated:

 
** Resuming transfer from byte position 1196032
  % Total    % Received % Xferd  Average Speed          Time             Curr.
                                 Dload  Upload Total    Current  Left    Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:00 --:--:--     0
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
      


Using the -v switch with the curl command produces a more verbose error message output:

 
< HTTP/1.1 302 Moved Temporarily
< Location: https://rhn.redhat.com/errors/download-expired.pxt
< Connection: close
* HTTP server doesn't seem to support byte ranges. Cannot resume.
** Resuming transfer from byte position 344064

  % Total    % Received % Xferd  Average Speed          Time             Curr.
                                 Dload  Upload Total    Current  Left    Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
* Closing connection #0
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
      


Solution:
Refresh the RHN page you got the ISO URL from and recopy the URL of the ISO to download.

Curl uses session authentication in the URL when you attempt to download a file from RHN. After a certain amount of time or several attempts at downloading the same ISO your session authentication information expires, hence the error:

Location: https://rhn.redhat.com/errors/download-expired.pxt

You need to refresh the "Easy ISO's" page on RHN and re-copy the link to use with the curl command.

curl -C - -O [very-long-url]
Note this will create a new file and begin the download process again. This is because during the download phase the temporary file name includes the session authentication information. The download will start over each time you get the error above and need to refresh RHN. The session authentication information changes when you refresh RHN therefore a new filename is created for the ISO you are downloading.

To overcome this use the following command:

curl -C - -o [filename] [very-long-url]
The -o switch allows you to specify the filename, [filename], of the ISO image being downloaded from RHN. When you refresh RHN to get your new URL for the ISO, the download process continues where it left off because your filename has not changed.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Network > General > Issue <<   110  of  208  >>