# Elastic-agent 7.10.0 install error

**URL:** <https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368>\
**Category:** Beats\
**Tags:** elastic-agent\
**Created:** [November 13, 2020, 5:57pm UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368 "2020-11-13T17:57:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankfoti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankfoti/32/26965_2.png) [@frankfoti](https://discuss.elastic.co/u/frankfoti)\
**Post date:** [November 13, 2020, 5:57pm UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/1 "2020-11-13T17:57:39Z")

</div>

I have tried this on a couple different GCP instances with the same error below

```auto
ffoti@ep-test-gcp-debian:~$ sudo rpm -vi elastic-agent-7.10.0-x86_64.rpm
sudo: rpm: command not found
ffoti@ep-test-gcp-debian:~$ curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-7.10.0-amd64.deb
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 90.4M 100 90.4M 0 0 74.7M 0 0:00:01 0:00:01 --:--:-- 74.7M
ffoti@ep-test-gcp-debian:~$ sudo dpkg -i elastic-agent-7.10.0-amd64.deb
Selecting previously unselected package elastic-agent.
(Reading database ... 38712 files and directories currently installed.)
Preparing to unpack elastic-agent-7.10.0-amd64.deb ...
Unpacking elastic-agent (7.10.0) ...
Setting up elastic-agent (7.10.0) ...
Processing triggers for systemd (241-7~deb10u4) ...
ffoti@ep-test-gcp-debian:~$ cd /usr/share/elastic-agent/bin
ffoti@ep-test-gcp-debian:/usr/share/elastic-agent/bin$
ffoti@ep-test-gcp-debian:/usr/share/elastic-agent/bin$
ffoti@ep-test-gcp-debian:/usr/share/elastic-agent/bin$ sudo ./elastic-agent install -f --kibana-url=https://2fadc60b34cf40479ee0bee875eeaab9.us-east4.gcp.elastic-cloud.com:443 --enrollment-token=Y1ZEN3ZYVUJDM28telBHWEpXZlo6WFlxYWlIRzBSQzZsTU9BNUVVV1oxUQ==
The Elastic Agent is currently in BETA and should not be used in production
Error: failed to discover the source directory for installation: missing elastic-agent

```

---

<div class="post-metadata">

**Author:** ![John\_Zimmerman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_zimmerman/32/3771_2.png) [@John\_Zimmerman](https://discuss.elastic.co/u/John_Zimmerman)\
**Post date:** [November 17, 2020, 5:05am UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/2 "2020-11-17T05:05:27Z")

</div>

I've just run into this in testing on CentOS 7 with the 7.10.0 RPM available here: [https://www.elastic.co/downloads/elastic-agent](https://www.elastic.co/downloads/elastic-agent)

It appears there is something wrong with the OS specific packages (RPM and DEB). I get the same "missing elastic-agent" error.

I have instead downloaded the tarball for "Linux 64-bit" and ran the "install" command with parameters successfully.

1. Download [https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-7.10.0-linux-x86\_64.tar.gz](https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-7.10.0-linux-x86_64.tar.gz)
2. Extract tarball
3. Run `sudo ./elastic-agent install -f <rest of parameters>` inside the extracted directory.

This issue should be attributed to something faulty in the OS packaging configuration.

---

<div class="post-metadata">

**Author:** ![frankfoti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankfoti/32/26965_2.png) [@frankfoti](https://discuss.elastic.co/u/frankfoti)\
**Post date:** [November 17, 2020, 1:16pm UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/3 "2020-11-17T13:16:59Z")

</div>

Thanks, I ran into it on Centos 8 and Debian as well. both GCP instances. I'll wait a couple more relaease from now and try End Point again then.

---

<div class="post-metadata">

**Author:** ![EricDavisX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ericdavisx/32/73456_2.png) [@EricDavisX](https://discuss.elastic.co/u/EricDavisX)\
**Post date:** [November 17, 2020, 3:23pm UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/4 "2020-11-17T15:23:32Z")

</div>

sorry for the troubles, I believe we found and fixed this and it is slated for a coming patch release - see Beats pull request: [https://github.com/elastic/beats/pull/22543](https://github.com/elastic/beats/pull/22543)  
and issue: [https://github.com/elastic/beats/issues/22360](https://github.com/elastic/beats/issues/22360)

It is not yet built to be tried out but it should be within a few days or so.

---

<div class="post-metadata">

**Author:** ![blaker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blaker/32/65621_2.png) [@blaker](https://discuss.elastic.co/u/blaker)\
**Post date:** [November 17, 2020, 3:29pm UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/5 "2020-11-17T15:29:55Z")

</div>

@frankfoti

When using the RPM to install you need to switch to the `enroll` command, not the `install` command. The `install` command is the recommended way, which does not use the RPM.

If you download the linux `*.tar.gz` and run `install` from inside of that directory it will work. If you want to use the RPM, you should switch to: `elastic-agent enroll {kibana_url} {enrollment_token}`.

**Note** : The RPM is not the recommended installation method. It will prevent the ability to perform upgrades directly from Kibana.

---

<div class="post-metadata">

**Author:** ![grin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grin/32/80387_2.png) [@grin](https://discuss.elastic.co/u/grin)\
**Post date:** [December 7, 2020, 9:03pm UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/6 "2020-12-07T21:03:09Z")

</div>

> [@blaker](#):
>
> When using the RPM to install you need to switch to the `enroll` command, not the `install` command.

Same goes for DEB, it seems.

---

<div class="post-metadata">

**Author:** ![blaker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blaker/32/65621_2.png) [@blaker](https://discuss.elastic.co/u/blaker)\
**Post date:** [December 8, 2020, 10:02pm UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/7 "2020-12-08T22:02:38Z")

</div>

@grin Yes, it also applies for DEB.

Both RPM/DEB installations require the usage of `enroll` command, vs `install` command.

---

<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:** [January 6, 2021, 12:03am UTC](https://discuss.elastic.co/t/elastic-agent-7-10-0-install-error/255368/8 "2021-01-06T00:03:08Z")

</div>

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