Skip to content
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

Log refreshing stops after a few second #516

Closed
ncsibra opened this issue Jan 28, 2020 · 2 comments
Closed

Log refreshing stops after a few second #516

ncsibra opened this issue Jan 28, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@ncsibra
Copy link

ncsibra commented Jan 28, 2020




Describe the bug
Opening a log view with autoscroll stops refreshing after a few second.
Just opening the container view and pressing 'l' without any other interaction.

3:19PM INF 🐶 K9s starting up...
3:19PM DBG Active Context "dlv-sbx-cluster-eks-51cea26"
3:19PM DBG Setting active ns "sbx"
3:19PM DBG Connecting to API Server https://xxx
3:19PM INF ✅ Kubernetes connectivity
3:19PM DBG [Config] Saving configuration...
3:19PM DBG Loading raw config from flags...
3:19PM INF No context specific skin file found -- /home/ncsibra/.k9s/dlv-sbx-cluster-eks-51cea26_skin.yml
3:19PM INF No skin file found -- /home/ncsibra/.k9s/skin.yml. Loading stock skins.
3:19PM INF No benchmark config file found, using defaults.
3:19PM DBG Factory START with ns `"sbx"
3:19PM DBG Refreshing ClusterInfo...
3:19PM WRN Failed to load preferred resources error="unable to retrieve the complete list of server APIs: custom.metrics.k8s.io/v1beta1: the server could not find the requested resource"
3:19PM DBG Setting active ns "sbx"
3:19PM INF Viewing pods...
3:19PM DBG [Config] Saving configuration...
3:19PM DBG BROWSER started!
3:19PM DBG Table filter activated!
3:19PM INF Filter mode activated.
3:19PM DBG SHOW CONTAINERS "v1/pods" -- "sbx" -- "sbx/rabbitmq-0"
3:19PM DBG BROWSER Stopped!
3:19PM DBG BROWSER started!
3:19PM DBG Model canceled -- "v1/pods"
3:19PM DBG Refreshing ClusterInfo...
3:19PM WRN Failed to load preferred resources error="unable to retrieve the complete list of server APIs: custom.metrics.k8s.io/v1beta1: the server could not find the requested resource"
3:19PM DBG >>> Logs INIT
3:19PM DBG BROWSER Stopped!
3:19PM DBG Model canceled -- "containers"
3:19PM DBG Tailing logs for "sbx/rabbitmq-0" -- "rabbitmq"
Log file created at: 2020/01/28 15:19:57
Running on machine: ncsibra-pc
Binary: Built with gc go1.13.6 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
3:19PM DBG Refreshing ClusterInfo...
3:19PM WRN Failed to load preferred resources error="unable to retrieve the complete list of server APIs: custom.metrics.k8s.io/v1beta1: the server could not find the requested resource"
W0128 15:19:57.336355    4810 transport.go:243] Unable to cancel request for *exec.roundTripper
W0128 15:19:57.336673    4810 reflector.go:299] pkg/mod/k8s.io/client-go@v0.0.0-20190918160344-1fbdaa4c8d90/tools/cache/reflector.go:96: watch of *unstructured.Unstructured ended with: an error on the server ("unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)") has prevented the request from succeeding
W0128 15:19:58.287564    4810 transport.go:243] Unable to cancel request for *exec.roundTripper
W0128 15:19:58.287809    4810 reflector.go:299] pkg/mod/k8s.io/client-go@v0.0.0-20190918160344-1fbdaa4c8d90/tools/cache/reflector.go:96: watch of *unstructured.Unstructured ended with: an error on the server ("unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)") has prevented the request from succeeding
3:20PM DBG >>> Closing stream `sbx/rabbitmq-0
3:20PM DBG Refreshing ClusterInfo...
3:20PM WRN Failed to load preferred resources error="unable to retrieve the complete list of server APIs: custom.metrics.k8s.io/v1beta1: the server could not find the requested resource"
W0128 15:20:02.949127    4810 transport.go:243] Unable to cancel request for *exec.roundTripper
3:20PM DBG Refreshing ClusterInfo...
3:20PM WRN Failed to load preferred resources error="unable to retrieve the complete list of server APIs: custom.metrics.k8s.io/v1beta1: the server could not find the requested resource"
W0128 15:20:08.738075    4810 transport.go:243] Unable to cancel request for *exec.roundTripper
W0128 15:20:08.738327    4810 reflector.go:299] pkg/mod/k8s.io/client-go@v0.0.0-20190918160344-1fbdaa4c8d90/tools/cache/reflector.go:96: watch of *unstructured.Unstructured ended with: an error on the server ("unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)") has prevented the request from succeeding

Versions (please complete the following information):

  • OS: Manjaro Linux
  • K9s 0.13.5
  • K8s v1.14.9-eks-c0eccc
@derailed derailed added the bug Something isn't working label Jan 28, 2020
@DaemonDude23
Copy link
Sponsor

I've noticed the same behavior when tailing logs on an Nginx-Ingress Deployment.
k9s: v0.13.6

derailed added a commit that referenced this issue Feb 2, 2020
derailed added a commit that referenced this issue Feb 2, 2020
@derailed
Copy link
Owner

derailed commented Feb 2, 2020

@ncsibra @chicken231 Thank both for this report! Fixed v0.13.7.

@derailed derailed closed this as completed Feb 2, 2020
placintaalexandru pushed a commit to placintaalexandru/k9s that referenced this issue Apr 3, 2024
placintaalexandru pushed a commit to placintaalexandru/k9s that referenced this issue Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants