derailed / k9s

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

Unable to install k9s with webi #2832

Open Jaryllan opened 2 months ago

Jaryllan commented 2 months ago




Describe the bug The following error shown when run the webi installer. curl -sS https://webinstall.dev/k9s | bash. Similar issue as mentioned in this issue #2697 Error: no 'k9s@stable' release for 'linux' (gnu) on 'x86_64' as one of 'tar,exe,xz,git,dmg'. Could it be due to the webi script detected "x86_64", in which the k9s releases does not have it?

To Reproduce

  1. curl -sS https://webinstall.dev/k9s | bash

Historical Documents

Expected behavior Install successfully

Screenshots If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

KevinGimbel commented 2 months ago

Hi there, according to the website the install command is curl -sS https://webi.sh/k9s | sh - did you try this as well?

Jaryllan commented 2 months ago

Yes. the command curl -sS https://webi.sh/k9s | sh is also showing the exact same error.

KevinGimbel commented 2 months ago

Thanks, I checked in a Fedora box and I get the same issue.

The URL https://webi.sh/api/releases/k9s@stable.tab?os=linux&arch=aarch64&libc=gnu&formats=tar,exe,zip,xz,git,dmg&pretty=true shows there's a recent releases as new as 0.32.5, so from what I can tell this should be installed.

I'm not familiar with the webinstall.dev tool but will try and investigate more.

KevinGimbel commented 2 months ago

There's already an issue reported here, will see what they say :) https://github.com/webinstall/webi-installers/issues/875

coolaj86 commented 2 months ago

I will look into this today, as soon as I can.

I have handled arch aliases as best as I can in automatic fashion, but it's possible the listing structure has changed in a way that can't easily be automated.

It's also possible a staggered release file lead to a bad cache of the json output or something like that. I'll find out.

coolaj86 commented 2 months ago

Is anyone still having this issue?

I can't reproduce, so I think that the problem here was a temporary cache issue, possibly due to undesired behavior in the release mechanism of k9s (i.e. some projects create release tags with source files several hours before the manual or CI/CD processes uploadthe binary files, which can result in a valid release, with valid files, but where none match).

Can any of the k9s managers chime in here? ^^

A possible fix on my end could be to change the semantics of "stable" to include not just the Release Tag, but also "at least 24 hours old", which I think would be reasonable lag.

More discussion on ideas here: https://github.com/webinstall/webi-installers/issues/875#issuecomment-2297267236

KevinGimbel commented 2 months ago

Can confirm it is now working on Fedora!

@Jaryllan can you check again please?

If it is working for you as well, please close this issue. Thanks! :)