Opened 3 months ago

Closed 3 months ago

#70236 closed defect (worksforme)

openssl3 @3.3.1 invalid checksum on darwin21

Reported by: michele-segata (Michele Segata) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: larryv (Lawrence Velázquez)
Port: openssl3

Description

Dear all,

I was trying to upgrade openssl3 on macOS Monterey 12.7 to version 3.3.1, but the upgrade fails giving a checksum error. I am copy pasting the error log below:

--->  Computing dependencies for openssl3
--->  Fetching archive for openssl3
--->  Attempting to fetch openssl3-3.3.1_0+universal.darwin_21.arm64-x86_64.tbz2 from https://packages.macports.org/openssl3
--->  Attempting to fetch openssl3-3.3.1_0+universal.darwin_21.arm64-x86_64.tbz2 from https://fra.de.packages.macports.org/openssl3
--->  Attempting to fetch openssl3-3.3.1_0+universal.darwin_21.arm64-x86_64.tbz2 from http://fco.it.packages.macports.org/openssl3
--->  Verifying checksums for openssl3
Error: Checksum (rmd160) mismatch for openssl-3.3.1.tar.gz
Error: Checksum (sha256) mismatch for openssl-3.3.1.tar.gz
Error: Failed to checksum openssl3: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3/main.log for details.
Error: Unable to execute port python312: upgrade openssl failed

In addition, here's the content of main.log:

version:1
:debug:main Starting logging for openssl3 @3.3.1_0+universal
:debug:sysinfo macOS 12.7 (darwin/21.6.0) arch arm
:debug:sysinfo MacPorts 2.9.3
:debug:sysinfo Xcode 13.4.1, CLT 14.2.0.0.1.1668646533
:debug:sysinfo SDK 12
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 12.0
:msg:main --->  Computing dependencies for openssl3:info:main .:debug:main openssl3 has no conflicts
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Executing org.macports.main (openssl3)
:debug:main dropping privileges: euid changed to 502, egid changed to 501.
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Mon Jun 17 15:12:47 CEST 2024
:msg:archivefetch --->  Fetching archive for openssl3
:debug:archivefetch Executing org.macports.archivefetch (openssl3)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  openssl3-3.3.1_0+universal.darwin_21.arm64-x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch openssl3-3.3.1_0+universal.darwin_21.arm64-x86_64.tbz2 from https://packages.macports.org/openssl3
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch openssl3-3.3.1_0+universal.darwin_21.arm64-x86_64.tbz2 from https://fra.de.packages.macports.org/openssl3
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:msg:archivefetch --->  Attempting to fetch openssl3-3.3.1_0+universal.darwin_21.arm64-x86_64.tbz2 from http://fco.it.packages.macports.org/openssl3
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (openssl3)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Mon Jun 17 15:12:47 CEST 2024
:notice:checksum --->  Verifying checksums for openssl3
:debug:checksum Executing org.macports.checksum (openssl3)
:info:checksum --->  Checksumming openssl-3.3.1.tar.gz
:debug:checksum Calculated (rmd160) is 080913cece2a4539563c1ede5e6c901dcd7803fe
:error:checksum Checksum (rmd160) mismatch for openssl-3.3.1.tar.gz
:info:checksum Portfile checksum: openssl-3.3.1.tar.gz rmd160 f7d3736a023dcf7d40db016182ca6d1de5a6fa69
:info:checksum Distfile checksum: openssl-3.3.1.tar.gz rmd160 080913cece2a4539563c1ede5e6c901dcd7803fe
:debug:checksum Calculated (sha256) is 387c8cd09b69595c3ff10c1610bcaf9ac4299c268941b226967ab0591cfba863
:error:checksum Checksum (sha256) mismatch for openssl-3.3.1.tar.gz
:info:checksum Portfile checksum: openssl-3.3.1.tar.gz sha256 777cd596284c883375a2a7a11bf5d2786fc5413255efab20c50d6ffe6d020b7e
:info:checksum Distfile checksum: openssl-3.3.1.tar.gz sha256 387c8cd09b69595c3ff10c1610bcaf9ac4299c268941b226967ab0591cfba863
:debug:checksum Calculated (size) is 18055752
:debug:checksum Correct (size) checksum for openssl-3.3.1.tar.gz
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  080913cece2a4539563c1ede5e6c901dcd7803fe \
:info:checksum                     sha256  387c8cd09b69595c3ff10c1610bcaf9ac4299c268941b226967ab0591cfba863 \
:info:checksum                     size    18055752
:error:checksum Failed to checksum openssl3: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
:debug:checksum     while executing
:debug:checksum "$procedure $targetname"
:error:checksum See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_openssl3/openssl3/main.log for details.

Change History (3)

comment:1 Changed 3 months ago by jmroot (Joshua Root)

Cc: larryv added
Keywords: invalid checksum removed
Owner: set to neverpanic
Status: newassigned

Seems OK here. Which mirror was your distfile downloaded from? (That isn't shown in the log you provided.)

See also wiki:FAQ#checksums

comment:2 Changed 3 months ago by michele-segata (Michele Segata)

Thank for the pointer in the FAQ, I didn't see it. I was already trying a port clean openssl3 with no success, but port clean --dist openssl3 did the trick. I probably had a corrupted file in my cache. Thanks for the help!

comment:3 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: assignedclosed

Hard to say what happened. It looks like you got a file that was the correct 18,055,752 bytes in size but for some reason its contents didn't match. Could have been a single-bit error. Glad you got it working.

Note: See TracTickets for help on using tickets.