Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: No such file or directory #151

Open
ghostsquad opened this issue Aug 9, 2023 · 2 comments
Open

Error: No such file or directory #151

ghostsquad opened this issue Aug 9, 2023 · 2 comments

Comments

@ghostsquad
Copy link

I have no idea what is going on. I'm just trying something like:

kubie exec test-cluster echo "hello"

and I get

CONTEXT => test-cluster
Error: No such file or directory (os error 2)

I don't see any options to increase verbosity in logging either to try to debug this.

Kubie version: 0.21.2
OS: MacOS Ventura 13.5

@TyBrown
Copy link
Contributor

TyBrown commented Aug 9, 2023

The usage of kubie exec is as follows:

Execute a command inside of the given context and namespace

USAGE:
    kubie exec [OPTIONS] <CONTEXT_NAME> <NAMESPACE_NAME> [ARGS]...

It looks like you missed the namespace argument in your example, so your command is trying to run the command hello in the echo namespace of the test-cluster cluster.

If you wanted to run with the default namespace as an example, your command would look like:

kubie exec test-cluster default echo "hello"

@ghostsquad
Copy link
Author

ghostsquad commented Aug 9, 2023

What a terrible error message for missing an argument and/or for trying to use the wrong namespace 😂. Maybe this issue can track improving the error message in such a case of fat fingering this? I'd contribute, but I don't know that much Rust. I tried tracing this error even in the source code and couldn't quite figure out where this was coming from.

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

No branches or pull requests

2 participants