#58847 closed defect (invalid)
Error: Failed to checksum legacy-support: macports-legacy-support-0.11.1.tar.gz does not exist in /opt/local/var/macports/distfiles/legacy-support
Reported by: | dmitriz (Dmitri Zaitsev) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: |
Description
➜ ~ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync MacPorts base version 2.5.4 installed, MacPorts base version 2.5.4 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated
➜ ~ sudo port upgrade outdated ---> Verifying checksums for legacy-support Error: Failed to checksum legacy-support: macports-legacy-support-0.11.1.tar.gz does not exist in /opt/local/var/macports/distfiles/legacy-support Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_legacy-support/legacy-support/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Attachments (1)
Change History (9)
Changed 5 years ago by dmitriz (Dmitri Zaitsev)
comment:1 Changed 5 years ago by dmitriz (Dmitri Zaitsev)
The file seems to exist in my directory despite the claim that it doesn't (see above):
➜ ~ ls /opt/local/var/macports/distfiles/legacy-support macports-legacy-support-0.10.1.tar.gz macports-legacy-support-0.11.tar.gz macports-legacy-support-0.11.1.tar.gz.html
comment:2 Changed 5 years ago by dmitriz (Dmitri Zaitsev)
➜ legacy-support ll total 144 -rw-r--r-- 1 macports wheel 30K 13 Jul 19:12 macports-legacy-support-0.10.1.tar.gz -rw-r--r-- 1 macports wheel 6.9K 16 Aug 13:48 macports-legacy-support-0.11.1.tar.gz.html -rw-r--r-- 1 macports wheel 31K 15 Aug 18:45 macports-legacy-support-0.11.tar.gz
comment:3 Changed 5 years ago by dmitriz (Dmitri Zaitsev)
Ok, I have now manually downloaded macports-legacy-support-0.11.1.tar.gz
from http://jog.id.distfiles.macports.org/macports/distfiles/legacy-support/
and the error seems to be gone.
Leaving this for others who might run into this problem. Perhaps replace the confusing error message with something more suggestive like "you might be able to fix this by downloading X from Y and putting into directory Z"?
comment:4 Changed 5 years ago by dmitriz (Dmitri Zaitsev)
Correction to what I said, macports-legacy-support-0.11.1.tar.gz
didn't actually exist, the one that existed had the .html
in addition. While the one that existed without .html
is 0.11
rather than 0.11.1
.
Still unclear why the download attempt failed and why that failure was not reported as the actual error.
comment:5 Changed 5 years ago by cjones051073 (Chris Jones)
The reason for the error is because your machine is having problems connecting to the dist file mirrors
:info:fetch ---> macports-legacy-support-0.11.1.tar.gz does not exist in /opt/local/var/macports/distfiles/legacy-support :notice:fetch ---> Attempting to fetch macports-legacy-support-0.11.1.tar.gz from http://jog.id.distfiles.macports.org/macports/distfiles/legacy-support :debug:fetch Fetching distfile failed: Resolving timed out after 30000 milliseconds :notice:fetch ---> Attempting to fetch macports-legacy-support-0.11.1.tar.gz from http://cjj.kr.distfiles.macports.org/legacy-support :debug:fetch Privilege de-escalation not attempted as not running as root. :debug:checksum checksum phase started at Fri Aug 16 13:48:38 ICT 2019 :notice:checksum ---> Verifying checksums for legacy-support :debug:checksum Executing org.macports.checksum (legacy-support) :info:checksum ---> Checksumming macports-legacy-support-0.11.1.tar.gz :debug:checksum Calculated (rmd160) is 6014cc8c6daaade245f166627320d57da15ff0f6 :error:checksum Checksum (rmd160) mismatch for macports-legacy-support-0.11.1.tar.gz
Both the http address above work fine for me and contain the required tarball. So the issue is specific to your machine not being able to connect. You need to investigate why this is yourself.
comment:6 Changed 5 years ago by cjones051073 (Chris Jones)
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:7 Changed 5 years ago by jmroot (Joshua Root)
This actually looks like a case of MisbehavingServers - macports-legacy-support-0.11.1.tar.gz.html
would have been renamed after a checksum mismatch because it contained HTML. The contents may tell you more. You can clean the port to try fetching again.
comment:8 Changed 5 years ago by jmroot (Joshua Root)
…which is exactly what the log says, now that I look.
:notice:fetch ---> Attempting to fetch macports-legacy-support-0.11.1.tar.gz from http://cjj.kr.distfiles.macports.org/legacy-support :debug:fetch Privilege de-escalation not attempted as not running as root. :debug:checksum checksum phase started at Fri Aug 16 13:48:38 ICT 2019 :notice:checksum ---> Verifying checksums for legacy-support :debug:checksum Executing org.macports.checksum (legacy-support) :info:checksum ---> Checksumming macports-legacy-support-0.11.1.tar.gz :debug:checksum Calculated (rmd160) is 6014cc8c6daaade245f166627320d57da15ff0f6 :error:checksum Checksum (rmd160) mismatch for macports-legacy-support-0.11.1.tar.gz :info:checksum Portfile checksum: macports-legacy-support-0.11.1.tar.gz rmd160 4a072025819439b498cc143441db40c88203bf41 :info:checksum Distfile checksum: macports-legacy-support-0.11.1.tar.gz rmd160 6014cc8c6daaade245f166627320d57da15ff0f6 :debug:checksum Calculated (sha256) is c11df41297ecec59cc499d7513a07c3810072ec6d04ff45fd4b0d3449d161ff1 :error:checksum Checksum (sha256) mismatch for macports-legacy-support-0.11.1.tar.gz :info:checksum Portfile checksum: macports-legacy-support-0.11.1.tar.gz sha256 e5f1af5b57dc79a5227d2df2588ad91a276890af845133b29a01d48e32b74216 :info:checksum Distfile checksum: macports-legacy-support-0.11.1.tar.gz sha256 c11df41297ecec59cc499d7513a07c3810072ec6d04ff45fd4b0d3449d161ff1 :debug:checksum Calculated (size) is 7116 :error:checksum Checksum (size) mismatch for macports-legacy-support-0.11.1.tar.gz :info:checksum Portfile checksum: macports-legacy-support-0.11.1.tar.gz size 31602 :info:checksum Distfile checksum: macports-legacy-support-0.11.1.tar.gz size 7116 :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/legacy-support/macports-legacy-support-0.11.1.tar.gz.html :error:checksum Failed to checksum legacy-support: Unable to verify file checksums
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_legacy-support/legacy-support/main.log