k9s freezes when left open for a short period of time

Created on 4 Jun 2020  ·  4Comments  ·  Source: derailed/k9s






Describe the bug
I am using k9s with EKS. Since upgrading to 0.20.x I am finding that if I have been running k9s for a little while it completely locks up and I cannot use :q or ctrl+c to exit the application. I believe this may be related to refreshing cached credentials, the logs show the following...

5:18PM INF 🐶 K9s starting up...
5:18PM INF ✅ Kubernetes connectivity
5:18PM INF No context specific skin file found -- /Users/christaylor/.k9s/eks_cronofy-staging_skin.yml
5:18PM INF No skin file found -- /Users/christaylor/.k9s/skin.yml. Loading stock skins.
5:18PM ERR Custom view load failed /Users/christaylor/.k9s/views.yml error="open /Users/christaylor/.k9s/views.yml: no such file or directory"
5:18PM ERR CustomView watcher failed error="lstat /Users/christaylor/.k9s/views.yml: no such file or directory"
5:25PM ERR K9s can't connect to cluster error="the server has asked for the client to provide credentials"
5:25PM WRN Conn check failed (1/15)
5:25PM ERR reconcile failed "v1/pods"::"" error="ACCESS -- No API server connection"

In this case, I had started k9s and left it on the pods screen, after a while I pressed 0 to switch to viewing all pods and that's when I noticed the application had locked up.

To Reproduce
Steps to reproduce the behavior:

  1. Start k9s
  2. Leave it running for some time, in my case it happened after 7 minutes.
  3. The application locks up.

Expected behavior
The application to not lock up, successfully refresh credentials and carry on

Versions:

  • OS: macOS Catalina 10.15.5
  • K9s: 0.20.3
  • K8s : 1.14.9
bug

Most helpful comment

@phr3nzii Thank you for the report! Great catch!! Should happier on v0.20.4!

All 4 comments

I am also experiencing a lot of freezes and Dial K8s failed (1) issues on our eks clusters.

Me too, also on EKS, (K9S 0.20.3) it seems that if you spot the Dial K8S message quick enough you can quit out, but if left, it will freeze

@phr3nzii Thank you for the report! Great catch!! Should happier on v0.20.4!

Thanks, @derailed. Amazingly fast resolution! It's much better today, I haven't had a single crash! 😄

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChrisCooney picture ChrisCooney  ·  3Comments

signaleleven picture signaleleven  ·  3Comments

rahilb picture rahilb  ·  3Comments

RothAndrew picture RothAndrew  ·  3Comments

krysopath picture krysopath  ·  3Comments