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

kubetail returns blank logs even when kubectl logs works OK #122

Open
pctyjkang opened this issue Jun 6, 2021 · 9 comments
Open

kubetail returns blank logs even when kubectl logs works OK #122

pctyjkang opened this issue Jun 6, 2021 · 9 comments

Comments

@pctyjkang
Copy link

Versions

os: CentOS 7

kubectl

clientVersion:
  buildDate: "2021-05-12T11:29:07Z"
  compiler: gc
  gitCommit: ac0cc736d0018d817c763083945e4db863168d12
  gitTreeState: clean
  gitVersion: v1.18.19
  goVersion: go1.13.15
  major: "1"
  minor: "18"
  platform: linux/amd64
serverVersion:
  buildDate: "2021-01-13T13:14:05Z"
  compiler: gc
  gitCommit: 73dd5c840662bb066a146d0871216333181f4b64
  gitTreeState: clean
  gitVersion: v1.18.15
  goVersion: go1.13.15
  major: "1"
  minor: "18"
  platform: linux/amd64

kubetail: 1.6.13

Issue

Need some advice on diagnosing.

kubectl logs <pod_name> seems to work okay.

However kubetail does not return any logs (though it does discover the pods). Same result for specifying just 1 pod. The buffer seems empty and when I hit ENTER it acts like stdout is hung and returns a line.

@johanhaleby
Copy link
Owner

Thanks for the issue. I don't have centos myself so it's really hard for me to debug this :/ I would gladly accept a PR (given that it doesn't break stuff for everyone else of course :)) but I'm not sure I can personally do anything about it at this moment. I have MacOSX and some of my colleagues have Ubuntu at it works well for all of us.

@gergan
Copy link

gergan commented Feb 22, 2024

I'm hitting the same problem on MacOS it just hangs and does not show anything

@johanhaleby
Copy link
Owner

johanhaleby commented Feb 22, 2024 via email

@gergan
Copy link

gergan commented Feb 22, 2024

No, I wanted to but it shows only the pod names and after that it just sits there. I have now search for other tools and have installed stern, this one works - so I don't know what the problem could be. Using iTerm and zsh so pretty normal MacOS configuration

@johanhaleby
Copy link
Owner

johanhaleby commented Feb 22, 2024 via email

@gergan
Copy link

gergan commented Feb 26, 2024

sorry for the late response - yes the last version on the main branch worked out of the box

@johanhaleby
Copy link
Owner

@gergan Thanks for your input. Just to be clear, it worked out of the box when you added "-b false" right? I'm thinking about whether to make this default to avoid confusion.. But I'm not sure what impact it'll have to disable buffering by default.

@gergan
Copy link

gergan commented Feb 26, 2024

No, I mean really out of the box - I don't know what has changed, but it worked without any additional flags

@johanhaleby
Copy link
Owner

@gergan Oh okay, interesting. I should make a new release then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants