Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#33122 closed defect (worksforme)

maven2: checksum mismatch because HTML file

Reported by: mtimony@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: gk5885@…
Port: maven2

Description

I'm unable to install maven2 as the download is either not found, or the md5sums don't match. See the debugging output from ports below.

Thanks
Mick

 sudo port -d install maven2
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/java/maven2
DEBUG: OS darwin/10.8.0 (Mac OS X 10.6) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Starting logging for maven2
DEBUG: Found Dependency: path: /usr/bin filename: java regex: ^java$
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: maven_select 0.3_1 exists in the ports tree
DEBUG: maven_select 0.3_1  is the latest installed
DEBUG: maven_select 0.3_1  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/maven_select
DEBUG: OS darwin/10.8.0 (Mac OS X 10.6) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: No need to upgrade! maven_select 0.3_1 >= maven_select 0.3_1
--->  Computing dependencies for maven2
DEBUG: Searching for dependency: kaffe
DEBUG: Didn't find receipt, going to depspec regex for: kaffe
DEBUG: Found Dependency: path: /usr/bin filename: java regex: ^java$
DEBUG: Found Dependency: path: /usr/bin filename: java regex: ^java$
DEBUG: Searching for dependency: maven_select
DEBUG: Found Dependency: receipt exists for maven_select
DEBUG: Executing org.macports.main (maven2)
DEBUG: Skipping completed org.macports.archivefetch (maven2)
DEBUG: Skipping completed org.macports.fetch (maven2)
DEBUG: checksum phase started at Thu Feb  2 16:18:58 EST 2012
--->  Verifying checksum(s) for maven2
DEBUG: Executing org.macports.checksum (maven2)
--->  Checksumming apache-maven-2.2.1-bin.tar.bz2
Error: Checksum (md5) mismatch for apache-maven-2.2.1-bin.tar.bz2
Portfile checksum: apache-maven-2.2.1-bin.tar.bz2 md5 c581a15cb0001d9b771ad6df7c8156f8
Distfile checksum: apache-maven-2.2.1-bin.tar.bz2 md5 851a503e14babd625c69d407b0e468f3
Error: Checksum (sha1) mismatch for apache-maven-2.2.1-bin.tar.bz2
Portfile checksum: apache-maven-2.2.1-bin.tar.bz2 sha1 47ac0417a200cbc6d1b967d6b7c6ae1138e9e3e0
Distfile checksum: apache-maven-2.2.1-bin.tar.bz2 sha1 e7f34f062705d1639c879768486e70336bdbc7ca
Error: Checksum (rmd160) mismatch for apache-maven-2.2.1-bin.tar.bz2
Portfile checksum: apache-maven-2.2.1-bin.tar.bz2 rmd160 25d523d3dc86cf4695b0e343cf0f6e58ea8a54e3
Distfile checksum: apache-maven-2.2.1-bin.tar.bz2 rmd160 099eba1ed270b53abacb684aa22e8fbb416aa563
The correct checksum line may be:
checksums           md5     851a503e14babd625c69d407b0e468f3 \
                    sha1    e7f34f062705d1639c879768486e70336bdbc7ca \
                    rmd160  099eba1ed270b53abacb684aa22e8fbb416aa563
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<https://trac.macports.org/wiki/MisbehavingServers>
***
Error: Target org.macports.checksum returned: Unable to verify file checksums
DEBUG: Backtrace: Unable to verify file checksums
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for maven2): org.macports.activate org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for maven2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_maven2/maven2/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (7)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: maven2 removed
Priority: HighNormal
Summary: Maven2: unable to downloadmaven2: checksum mismatch because HTML file

Did you read the MisbehavingServers page to which the error message directed you? What is in the HTML file that got downloaded?

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: gk5885@… added
Owner: changed from macports-tickets@… to blair@…

comment:3 Changed 13 years ago by mtimony@…

I did read the MisbehavingServers page. I'm not behind a proxy, nor getting a bogus DNS lookup, nor using a hotspot/wireless.

I had look at the Maven2 Portfile and it's trying to pull the bz2 file from http://maven.apache.org/download.html. I can access that page without problems using a web browser on the same system.

What is in the HTML file that got downloaded?

I'm not sure where to find it?

comment:4 Changed 13 years ago by neverpanic (Clemens Lang)

port distfiles maven will tell you (open the file in a text editor or with a browser to see the HTML).

My mirror check script says all mirrors for maven2 work fine, so it likely is a problem at your end.

comment:5 Changed 13 years ago by blair (Blair Zajac)

Resolution: worksforme
Status: newclosed

I don't see it downloading from that web page, for me, it got it from http://mirror.facebook.net/apache/maven/binaries.

Please reopen the ticket if there's truly an issue with the port.

comment:6 Changed 13 years ago by mtimony@…

I figured out the problem. I'd tried to install maven2 last year and I had the same problem. There was a cached file of the bz2 from that time that was actually a HTML file. I removed the file (which was cached in /opt/local/var/macports/distfiles/maven2 and was able to install maven2 successfully.

Thanks for your comments and help that aided me in figuring out where the file was saved and how to resolve this. And thanks for maintaining MacPorts!

comment:7 Changed 13 years ago by neverpanic (Clemens Lang)

See the wiki:FAQ#checksums mentioning the command to delete the leftover files before trying again.

Note: See TracTickets for help on using tickets.