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
"yaml: line 15: could not find expected ':'" error #2435
Comments
OS: Rocky Linux 9.3 |
OS: Windows 10 Same problem. It seems to be related to the config file generated for the cluster (k9s/clusters/[yourCluster]/config.yaml). |
I also wiped the config folder and still got it, so I'm not sure where it's finding that yaml, unless its somewhere else on my system |
@huang-jy Looks like something else if going on with your kubeconfig?? since no current context seems to be set. |
Yes it does still work, I deleted the config and regenerated it using the gcloud binary (my cluster is a gke based cluster) |
@huang-jy Tx for the details! Are we still unhappy after the kubeconfig regen? |
Side note, I see a new version of k9s which errored on first boot:
Wiping the folder, also panics
|
I'm able to use OpenLens/Lens with that config without issue (and indeed that's my alternative while I can't use k9s) |
OS : Centos 9 |
@derailed so, interesting finding. I debugged this and tried to get k9s running in an archlinux container. The version of the app available on the archlinux repository is 0.29.1 (a few versions behind), but after a bit of tinkering, k9s loaded, so I tested 0.29.1 on my local machine, and it WORKED. So between 0.29.1 and 0.30.8 something broke. Testing all versions leads me to this: 0.29.1: ✅ At 0.30.0, k9s bails on boot:
So I guess in the meantime, people should use 0.29.1 |
@huang-jy Thank you for the details! Interesting!! I've tested on gke as well and can't seem to repro ;( The latest error is expected as your root k9s config is not up to snuff (see v0.31.0) rel notes Could you update to v0.31.1 and share the following outputs: Thanks you for your patience and helping us zero in on root cause! |
k9s info
k9s -l debug
k9s -l debug --context XXX
k9s config (/home/{username}/.config/k9s/config.yaml)
kubeconfig current context config.yaml (since I wiped this and regenerated it, there's only really one item -- have redacted cluster names, etc.)
|
@huang-jy Thank you for the details! Ok let's see if we can get back to the original error... o Please update k9s to the latest rev v0.31.2 should be out. |
And inside the yaml..... we have the culprit :-)
Yes, there's an erroneous Next question to answer is how it got there in the first place |
@huang-jy Thank you so much for reporting back and your details here! |
it existed, I didn't think to check or delete this file because I didn't know k9s stored a config in ~/.local/share/ |
@huang-jy Not sure if this is a flake or not? I think I may have found an issue?? Please give v0.31.3 a rinse. |
K9s Rev: v0.31.8
Worked after removing "Gates" and everything underneath. |
Check log from below file : Then delete target cluster directory : |
* allow k9s to run with errors * fixes derailed#2459 derailed#2458 derailed#2454 derailed#2435 * v0.31.3 rel notes
* allow k9s to run with errors * fixes derailed#2459 derailed#2458 derailed#2454 derailed#2435 * v0.31.3 rel notes
Describe the bug
yaml: line 15: could not find expected ':'
To Reproduce
Steps to reproduce the behavior:
0
on keyboard)yaml: line 15: could not find expected ':'
messagek9s log shows the following:
Expected behavior
No errors
Screenshots
Versions (please complete the following information):
Additional context
I have tried wiping the k9s config folder, and also wiping and regenerating my kube config. I'm not sure which yaml k9s is referring to.
The text was updated successfully, but these errors were encountered: