-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rancher Desktop GUI is hidden if the k3s releases cannot be fetched from GitHub #7853
Comments
That's fine? It just means you don't have a cache (probably a factory reset or equivalent), so it's just going to download the list of k3s versions off the internet. |
It is not fine because it does not display any UI at all. The window doesn't show up, and the notification icon is not created either. But the processes are running. The file is never downloaded (I think, maybe rarely it is). You cannot restart the app because it will immediately exit because it is a second instance. You can kill the 4 running processes with task-manager, but most likely the same thing is going to happen again. What works is killing the processes and manually copying the file into the cache directory. It still is weird though, as the settings file will have Kubernetes enabled, but the version set to the empty string. So once I copy the file into the cache directory, Rancher Desktop picks the lowest available version (1.21.0 or something like it) instead of the current stable version. Of course this is all secondary, the user should not end up in this situation to begin with, and it is not realistic to expect them to copy the versions file manually. |
Right, so the fact that the cache is missing is fine. The fact that the app doesn't start up when the cache is missing (or possibly, due to a different issue, depending on what's going on) isn't fine. But as written, the issue just has the (probable) red herring. |
See rancher-sandbox#7853 You need to copy k3s-versions.json into the BATS directory to activate the workaround. Signed-off-by: Jan Dubois <[email protected]>
Yes, this is what this issue is about, that the GUI does not show up. Likely related to #7461, which may not be working the way it claims it does. The contents of A secondary issue might be figuring out why the file does not exist, but that is a situation that can legitimately exist (but I don't think is the case here). |
See rancher-sandbox#7853 You need to copy k3s-versions.json into the BATS directory to activate the workaround. Signed-off-by: Jan Dubois <[email protected]>
The problem turns out fetching GitHub releases failing due to rate limits:
Issue #7877 will bundle This is remains open and should cover aborting the retries for fetching k3s releases from GitHub: if we get a failure, we just give up and continue with the current list (falling back to the bundled list if the current list has been deleted). |
If we had a current list, this would never happen (the update would run in the background), so this would not have been an issue. Remember that the cache file had to be deleted first to trigger the issue. Currently, we can't manage without the version list existing; things just fall over because we assume at least one k3s version is available. (Which is why we block showing the UI until the versions list has been fetched.) #7877 would fix things. But otherwise, we have too much logic depending on some version existing to solve this reasonably. |
See rancher-sandbox#7853 You need to copy k3s-versions.json into the BATS directory to activate the workaround. Signed-off-by: Jan Dubois <[email protected]> Signed-off-by: Matej Kramny <[email protected]>
Update: The missing GUI seems to be due to not being able to fetch k3s releases from GitHub and not due to the version channel not returning useful data.
I've been getting this error many times on Windows. Rancher Desktop doesn't show the GUI at all, but has 4 processes running in the background. The
background.log
file is completely empty butk8s.log
contains this error:The text was updated successfully, but these errors were encountered: