Icinga / icinga-packaging

Packaging documentation and issues for the official Icinga repository
https://packages.icinga.com
44 stars 15 forks source link

v2.14.2 checksum error #303

Open mariianii opened 4 months ago

mariianii commented 4 months ago

I'm trying to install icinga 2.14.2 on a Windows Server 2022 Standard using Chocolatey V2.2.2. During the install I get the following error:

Download of Icinga2-v2.14.2-x86_64.msi (11.3 MB) completed. Error - hashes do not match. Actual value was 'A85D0FD92DDAE1932EA65970E870248D077BD123FCBA88058C22EA38D94A3C44'. ERROR: Checksum for 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\icinga2\2.14.2\Icinga2-v2.14.2-x86_64.msi' did not meet '8EC21FF197E82945263F63482BD8F280FDFD4E35BD766C0B162B849EF44CD940' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary. The install of icinga2 was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\icinga2\tools\chocolateyInstall.ps1'. See log for details.

Can someone explain to me where the sha256 sum comes from? Is it from the icinga repo or somewhere in the msi? And why is the checksum different from what the installer is expecting?

Al2Klimov commented 4 months ago

Should work now again.

eedsele commented 3 months ago

Hi, looks like I have the same issue today.

Downloading icinga2 64 bit
  from 'https://packages.icinga.com/windows/Icinga2-v2.14.2-x86_64.msi'

Download of Icinga2-v2.14.2-x86_64.msi (11.29 MB) completed.
ERROR: Checksum for 'C:\Users\Administrator\AppData\Local\Temp\chocolatey\icinga2\2.14.2\Icinga2-v2.14.2-x86_64.msi' did not meet '8EC21FF197E82945263F63482BD8F280FDFD4E35BD766C0B162B849EF44CD940' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
The install of icinga2 was NOT successful.

Many thanks for investigating.

oxzi commented 3 months ago

@eedsele: Thanks you very much for reporting this issue.

How are you exactly trying to install Icinga 2? Is this output also from Chocolatey? And which SHA256 value does your downloaded msi file has?

When just downloading the file, I get the expected checksum.

$ wget https://packages.icinga.com/windows/Icinga2-v2.14.2-x86_64.msi
--2024-07-01 09:05:29--  https://packages.icinga.com/windows/Icinga2-v2.14.2-x86_64.msi
Resolving packages.icinga.com (packages.icinga.com)... 185.233.189.126
Connecting to packages.icinga.com (packages.icinga.com)|185.233.189.126|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11837392 (11M) [application/x-msi]
Saving to: ‘Icinga2-v2.14.2-x86_64.msi’

Icinga2-v2.14.2-x86_64.msi          100%[==================================================================>]  11.29M  29.7MB/s    in 0.4s

2024-07-01 09:05:30 (29.7 MB/s) - ‘Icinga2-v2.14.2-x86_64.msi’ saved [11837392/11837392]

$ sha256sum Icinga2-v2.14.2-x86_64.msi
8ec21ff197e82945263f63482bd8f280fdfd4e35bd766c0b162b849ef44cd940  Icinga2-v2.14.2-x86_64.msi
Al2Klimov commented 3 months ago

FWIW

Bildschirmfoto 2024-07-01 um 15 52 00