# Elastic agent on Raspberry Pi

**URL:** <https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [May 19, 2022, 11:51am UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182 "2022-05-19T11:51:48Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 19, 2022, 11:51am UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/1 "2022-05-19T11:51:48Z")

</div>

Hello All! I am trying to install the elastic agent to a raspberry pi and trying to enroll it onto our fleet server.

When trying to install the agent I get the error:

```auto
./elastic-agent: 1: Syntax error: word unexpected (expecting ")")

```

Can someone help me with this issue?

Thanks!

_ **Commands used:** _

```auto
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.2.0-linux-arm64.tar.gz

tar xzvf elastic-agent-8.2.0-linux-arm64.tar.gz 

cd elastic-agent-8.2.0-linux-arm64

sudo ./elastic-agent install --url={{ fleet_server_url}} --enrollment-token={{ token }} --insecure

```

I am using a local install with self signed certs, so --insecure is needed!

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 30, 2022, 5:04pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/2 "2022-05-30T17:04:54Z")

</div>

Are you certain your url and token are correct? I was able to install v8.2.2 on an rp4 (ubuntu 22.04) successfully without the insecure flag.

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 30, 2022, 6:33pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/3 "2022-05-30T18:33:14Z")

</div>

Yes I am certain these are correct, they were given to me by the elastic interface.

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 31, 2022, 3:29pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/4 "2022-05-31T15:29:55Z")

</div>

It looks like you're using ansible, is it templating correctly? Can you attempt with 8.2.2?

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 31, 2022, 4:14pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/5 "2022-05-31T16:14:59Z")

</div>

No, I am not using ansible. I just removed the urls and tokens for privacy reasons. Sorry for the confusion

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 31, 2022, 4:53pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/6 "2022-05-31T16:53:28Z")

</div>

Can you attempt to run the command from Kibana onto a target machine manually to check if the problem is ansible or the agent install?

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 31, 2022, 5:15pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/7 "2022-05-31T17:15:46Z")

</div>

I do not use ansible... the problem is the agent install

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 31, 2022, 5:42pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/8 "2022-05-31T17:42:17Z")

</div>

wow, my reading comprehension was bad. Is it still the same issue with v8.2.2?

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 31, 2022, 5:44pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/9 "2022-05-31T17:44:19Z")

</div>

I have not tested it yet, will look into the near future, thnx for now! Will report back here later!

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 31, 2022, 6:07pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/10 "2022-05-31T18:07:49Z")

</div>

I just tested with the following:

**Version 8.2.2**

```auto
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.2.2-linux-x86_64.tar.gz
tar xzvf elastic-agent-8.2.2-linux-x86_64.tar.gz
cd elastic-agent-8.2.2-linux-x86_64
sudo ./elastic-agent install --url=https://192.168.50.60:8220 --enrollment-token=TOKEN --insecure

```

the same commands after that (with respect to the new version).

I now get the error:

```auto
./elastic-agent: 1:ELF: not found
./elastic-agent: 36: Syntax error: "(" unexpected

```

**Version 8.2.0**

```auto
curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.2.0-linux-x86_64.tar.gz
tar xzvf elastic-agent-8.2.0-linux-x86_64.tar.gz
cd elastic-agent-8.2.0-linux-x86_64
sudo ./elastic-agent install --url=https://192.168.50.60:8220 --enrollment-token=TOKEN --insecure

```

the same commands after that (with respect to the new version).

I now get the error:

```auto
./elastic-agent: 1:ELF: not found
./elastic-agent: 2: @!: not found
./elastic-agent: 3: ▒▒: not found
./elastic-agent: 4: ▒: not found
./elastic-agent: 5: Syntax error: word unexpected (expecting ")")

```

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 31, 2022, 6:18pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/11 "2022-05-31T18:18:45Z")

</div>

Oh, that's an easy fix!

You've downloaded the `x86_64` version and raspberry pi are `arm64`.  
Try with:  
[https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.2.2-linux-arm64.tar.gz](https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.2.2-linux-arm64.tar.gz)

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 31, 2022, 6:25pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/12 "2022-05-31T18:25:38Z")

</div>

Oh wow, sorry!

But when installing the arm64 of version 8.2.2 I get the error:

```auto
./elastic-agent: 1:ELF▒h%+@8: not found
./elastic-agent: 1: Syntax error: Unterminated quoted string

```

Command: `sudo ./elastic-agent install --url=https://192.168.50.60:8220 --enrollment-token=TOKEN --insecure`

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 31, 2022, 6:35pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/13 "2022-05-31T18:35:25Z")

</div>

Are you using a 64bit os?

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 31, 2022, 6:48pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/14 "2022-05-31T18:48:15Z")

</div>

Oh no... you are right.... 32 bit 😅

Is there a 32 bit variant available?

---

<div class="post-metadata">

**Author:** ![MichelLaterman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michellaterman/32/110221_2.png) [@MichelLaterman](https://discuss.elastic.co/u/MichelLaterman)\
**Post date:** [May 31, 2022, 6:53pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/15 "2022-05-31T18:53:56Z")

</div>

not for the 8.x releases

---

<div class="post-metadata">

**Author:** ![l3keboy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/l3keboy/32/105915_2.png) [@l3keboy](https://discuss.elastic.co/u/l3keboy)\
**Post date:** [May 31, 2022, 6:55pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/16 "2022-05-31T18:55:39Z")

</div>

Okay! thnx for the help! I will look into the 64bit version of raspberry pi os then!

---

<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:** [June 28, 2022, 8:56pm UTC](https://discuss.elastic.co/t/elastic-agent-on-raspberry-pi/305182/17 "2022-06-28T20:56:36Z")

</div>

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