Opened 18 years ago

Last modified 17 years ago

#8371 closed defect

BUG: If fetch fails don't leave com.apple.fetch in the state file — at Version 8

Reported by: cssdev@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.2
Keywords: Cc:
Port:

Description (last modified by jmpp@…)

I encountered a checksum error trying to install the libxml2 port. The problem is that the downloaded file is a web page, not the binary archive. The fetch phase does not seem to properly download the archive. The actual error I received was a checksum error (output included below), but closer inspection reveal the downloaded file as HTML.

$ sudo port -v checksum libxml2
--->  Fetching libxml2
--->  libxml2-2.6.23.tar.bz2 doesn't seem to exist in /opt/local/var/db/dports/distfiles/libxml2
--->  Attempting to fetch libxml2-2.6.23.tar.bz2 from http://www.gtlib.cc.gatech.edu/pub/gnome/sources/libxml2/2.6/

--->  Attempting to fetch libxml2-2.6.23.tar.bz2 from http://public.planetmirror.com/pub/gnome/sources/libxml2/2.6/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 29399    0 29399    0     0   9215      0 --:--:--  0:00:03 --:--:-- 13829
--->  Verifying checksum(s) for libxml2
--->  Checksumming libxml2-2.6.23.tar.bz2
Error: Checksum (rmd160) mismatch for libxml2-2.6.23.tar.bz2
Portfile checksum: libxml2-2.6.23.tar.bz2 rmd160 6cca60b81f56101e42c7f9a8529f5c6f34e4b49f
Distfile checksum: libxml2-2.6.23.tar.bz2 rmd160 2a7a0a71d21dab7688517f454839d426a9443830
Error: Target com.apple.checksum returned: Unable to verify file checksums
Warning: the following items did not execute (for libxml2): com.apple.checksum
Error: /opt/local/bin/port: Status 1 encountered during processing.
$ port version && uname -a
Version: 1.211
Darwin vecsigma.local 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar  7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc

Change History (9)

Changed 18 years ago by rhwood@…

Attachment: libxml2-2.6.23.tar.bz2 added

HTML document returned with above name.

comment:1 Changed 18 years ago by rhwood@…

Cc: rhwood@… added
Summary: BUG: libxml2-2.6.23 fetch errorBUG: libxml2-2.6.23 fetch error from planetmirror.com

The fast workaround would be to remove the planetmirror.com entry or entries from /opt/local/share/darwinports/resources/port1.0/fetch/mirror_sites.tcl

This file includes a HTTP redirect within the HTML, but I do not know if the HTTP response header includes the redirect or not. Is it possible that libcurl is ignoring HTTP redirects?

comment:2 Changed 18 years ago by dwddarwin@…

Cc: dwddarwin@… added

I just started a new opendarwin installation from scratch yesterday on my new Macbook Pro (intel processor with Tiger 10.4.6), and the problem reported here is still happening: for gnome packages, www.gtlib.cc.gatech.edu is not responding and files loaded from public.planetmirror.com are getting a bad checksum. What's worse is that the installation is left in a bad state that it can't automatically recover from. It gets errors like this:

---> Verifying checksum(s) for gail Error: Target com.apple.checksum returned: Could not open file: /opt/local/var/db/dports/distfiles/gail/gail-1.8.11.tar.bz2 Error: /opt/local/bin/port: Status 1 encountered during processing.

I found I needed to remove the line "com.apple.fetch" from /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gail/work/.darwinports.gail.state to allow it to try again. And yes, I found that I needed to change the mirrors.tcl file to avoid the planetmirror.com. I think it ought to continue trying other mirrors if a checksum fails.

In summary, I'm suggesting 3 things:

  1. If a fetch fails (or maybe it's the checksum failing that's the problem), don't leave com.apple.fetch in the state file.
  2. If a checksum fails after download, continue to try other mirrors.
  3. Change the mirrors.tcl list for gnome to move or remove planetmirror and gatech.

comment:3 Changed 18 years ago by markd@…

Cc: markd@… added

It appears that planetmirror has been removed from gnomes sources. I think the other suggestions are duplicated in ticket #2409 so I think this one should now be marked a duplicate of #2409. Or if not that 2409 could be marked a duplicate of this one.

comment:4 Changed 18 years ago by markd@…

This one is described better so I makerd #2409 as the duplicate.

comment:5 Changed 18 years ago by markd@…

Cc: michaelm@… rhwood@… dwddarwin@… markd@… removed
Component: portsbase
Summary: BUG: libxml2-2.6.23 fetch error from planetmirror.comBUG: If fetch fails don't leave com.apple.fetch in the state file

comment:6 Changed 17 years ago by pipping@…

Milestone: Port Bugs

comment:7 Changed 17 years ago by pipping@…

Milestone: Port BugsMacPorts 1.4

comment:8 Changed 17 years ago by jmpp@…

Description: modified (diff)
Note: See TracTickets for help on using tickets.