Opened 13 years ago

Closed 12 years ago

#31542 closed defect (fixed)

erlang @R14B04 Checksum mismatch for otp_doc_html_R14B04.tar.gz

Reported by: peer@… Owned by: bfulgham@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: checksum Cc: peer@…, bugztrac@…, wcmclen@…
Port: erlang

Description

The html doc tarball has a checksum mismatch.

I tried the recommended redownload with the same results.

The files are not corrupt since the Gzip checksums are ok:

$ gzip -v -t *.gz
otp_doc_html_R14B04.tar.gz:	 OK
otp_doc_man_R14B04.tar.gz:	 OK
otp_src_R14B04.tar.gz:	 OK

From the logfile there can be seed that the files are fetched from http://www.erlang.org/download/

The error message when installing erlang @R14B04 is:

--->  Attempting to fetch otp_src_R14B04.tar.gz from http://www.erlang.org/download/
--->  Attempting to fetch otp_doc_man_R14B04.tar.gz from http://www.erlang.org/download/
--->  Attempting to fetch otp_doc_html_R14B04.tar.gz from http://www.erlang.org/download/
--->  Verifying checksum(s) for erlang
Error: Checksum (sha1) mismatch for otp_doc_html_R14B04.tar.gz
Error: Checksum (rmd160) mismatch for otp_doc_html_R14B04.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums

The relevant part of the logfile:

:notice:fetch --->  Attempting to fetch otp_src_R14B04.tar.gz from http://lil.fr.distfiles.macports.org/erlang
:debug:fetch Fetching failed:: Operation too slow. Less than 1024 bytes/sec transfered the last 60 seconds
:notice:fetch --->  Attempting to fetch otp_src_R14B04.tar.gz from http://www.erlang.org/download/
:info:fetch --->  otp_doc_man_R14B04.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/erlang
:notice:fetch --->  Attempting to fetch otp_doc_man_R14B04.tar.gz from http://lil.fr.distfiles.macports.org/erlang
:debug:fetch Fetching failed:: Operation too slow. Less than 1024 bytes/sec transfered the last 60 seconds
:notice:fetch --->  Attempting to fetch otp_doc_man_R14B04.tar.gz from http://www.erlang.org/download/
:info:fetch --->  otp_doc_html_R14B04.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/erlang
:notice:fetch --->  Attempting to fetch otp_doc_html_R14B04.tar.gz from http://lil.fr.distfiles.macports.org/erlang
:debug:fetch Fetching failed:: couldn't connect to host
:notice:fetch --->  Attempting to fetch otp_doc_html_R14B04.tar.gz from http://www.erlang.org/download/
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sat Oct  8 12:13:23 CEST 2011
:notice:checksum --->  Verifying checksum(s) for erlang
:debug:checksum Executing org.macports.checksum (erlang)
:info:checksum --->  Checksumming otp_src_R14B04.tar.gz
:debug:checksum Correct (sha1) checksum for otp_src_R14B04.tar.gz
:debug:checksum Correct (rmd160) checksum for otp_src_R14B04.tar.gz
:info:checksum --->  Checksumming otp_doc_man_R14B04.tar.gz
:debug:checksum Correct (sha1) checksum for otp_doc_man_R14B04.tar.gz
:debug:checksum Correct (rmd160) checksum for otp_doc_man_R14B04.tar.gz
:info:checksum --->  Checksumming otp_doc_html_R14B04.tar.gz
:error:checksum Checksum (sha1) mismatch for otp_doc_html_R14B04.tar.gz
:info:checksum Portfile checksum: otp_doc_html_R14B04.tar.gz sha1 f70762b30aa37aa677c4055060366006a9800af2
:info:checksum Distfile checksum: otp_doc_html_R14B04.tar.gz sha1 86f76adee9bf953e5578d7998fda9e7dfc0d43f5
:error:checksum Checksum (rmd160) mismatch for otp_doc_html_R14B04.tar.gz
:info:checksum Portfile checksum: otp_doc_html_R14B04.tar.gz rmd160 c748140ee1fc2f3d5d9e9c0f5b643808a626b2f1
:info:checksum Distfile checksum: otp_doc_html_R14B04.tar.gz rmd160 0e44a933ae35fe95d1ecd9958c9e86ce398e259f
:info:checksum The correct checksum line may be:
:info:checksum checksums           otp_src_R14B04.tar.gz \
                    sha1    e469c20c8be6c51bb584a2dec235c4714a60b4db \
                    rmd160  1619a05e7d3df9cb5f9c41e32d9cfb0d8b4edd56 \
                    otp_doc_man_R14B04.tar.gz \
                    sha1    41f4ea59c9622e39b30882e173983252b6faca81 \
                    rmd160  420d89fd32f2851253a5cef124ced50851dc2bb0 \
                    otp_doc_html_R14B04.tar.gz \
                    sha1    86f76adee9bf953e5578d7998fda9e7dfc0d43f5 \
                    rmd160  0e44a933ae35fe95d1ecd9958c9e86ce398e259f
:error:checksum Target org.macports.checksum returned: Unable to verify file checksums

Attachments (1)

Portfile-erlang.diff (698 bytes) - added by peer@… 13 years ago.
Patch that fixes the problem

Download all attachments as: .zip

Change History (13)

comment:1 Changed 13 years ago by bfulgham@…

Interesting. When I run the build locally, I find that all checksums pass as expected:

DEBUG: checksum phase started at Sun Oct  9 19:42:22 PDT 2011
--->  Verifying checksum(s) for erlang
DEBUG: Executing org.macports.checksum (erlang)
--->  Checksumming otp_src_R14B04.tar.gz
DEBUG: Correct (sha1) checksum for otp_src_R14B04.tar.gz
DEBUG: Correct (rmd160) checksum for otp_src_R14B04.tar.gz
--->  Checksumming otp_doc_man_R14B04.tar.gz
DEBUG: Correct (sha1) checksum for otp_doc_man_R14B04.tar.gz
DEBUG: Correct (rmd160) checksum for otp_doc_man_R14B04.tar.gz
--->  Checksumming otp_doc_html_R14B04.tar.gz
DEBUG: Correct (sha1) checksum for otp_doc_html_R14B04.tar.gz
DEBUG: Correct (rmd160) checksum for otp_doc_html_R14B04.tar.gz
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: extract phase started at Sun Oct  9 19:42:24 PDT 2011
--->  Extracting erlang
DEBUG: Executing org.macports.extract (erlang)

What operating system and processor architecture are you running?

Are you performing download outside of the United States?

Thanks,

-Brent

comment:2 Changed 13 years ago by bfulgham@…

Owner: changed from macports-tickets@… to bfulgham@…

comment:3 in reply to:  1 Changed 13 years ago by peer@…

Replying to bfulgham@…:

Interesting. When I run the build locally, I find that all checksums pass as expected:

What operating system and processor architecture are you running?

PowerPC MacOSX 10.5.8 (the last PowerPC version). But this shouldn't change the value of the checksums of the HTML doc.

Also interesting is that otp_src_R14B04.tar.gz and otp_doc_man_R14B04.tar.gz have a correct checksum and only otp_doc_html_R14B04.tar.gz has a failed checksum.

Are you performing download outside of the United States?

Yes I download from Germany. Do you think erlang.org serves different versions of the HTML doc for different regions?

Should I upload the file that fails the checksums somewhere?

comment:4 Changed 13 years ago by bugztrac@…

I get the same results as reported here. Mac OS X 10.6.8 running on an Intel Core 2 Duo.

Retried the download as well with checksum error reported on otp_doc_html_R14B04.tar.gz both times.

Downloading in Canada.

comment:5 Changed 13 years ago by bugztrac@…

Cc: bugztrac@… added

Cc Me!

comment:6 in reply to:  1 ; Changed 13 years ago by johan.z.persson@…

Replying to bfulgham@…:

Interesting. When I run the build locally, I find that all checksums pass as expected:

According to http://www.erlang.org/download.html:

  7/10-2011
  The documentation tar is now updated due to a small error some of the .eix files.
   (Updated:otp_doc_html_R14B04.tar.gz, md5 checksums)

As far as I know, the checksums should be
RIPEMD160(/opt/local/var/macports/distfiles/erlang/otp_doc_html_R14B04.tar.gz)= 0e44a933ae35fe95d1ecd9958c9e86ce398e259f
SHA1(/opt/local/var/macports/distfiles/erlang/otp_doc_html_R14B04.tar.gz)= 86f76adee9bf953e5578d7998fda9e7dfc0d43f5

Is there a quick way of correcting this?

comment:7 in reply to:  6 Changed 13 years ago by johan.z.persson@…

Replying to johan.z.persson@…:

Is there a quick way of correcting this?

If I bothered to check the FAQ before asking, I would've found that it works perfectly well to edit the Portfile! I can from my corner confirm that it is indeed a checksum error.

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

Cc: wcmclen@… added; bfulgham@… removed

Has duplicate #31998.

comment:9 Changed 13 years ago by peer@…

Well this is open for a while, just recently checked again it is not fixed.

This is a easy fix: the otp_doc_html_R14B04.tar.gz on erlang.org has changed without a name change.

The have admitted this on their site as was already documented above.

Everybody who downloads otp_doc_html_R14B04.tar.gz after Oct 7th 2011 can't install the port because of this.

I personally don't care since hacking the ports file is easy but this shouldn't be necessary ...

Changed 13 years ago by peer@…

Attachment: Portfile-erlang.diff added

Patch that fixes the problem

comment:10 in reply to:  description Changed 13 years ago by peer@…

I submitted a patch above to make this more easier.

BTW: If you have trouble reproducing this, make sure you redownload the files from erlang.org and not somwhere else.

comment:11 Changed 13 years ago by bfulgham@…

The problem is that http://distfiles.macports.org has cached the 'old' version of the file. So that if you run the port build from certain locations (e.g., the US) the checksums match against the 'original' version of the file. Users outside this area seem to get the 'true' version of the file from the Erlang site.

I'm trying to find out how to force the caching server to refresh so that I can push out a checksum update that fixes it for everyone.

Right now, if I leave it as-is it works for one group; if I change to the updated checksums it will only work for those not being served by the cache.

comment:12 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.