-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 status: elastic-agent-control.sock: connect: no such file or directory #24956
Comments
Pinging @elastic/agent (Team:Agent) |
Ah I forgot that the container is used that STATE_PATH to adjust its path, ensuring that state is maintained across restarts of the container. Hmm, need to figure out how to make this command work in the container. |
Do you think it's possible to include some integration tests with real agent's Docker container? Many of such issues slips through standard unit tests and I'm afraid that end-to-end testing is too late. /cc @ruflin |
Being that the docker container requires actually packages of at least We need the testing of e2e to be complete it is already a requirement for passing with |
I see, let me share my feedback - I have feeling (maybe wrong?) that end-to-end tests are the first candidate to be ignored if there are other, potentially flaky, problems with PRs in Beats. That's why I'm wondering if any testing part can be improved to fail fast in case of inconsistencies or errors. In general end-to-end tests take much time to run, so it would be better to target some quick smoke tests. |
Hi, it would be nice to give this issue higher priority. It seems to be the last piece of the container lifecycle. |
I looked a bit into the code around this. It seems to be related to the STATE_PATH that is set differently when run with container. I can think of two solutions:
My preference is on option one, as it would make sure other commands could also use it directly without having to pass in STATE_PATH and potentially other vars every time. |
A lousy thought to what @ruflin wrote: I believe the default setup should work out of the box without additional flags like STATE_PATH. This looks to me as leaking internals that a standard user wouldn't need to know about. |
One more reason a prefer option 1. STATE_PATH is set internally by the container commands and should afterwards automatically be respected by other commands. |
Yes this should work out of the box, setting |
Hi,
I tried to integrate with
elastic-agent status
, but it always fail with:More data:
Missing
state
?The text was updated successfully, but these errors were encountered: