k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Log entry is missing

Open varac opened this issue 4 years ago • 4 comments




Describe the bug When I look at a pod's log in k9s, I don't see every line. Looking with kubectl shows the missing line.

To Reproduce

Steps to reproduce the behavior:

  1. Show the logs of a failing Nextcloud cron job installed by the NC helm chart (i.e. one where NC is set to use system cron)
  2. Show the same pod's logs with kubectl
  3. Compare the difference, kubectl shows the error while k9s doesn't

Expected behavior Both should show exactly the same lines.

Screenshots

k9s:

image

kubectl:

❯ kc -n stackspin-apps logs nc-nextcloud-cron-27468605-g5flj
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    77  100    77    0     0     15      0  0:00:05  0:00:05 --:--:--    17
{"data":{"message":"Backgroundjobs are using system cron!"},"status":"error"}%     

Versions (please complete the following information):

  • OS: PopOS 21.10
  • K9s: v0.25.18
  • K8s: k3s v1.23.1+k3s2

I tried to find out if this is a duplicate of i.e. #1483 but I was unsure about it, feel free to close it if it is.

varac avatar Mar 24 '22 10:03 varac

Btw, this is critical, because if my colleague would not have used kubectl instead of k9s, we would never have noticed ...

varac avatar Mar 24 '22 10:03 varac

No news about this? We are experiencing the same here.

kinoute avatar May 10 '23 12:05 kinoute

Same problem here. We often have to fallback on kubectl logs command to debug

dod38fr avatar Jul 05 '23 08:07 dod38fr

I've also just experienced this. It seems to be when the log updates too quickly, some updates maybe missed. A guess maybe that a buffer might be too small for the amount of updates that need to be displayed.

trexx avatar Jul 11 '24 08:07 trexx