Opened 10 years ago

Closed 9 years ago

#45134 closed defect (fixed)

axel: checksum mismatch because html file

Reported by: jchauvel@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.99
Keywords: haspatch Cc: mike@…, PKiman, hellhovnd (Jean-Pierre Chauvel), dbender@…, lkraider (Paul Eipper)
Port: axel

Description

I've recently installed Yosemite Developer Preview 8 and macports from source with the SDK provided by Xcode 6.1 GM. It appears as if checksum verification fails while it tries to download the distfile.

:debug:fetch Executing org.macports.fetch (axel)
:info:fetch --->  axel-2.4.tar.bz2 doesn't seem to exist in /opt/local/var/macports/distfiles/axel
:notice:fetch --->  Attempting to fetch axel-2.4.tar.bz2 from http://alioth.debian.org/frs/download.php/file/3016
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Tue Sep 23 11:13:18 PET 2014
:notice:checksum --->  Verifying checksums for axel
:debug:checksum Executing org.macports.checksum (axel)
:info:checksum --->  Checksumming axel-2.4.tar.bz2
:debug:checksum Calculated (rmd160) is 5d54f25715e43494a296a6735175b6e9cecc52d9
:error:checksum Checksum (rmd160) mismatch for axel-2.4.tar.bz2
:info:checksum Portfile checksum: axel-2.4.tar.bz2 rmd160 34fc9f951495904a44ed9649f88abae9c2840060
:info:checksum Distfile checksum: axel-2.4.tar.bz2 rmd160 5d54f25715e43494a296a6735175b6e9cecc52d9
:debug:checksum Calculated (sha256) is 50a08217f8077e5d9d8b07e37a621f8d3d3e260f3403b5482e9b8cdddc5074df
:error:checksum Checksum (sha256) mismatch for axel-2.4.tar.bz2
:info:checksum Portfile checksum: axel-2.4.tar.bz2 sha256 ebc7d40e989c680d2afa632a17e5208101608924cf446da20814a6f3c3338612
:info:checksum Distfile checksum: axel-2.4.tar.bz2 sha256 50a08217f8077e5d9d8b07e37a621f8d3d3e260f3403b5482e9b8cdddc5074df
:notice:checksum ***
:notice:checksum The non-matching file appears to be HTML. See this page for possible reasons
:notice:checksum for the checksum mismatch:
:notice:checksum <https://trac.macports.org/wiki/MisbehavingServers>
:notice:checksum ***
:notice:checksum The file has been moved to: /opt/local/var/macports/distfiles/axel/axel-2.4.tar.bz2.html
:error:checksum Failed to checksum axel: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums

Attachments (4)

main.log (8.4 KB) - added by jchauvel@… 10 years ago.
3016.html (6.5 KB) - added by jchauvel@… 10 years ago.
3016-via-https.html (6.5 KB) - added by jchauvel@… 10 years ago.
Portfile (1.3 KB) - added by lkraider (Paul Eipper) 9 years ago.
axel-2.5 Portfile

Download all attachments as: .zip

Change History (28)

Changed 10 years ago by jchauvel@…

Attachment: main.log added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: nomaintainer@… removed

Please do not Cc nomaintainer@… because it is not a valid email address.

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

What does the aforementioned HTML file contain? Could you attach it?

comment:3 Changed 10 years ago by jchauvel@…

It's a result from fetching from this URL http://alioth.debian.org/frs/download.php/file/3016 (I'll attach the resulting HTML).

Last edited 10 years ago by jchauvel@… (previous) (diff)

Changed 10 years ago by jchauvel@…

Attachment: 3016.html added

comment:4 Changed 10 years ago by jchauvel@…

In plain text it says you this:

You've been redirected to this login page because you have tried accessing a page that was not available to you as an anonymous user. Cookies must be enabled past this point.

comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: yosemite removed
Resolution: fixed
Status: newclosed
Summary: Unable to install axel from sourceaxel: checksum mismatch because html file

Fixed in r125659, I think.

comment:6 Changed 10 years ago by jchauvel@…

ryandesign,

I've rebuilt macports by updating my svn checkout but it keeps whining about the HTML file

--->  Computing dependencies for axel
--->  Fetching distfiles for axel
--->  Attempting to fetch axel-2.4.tar.bz2 from https://alioth.debian.org/frs/download.php/file/3016
--->  Verifying checksums for axel
Error: Checksum (rmd160) mismatch for axel-2.4.tar.bz2
Error: Checksum (sha256) mismatch for axel-2.4.tar.bz2
***
The non-matching file appears to be HTML. See this page for possible reasons
for the checksum mismatch:
<https://trac.macports.org/wiki/MisbehavingServers>
***
The file has been moved to: /opt/local/var/macports/distfiles/axel/axel-2.4.tar.bz2.html
Error: Failed to checksum axel: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_axel/axel/main.log for details.
Error: Follow http://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port axel failed

Changed 10 years ago by jchauvel@…

Attachment: 3016-via-https.html added

comment:7 Changed 10 years ago by jchauvel@…

I think is something related to unauthenticated access to the resource. May you have a local cache stored with the session cookie.

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

I agree it does not work now. I thought it worked when I committed it.

I will ask the administrators of the alioth.debian server why they are doing this. I'm able to download some other projects' files from alioth, so perhaps this is a setting that can be made on a per-project basis, but clearly such a setting would mean the server cannot be used for automated downloads like those MacPorts tries to do.

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

With axel, I couldn't download the file whether or not I logged in to Alioth.

With another project, I could download when logged in: https://alioth.debian.org/tracker/index.php?func=detail&aid=314824&group_id=1&atid=200001

comment:11 Changed 9 years ago by mike@…

Per the instructions when upgrading your OS, I uninstalled and began reinstalling all of my ports following an upgrade to OS X 10.11. I'm running into the issue described in this ticket, though - is there anything I can do to get axel working?

comment:12 Changed 9 years ago by mike@…

Cc: mike@… added

Cc Me!

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

I never received a response to the problem report I filed in the alioth.debian tracker above, and the server still does not appear to be delivering the needed file, so I have no further information on solving this problem. I suggest you try to get in touch with the developers of the software. Maybe you'll have better luck than I did.

comment:14 Changed 9 years ago by mike@…

I emailed one of the developers, Philipp Hagemeister, on Tuesday. I'm hopeful that he'll write back.

comment:15 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: me@… added

Has duplicate #49508.

comment:16 Changed 9 years ago by hellhovnd (Jean-Pierre Chauvel)

Cc: jean.p.chauvel@… added

Cc Me!

comment:18 Changed 9 years ago by dbender@…

Cc: dbender@… added

Cc Me!

comment:19 Changed 9 years ago by lkraider (Paul Eipper)

Cc: lkraider+ports@… added

Cc Me!

comment:20 Changed 9 years ago by lkraider (Paul Eipper)

Seems Axel has changed maintainers, there is a Github project page now: https://github.com/eribertomota/axel/releases

Also, there is a new release 2.5 for it.

Seems official, since that is what Debian Sid points to now: https://packages.debian.org/sid/axel

Changed 9 years ago by lkraider (Paul Eipper)

Attachment: Portfile added

axel-2.5 Portfile

comment:21 Changed 9 years ago by lkraider (Paul Eipper)

Updated the Portfile to build axel-2.5 from github

comment:22 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… removed
Keywords: haspatch added
Owner: changed from macports-tickets@… to ryandesign@…
Status: reopenednew

Thanks, using that fork seems reasonable.

comment:23 Changed 9 years ago by hellhovnd (Jean-Pierre Chauvel)

How can I install this new port version?

comment:24 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

I am working on fixing the port and will then commit it to the repository.

comment:25 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

In the future, please submit a unified diff of your proposed changes instead of a complete new Portfile. This is easier to review and ensures no unintended changes are included.

Committed in r142506 with the following changes:

  • used github portgroup
  • patched configure script to not look for libintl headers outside of the MacPorts prefix
  • patched configure script to honor LDFLAGS
  • removed portfile code to set CFLAGS and LDFLAGS at build time which is no longer needed
  • removed libiconv dependency which seems not to be used
  • added post-destroot block to move axelrc to axelrc.sample, so that the user can copy it to axelrc and modify it and those changes will not be lost the next time the port is upgraded
Note: See TracTickets for help on using tickets.