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

unable to run ktail #21

Closed
lakamsani opened this issue Oct 3, 2022 · 8 comments
Closed

unable to run ktail #21

lakamsani opened this issue Oct 3, 2022 · 8 comments

Comments

@lakamsani
Copy link

~ ktail --version
ktail 1.0.1

 ktail  foo-pod -n foo
stat /Users/vamsee.lakamsani/.kube/lab.yaml:/Users/vamsee.lakamsani/.kube/config no such file or directory%

kubectl works fine in the same terminal. Context is already set with cluster and namespace using kubectl config use-context. Same issue with the --context flag as well. Somethi

@atombender
Copy link
Owner

That's an old version. Try installing the latest one.

@lakamsani
Copy link
Author

lakamsani commented Oct 3, 2022

That run was from the binary installed using hombrew instructions.

Jut pulled the latest from the main branch and built it. Shows the same version and has the same error.

➜  ktail git:(main) git remote -v
origin	https://github.com/atombender/ktail (fetch)
origin	https://github.com/atombender/ktail (push)
➜  ktail git:(main) go build
➜  ktail git:(main) ./ktail --version
ktail 1.0.1

Should I build from a different branch?

@lakamsani
Copy link
Author

Another engineer on my team is seeing the same problem.

@atombender
Copy link
Owner

atombender commented Oct 3, 2022

Your Homebrew must be out of date, and you must have forgotten to do a git pull.

You have to do one of the following:

  • brew up && brew upgrade ktail
  • git pull && go build -o ktail .
  • Download one of the binaries from the releases page

@lakamsani
Copy link
Author

lakamsani commented Oct 3, 2022

I cloned this repo for the first time today. So git pull is not the issue. https://github.com/atombender/ktail/blob/v1.3.0/version.go#L7 still shows 1.0.1 although the releases directory shows 1.3.0. Anyways, neither local build nor binary download work. We will look into using stern or kubetail unless you have any other suggestions to try. Thanks.

@lakamsani
Copy link
Author

We are using go version go1.19.1 darwin/amd64 btw.

@atombender
Copy link
Owner

I see your problem now; you have two files in your KUBECONFIG path. I've just pushed a fix tagged as 1.3.1 that should fix this. Also, the version printed on --version was out of date.

@lakamsani
Copy link
Author

That works. Thank you very much.

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

2 participants