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

Fail to start if the shipper is enabled but the shipper executable cannot be found #2446

Closed
Tracked by #16
cmacknz opened this issue Apr 3, 2023 · 6 comments
Closed
Tracked by #16
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team

Comments

@cmacknz
Copy link
Member

cmacknz commented Apr 3, 2023

When starting elastic-agent with a configuration file that enables shipper, but the agent fails to resolve the elastic-agent-shipper component, should fail instead of falling back to Filebeat.

The reason behind this was that when I tried to use the agent with the shipper and I had not previously set up a configured agent to include shipper, it fall back to filebeat giving me the wrong assumption that initially, it worked.
I found that there was a problem with the packaging after doing some investigation as to why I was not seeing the results I was expecting.

Originally reported by @alexsapran

@cmacknz cmacknz added bug Something isn't working Team:Elastic-Agent Label for the Agent team labels Apr 3, 2023
@cmacknz cmacknz changed the title Elastic-Agent should fail if shipper is not found Fail to start if the shipper is enabled but the shipper executable cannot be found Apr 3, 2023
@pierrehilbert
Copy link
Contributor

@cmacknz / @leehinman could we close this one with the new shipper plan?

@cmacknz
Copy link
Member Author

cmacknz commented May 4, 2023

Still relevant, but the chances this bug is hit are significantly reduced. Dropped to P3.

@blakerouse
Copy link
Contributor

@cmacknz If the specification file is present and not a binary the Elastic Agent will fail to start. I think the issue here is that packaging doesn't include the specification file unless it can fetch the binary. So this is not really an issue with the Elastic Agent itself.

@leehinman
Copy link
Contributor

I think the issue here is that packaging doesn't include the specification file unless it can fetch the binary. So this is not really an issue with the Elastic Agent itself.

But it would be nice if elastic-agent gave some kind of message that it has a policy that says "start component X" but it doesn't have component X (maybe missing spec file or some other reason).

@blakerouse
Copy link
Contributor

blakerouse commented May 11, 2023 via email

@jlind23
Copy link
Contributor

jlind23 commented Oct 20, 2023

@pierrehilbert could this be closed as it is probably not relevant anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

5 participants