Fleet installation script fails to detect error in service start #117
Labels
8.5-candidate
Agent
bug
Something isn't working
debugging
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Description
elastic-agent install
fails to detect a problem in service start and report misleading message:Installation was successful and Elastic Agent is running
, even though service hasn't been able to start (ie: due to a process already binded in port 6789)Script should at least notify that agent was installed but there was a problem starting the service.
How to reproduce the bug
Installation script reports
Installation was successful and Elastic Agent is running.
but agent is never enrolled in Kibana Fleet UIjournalctl -u elastic-agent.service
we can see the process wasn't able to start due to the address already in useWorkaround
We can change the default port in
/opt/Elastic/Agent/elastic-agent.yml
from 6789 to ie 16789:And then restart the service and check that service is up:
The text was updated successfully, but these errors were encountered: