Is elastic agent running?

I am trying to install fleet so after creating the policy and running the presented commands, the below is what I get. it fails.

curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.4.3-linux-x86_64.tar.gz
tar xzvf elastic-agent-8.4.3-linux-x86_64.tar.gz
cd elastic-agent-8.4.3-linux-x86_64
sudo ./elastic-agent install \
  --fleet-server-es=https://10.0.0.7:9200 \
  --fleet-server-service-token=xxxxxxxx \
  --fleet-server-policy=fleet-server-policy
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  382M  100  382M    0     0  88.8M      0  0:00:04  0:00:04 --:--:-- 95.1M
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/cloudbeat-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/osquerybeat-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/apm-server-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/cloudbeat-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/metricbeat-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/fleet-server-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/fleet-server-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/metricbeat-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/README.md
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/heartbeat-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/heartbeat-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/metricbeat-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/fleet-server-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/filebeat-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/.elastic-agent.active.commit
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/apm-server-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/endpoint-security-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/endpoint-security-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/NOTICE.txt
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/endpoint-security-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/filebeat-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/elastic-agent.reference.yml
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/cloudbeat-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/heartbeat-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/elastic-agent.yml
elastic-agent-8.4.3-linux-x86_64/LICENSE.txt
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/filebeat-8.4.3-linux-x86_64.tar.gz
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/osquerybeat-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/elastic-agent
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/osquerybeat-8.4.3-linux-x86_64.tar.gz.sha512
elastic-agent-8.4.3-linux-x86_64/data/elastic-agent-90167b/downloads/apm-server-8.4.3-linux-x86_64.tar.gz.asc
elastic-agent-8.4.3-linux-x86_64/.build_hash.txt
elastic-agent-8.4.3-linux-x86_64/elastic-agent
Elastic Agent is installed but currently broken: service exists but installation path is missing
Continuing will re-install Elastic Agent over the current installation at /opt/Elastic/Agent. Do you want to continue? [Y/n]:y
Error: failed to communicate with elastic-agent daemon; is elastic-agent running?
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.4/fleet-troubleshooting.html
Error: enroll command failed with exit code: 1

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.