-
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 won't start if the default rpc port is used #28118
Comments
cc: @EricDavisX |
Pinging @elastic/agent (Team:Agent) |
At a minimum, we can probably detect this and put better error logging in place to help triage. |
Hi! We're labeling this issue as |
👍 This is causing issues for my org when a kubernetes deployment of a standalone agent on a cluster with a daemonset running on each node gets this error. |
After going line by line, the deployment and Daemonset cannot use the hostNetwork: True flag
Changed to False solved this error on our deployment to a Kubernetes cluster with the Daemonset already running. Possible documentation to prevent others from running into it? _Per this page: https://www.elastic.co/guide/en/fleet/master/running-on-kubernetes-managed-by-fleet.html Deploying Elastic Agent to collect cluster-level metrics in large cluster |
Thanks for this, saved us a bunch of time, we wanted to run synthetics browser monitors but as the normal DaemonSet requires runAsUser: 0 and synthetics requires runAsUser: 1000 we needed to combine hostNetwork: false and runAsUser: 1000 for that to work. Thanks |
EDIT: Just noticed I changed the wrong file: |
Hi! We're labeling this issue as |
Elastic Agent will bind to port 6789 by default, but when that port is used by another application, agent cannot be started.
Enrollment/installation (via fleet server) doesn't return any error, only INFO messages:
The messages indicate that the agent has been restarted, enrolled and installed... But agent is not running and all we see in Kibana is that the agent is "Updating"
Only journalctl shows the real problem:
So we have to edit
elastic-agent.yml
under /opt/Elastic/Agent, and add a different grpc port:And then run
/opt/Elastic/Agent/elastic-agent restart
Elastic Agent should at least identify this port collision during the installation and display an error message warning user about the problem
The text was updated successfully, but these errors were encountered: