Opened 8 years ago

Closed 8 years ago

#49809 closed defect (worksforme)

vim-7.4.769_0 fails with "Error: Checksum (md5) mismatch for 7.4.103"

Reported by: macports@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: vim

Description (last modified by mf2k (Frank Schima))

The following errors are encountered when trying to execute 'port upgrade outdated' with vim being one of the packages scheduled for update.

###################
--->  Attempting to fetch vim-7.4.769_0+huge.darwin_14.x86_64.tbz2 from http://packages.macports.org/vim
--->  Attempting to fetch vim-7.4.769_0+huge.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/vim
--->  Attempting to fetch vim-7.4.769_0+huge.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/vim
--->  Fetching distfiles for vim
--->  Attempting to fetch 7.4.204 from http://distfiles.macports.org/vim/7.4
--->  Attempting to fetch 7.4.564 from http://distfiles.macports.org/vim/7.4
--->  Verifying checksums for vim
Error: Checksum (md5) mismatch for 7.4.103
Error: Checksum (md5) mismatch for 7.4.208

***

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/vim/7.4/7.4.564.html
Error: org.macports.checksum for port vim returned: Unable to verify file checksums
Please see the log file for port vim for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_editors_vim/vim/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
###################

[inserted carriage returns to prevent some damn auto-wrapping nonsense.]

I'll attach the referenced patch file, which macports thinks is html, but clearly isn't.

thx,

Jason.

Attachments (2)

7.4.564.html (6.9 KB) - added by macports@… 8 years ago.
main.log (126.5 KB) - added by macports@… 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by macports@…

Attachment: 7.4.564.html added

Changed 8 years ago by macports@…

Attachment: main.log added

comment:1 Changed 8 years ago by macports@…

On a whim, I looked to see if 'port clean vim' was actually removing the downloaded files. It's not. So, I did:

$ rm /opt/local/var/macports/distfiles/vim/7.4/*.html

$ port clean vim # seems to reset macports so it'll re-download

$ port upgrade outdated

[downloads problem files again, same fail]

Last edited 8 years ago by macports@… (previous) (diff)

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Keywords: vim md5 mismatch removed
Owner: changed from macports-tickets@… to raimue@…

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers vim), if any.

comment:3 Changed 8 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 8 years ago by raimue (Rainer Müller)

The file you attached actually has the correct checksum. The assumption the downloaded patch would be HTML is a false positive and can be ignored. The failed downloads were 7.4.103 and 7.4.208. I cannot reproduce the checksum issue, all files have the expected checksum for me when downloaded from distfiles.macports.org.

Please use

$ sudo port clean --all vim

to remove the downloaded distfiles for vim and then try again.

comment:5 Changed 8 years ago by macports@…

Ok, thanks. I suppose it's a credit to MacPorts that I've been using it for years and never needed to file a bug. :-)

Grumble. 'port clean --all -f vim' worked. Thanks.

Funny thing is, all four machines in my house have the same issue. Since I have a launchd cronjob on each of them to update the ports tree each night, it must've been an inconsistency on the server for a short period.

comment:6 Changed 8 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: newclosed

The distfiles are not updated with the ports tree, they are only downloaded when running the actual upgrade. I cannot find out which server your download used originally, maybe it was an error on one of the mirrors. The timestamp in the main mirror's web server listing did not change. I assume this was just something temporary.

Note: See TracTickets for help on using tickets.