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

Elastic Agent: agent inspect gives "unknown error" #18344

Closed
mtojek opened this issue May 7, 2020 · 4 comments · Fixed by #18405
Closed

Elastic Agent: agent inspect gives "unknown error" #18344

mtojek opened this issue May 7, 2020 · 4 comments · Fixed by #18405
Assignees
Labels
bug Ingest Management:alpha1 Group issues for ingest management alpha1

Comments

@mtojek
Copy link
Contributor

mtojek commented May 7, 2020

After successful enrollment to the fleet (status "online" in Kibana), I tried the following command:

[root@cab420969cda elastic-agent]# ./elastic-agent inspect
no fleet config retrieved yet: /go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/introspect_config_cmd.go[56]: unknown error
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@mtojek
Copy link
Contributor Author

mtojek commented May 7, 2020

I came to this issue, because I don't see any filebeat or metricbeat running:

[root@379cfb2dc534 elastic-agent]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.2 567840 17308 ?        Ssl  11:03   0:00 elastic-agent run
root       172  0.0  0.0  11836  3032 pts/0    Ss   11:06   0:00 /bin/bash
root       208  0.0  0.0  51764  3500 pts/0    R+   11:19   0:00 ps aux

The image is unusable at the moment, it looks like agent doesn't pull any configs.

@ph ph added the Ingest Management:alpha1 Group issues for ingest management alpha1 label May 7, 2020
@ph ph added the bug label May 7, 2020
@michalpristas
Copy link
Contributor

looks correct, you enrolled and fleet havent sent a configuration just yet,
it says in the beginning no fleet config retrieved yet so there's nothing to inspect.
i can improve error message so it does not contain all the things coming out thanks to our custom error types but i think behavior is correct

@mtojek
Copy link
Contributor Author

mtojek commented May 8, 2020

Thank you for taking look into this. If this is a correct behavior, then agree - the output should be improved.

/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/introspect_config_cmd.go[56]: unknown error - it's not an error in this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Ingest Management:alpha1 Group issues for ingest management alpha1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants