I'm trying to install Elastic Agent 7.14.1 on Fleet Server 7.14.1 with the following commands:
On Windows 10:
.\elastic-agent.exe install -f --url=https://myfleetserver:8220 --enrollment-token=longapitoken --insecure
On CentOS:
sudo ./elastic-agent install -f --url=https://myfleetserver:8220 --enrollment-token=longapitoken --insecure
And I get the result:
Error: fail to enroll: fail to execute request to fleet-server: status code: 400, fleet-server returned an error: BadRequest
Error: enroll command failed with exit code: 1
For Linux I tried with yum install and downloading the elastic-agent-7.14.1-linux-x86_64.tar.gz from web. I also tried it with the enroll command instead of install. In any case the error is the same. I don't know what can I do. I looked here and Google, but I can't solve this yet. Any help will be appreciate!