# Elastic agent RPM doesn't work, neither does Fleet anymore

**URL:** <https://discuss.elastic.co/t/elastic-agent-rpm-doesnt-work-neither-does-fleet-anymore/239679>\
**Category:** Beats\
**Tags:** elastic-agent\
**Created:** [July 2, 2020, 4:49pm UTC](https://discuss.elastic.co/t/elastic-agent-rpm-doesnt-work-neither-does-fleet-anymore/239679 "2020-07-02T16:49:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sej7278](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sej7278](https://discuss.elastic.co/u/sej7278)\
**Post date:** [July 2, 2020, 4:49pm UTC](https://discuss.elastic.co/t/elastic-agent-rpm-doesnt-work-neither-does-fleet-anymore/239679/1 "2020-07-02T16:49:38Z")

</div>

elastic-agent-7.8.0-x86\_64.rpm on centos 8.2 seems to be corrupt, it installs ok, but when you try to enroll it it seems to be looking in the bin directory for the config and all sorts:

```auto
$ elastic-agent enroll https://elastic.local:5601 X2x4VEQblahV0xXZDhZU0J6b2I6ajNRQmhblahblahUkktTXdGdw==
Error: unknown command "/usr/share/elastic-agent" for "elastic-agent"
Run 'elastic-agent --help' for usage.
unknown command "/usr/share/elastic-agent" for "elastic-agent"

$ /usr/share/elastic-agent/bin/elastic-agent inspect
open /usr/share/elastic-agent/bin/elastic-agent.yml: no such file or directory

```

After giving up and uninstalling it and rebooting, the "Fleet" link in Kibana now just sits there spinning, whereas before it went through the create user steps [here](https://www.elastic.co/guide/en/ingest-management/current/ingest-management-getting-started.html#agent-fleet-mode). Is there a way to undo whatever that does to "reset" Fleet so its not broken?

The tarball got me slightly further (probably as it has ships with some config!) but doesn't seem to be able to cope with self-signed CA certs as created by certutil, but that's discussed here:

> <https://github.com/elastic/beats/issues/19504>
>
> Consider: Agent runs in managed mode and the Kibana instance it is connecting to… is configured with a custom certificate authority that is not globally trusted in order to connect to Elasticsearch. 
> 
> IIUC the agent config that is shipped to the Agent from Kibana does not include that custom certificate authority setup and the certificate authority certs are also not shipped as assets to the agent. I believe the programs relying on the output configuration will in that case just fail to connect to Elasticsearch. 
> 
> In order to make it work any referenced assets from the configuration would need to be shipped to the agent as well.
> 
> For example \[ECK\](https://github.com/elastic/cloud-on-k8s) uses custom certificate authorities for Elasticsearch and Kibana to run with a secure configuration by default if a user has not yet set up their own certificates.

> [@Unable to use mounted elastic-agent.yml if running in elastic-agent container](https://discuss.elastic.co/t/unable-to-use-mounted-elastic-agent-yml-if-running-in-elastic-agent-container/239202):
>
> Hi, I am using elastic-agent-7.9.0-SNAPSHOT docker image (also tested and encountered the same error with elastic-agent-8.0.0-SNAPSHOT docker image). My docker-compose.yml: version: '3.7' services: elastic-agent: image: docker.elastic.co/beats/elastic-agent:7.9.0-SNAPSHOT container\_name: elastic-agent command: ["enroll", "http://kibana:5601", "\<enrollment\_token\>"] environment: - "FLEET\_ENROLL=1" - "FLEET\_SETUP=1" - "KIBANA\_HOST=http://kibana:5601" volum…

---

<div class="post-metadata">

**Author:** ![mostlyjason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mostlyjason/32/60849_2.png) [@mostlyjason](https://discuss.elastic.co/u/mostlyjason)\
**Post date:** [July 6, 2020, 11:22pm UTC](https://discuss.elastic.co/t/elastic-agent-rpm-doesnt-work-neither-does-fleet-anymore/239679/2 "2020-07-06T23:22:13Z")

</div>

@EricDavisX did we test on CentOS yet?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 4, 2020, 1:22am UTC](https://discuss.elastic.co/t/elastic-agent-rpm-doesnt-work-neither-does-fleet-anymore/239679/3 "2020-08-04T01:22:20Z")

</div>

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