derailed / k9s

🐶 Kubernetes CLI To Manage Your Clusters In Style!
https://k9scli.io
Apache License 2.0
26.95k stars 1.69k forks source link

0.19.0 - Windows x64 binary does not work #651

Closed cristichiru closed 4 years ago

cristichiru commented 4 years ago




TL;DR: WinRAR archiver was old (5.21) and corrupting .tar.gz extracted files. Newer or 7zip extracts correctly the k9s binary.

Describe the bug Windows x64 binary does not run in the release 0.19.0. The i386 (32bit) variant works.

To Reproduce

  1. Download 0.19.0 https://github.com/derailed/k9s/releases/download/v0.19.0/k9s_Windows_x86_64.tar.gz
  2. Extract and run

Expected behavior Program should run as expected.

Screenshots image

Versions (please complete the following information):

Additional context

  1. Does not seem to be the antivirus blocking it (Disabled Windows defender, and Kaspersky does not see it as a threat)
  2. Previous k9s versions ran just fine.
  3. sigcheck says is 64 bit exec, but no version info
    
    Sigcheck v2.73 - File version and signature viewer
    Copyright (C) 2004-2019 Mark Russinovich
    Sysinternals - www.sysinternals.com

d:\downloads\k9s_windows_x86_64\k9s.exe: Verified: Unsigned Link date: 03:00 1970-01-01 Publisher: n/a Company: n/a Description: n/a Product: n/a Prod version: n/a File version: n/a MachineType: 64-bit

4. Running from bash for windows:

λ ./k9s.exe bash: ./k9s.exe: cannot execute binary file: Exec format error


5. Opening it with hiew, or other PE info software gives errors, while with previous x64 builds does not.
derailed commented 4 years ago

@cristichiru Thank you for reporting this! I don't think I've changed k9s deployment in 0.19.0. We did however bump k8s deps and go to 1.14.1. Wondering if this has broken us but don't have access to a windows box at the moment.

Anywhere here on windows can help us track this down? Thank you!!

cristichiru commented 4 years ago

This problem disappeared with 0.19.1, seems to be a glitch only with 0.19.0!

derailed commented 4 years ago

@cristichiru Woosh Happy to hear this! Thank you for reporting back Cristian!

cristichiru commented 4 years ago

The problem seemed to be back with 0.20.1. However, this time it felt way too strange. So I have used a different machine, and 7zp to extract. It worked.

Tried 7zip on my machine, it worked fine. Installing via scoop, works fine.

Turns out it was my old WinRAR that would sometimes corrupt the files when extracting. Upgrading Winrar to latest (5.90) extracted the tar.gz correctly.

I am very sorry for assuming that it was something with the release exe. I have tested again 0.19.0 and it's fine. Thank you for this awesome tool!