OpenLens icon indicating copy to clipboard operation
OpenLens copied to clipboard

OpenLens 6.3.0 arm64 brew installation error

Open qrnik opened this issue 2 years ago • 9 comments

OpenLens 6.3.0 arm64 does not install on macOS via brew due to SHA mismatch

~ ❯ brew install --cask openlens                                                                                                                                                                                                                                                                                                                                   
==> Downloading https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.3.0/OpenLens-6.3.0-arm64.dmg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/497304002/019dc6d5-ba82-4b3d-800f-5aadb87a39a4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230102%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230102T141506Z&X-Amz-Expires=300&X-Amz-Signature=22bde4ffdc3d5150eb63009a3996860acbb01e76f81
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 71c8a86161d17143251e6a9bf202d7d014573a6c6906c06f5d9ece33c2889f06
  Actual: bd356557c1518f7e2d95166de4d0abfff6e4c49141c060fe7e3eef2a0303a1f5

qrnik avatar Jan 02 '23 14:01 qrnik

I have the same problem

juliocesarsantos1020 avatar Jan 02 '23 14:01 juliocesarsantos1020

The same error for the x86_64 arch. Seems the sha is updated wrong in the cask.

sha in cask for x86_64 a3dcac335e75f267bfd3f98f6911fd831ac8688de60dbe68399cb0746087e2cf And arms is 71c8a86161d17143251e6a9bf202d7d014573a6c6906c06f5d9ece33c2889f06 Taken from here https://formulae.brew.sh/api/cask/openlens.json.

While the asset sha are different x86_64 https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.3.0/OpenLens-6.3.0.dmg.sha256 arm https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.3.0/OpenLens-6.3.0-arm64.dmg.sha256

The asset sha seems to be the right ones, if I take the sha of the downloaded dmg.

Temporary fix.

brew edit openlens And change the sha from the assets which are for x86_64 2eb1848bb189041c4475054631a5b33a8ccd00c6eedbb74776b3dd1f54db7898 for arm bd356557c1518f7e2d95166de4d0abfff6e4c49141c060fe7e3eef2a0303a1f5

biswanaths avatar Jan 02 '23 14:01 biswanaths

Also you can directly install the dmg arm https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.3.0/OpenLens-6.3.0-arm64.dmg and x86_64 using https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.3.0/OpenLens-6.3.0.dmg

biswanaths avatar Jan 02 '23 14:01 biswanaths

Thanks @biswanaths! I was able to install as you said. But I have a problem, when I connect to the cluster nothing appears. Captura de Tela 2023-01-02 às 12 16 44

juliocesarsantos1020 avatar Jan 02 '23 15:01 juliocesarsantos1020

@juliocesarsantos1020 Please use dmg 6.2.5 version, which seems to be working fine. Not sure what else is the problem with 6.3.0. Has not tested any higher version though.

arm https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.2.5/OpenLens-6.2.5-arm64.dmg and x86_64 using https://github.com/MuhammedKalkan/OpenLens/releases/download/v6.2.5/OpenLens-6.2.5.dmg

biswanaths avatar Jan 02 '23 15:01 biswanaths

Thank you very much

juliocesarsantos1020 avatar Jan 02 '23 15:01 juliocesarsantos1020

My bad there is this issue with https://github.com/MuhammedKalkan/OpenLens/issues/81 This is fixed in master and will probably released in 6.4.

biswanaths avatar Jan 02 '23 15:01 biswanaths

Also got the same error using mac m1

Yoniseg avatar Jan 02 '23 16:01 Yoniseg

I got it

juliocesarsantos1020 avatar Jan 02 '23 18:01 juliocesarsantos1020

See 6.4.0 and open new if still exists

MuhammedKalkan avatar Jan 12 '23 15:01 MuhammedKalkan