I'm trying to install fleet server 7.15 on an Ubuntu 20.04 machine but I'm running into a port conflict since 127.0.0.1:6789 is already in use by another application. I found a post that suggested running
./elastic-agent -c elastic-agent.yml -e
which showed:
Error: listen tcp 127.0.0.1:6789: bind: address already in use
I searched elastic-agent.yml and found the port number 6789 in the config file. I removed the comments from that section and changed the port number to 6788:
agent.grpc:
# listen address for the GRPC server that spawned processes connect back to.
address: localhost
# port for the GRPC server that spawned processes connect back to.
port: 6788
Running the command again showed the same message. Searching google I found the follow topic with a similar issue on 7.10:
https://discuss.elastic.co/t/failed-to-cleanup-run-elastic-agent-sock/259809
I copied the three lines from that post into my config file and ran the same command but that too was ignored. Finally I tried moving the lines to the top of the config file but that also failed. Has anyone else been able to change the port with version 7.15? If it makes any difference I'm using the linux .tar.gz version of elastic-agent.