Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Log refreshing stops after a few second #516

@ncsibra

Description

@ncsibra




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/[email protected]/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/[email protected]/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/[email protected]/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions