# Installation errors on Raspberry Pi 2

**URL:** <https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468>\
**Category:** Logstash\
**Created:** [September 30, 2018, 10:31am UTC](https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468 "2018-09-30T10:31:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mc0re](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mc0re](https://discuss.elastic.co/u/mc0re)\
**Post date:** [September 30, 2018, 10:31am UTC](https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468/1 "2018-09-30T10:31:05Z")

</div>

I have troubles installing Logstash on my Raspberry Pi.

1. APT  
Cannot connect to the APT, using  
`echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list`  
it cannot find the correct processot configuration "armhf":

> W: Failed to fetch [https://artifacts.elastic.co/packages/6.x/apt/dists/stable/Release](https://artifacts.elastic.co/packages/6.x/apt/dists/stable/Release) Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

1. DEB  
Trying to install from a downloaded DEB package, get the following errors:

> Using provided startup.options file: /etc/logstash/startup.options  
> OpenJDK Zero VM warning: TieredCompilation is disabled in this release.  
> /usr/share/logstash/bin/system-install: line 88: Error: command not found  
> chmod: cannot access ‘/etc/default/logstash’: No such file or directory  
> dpkg: error processing package logstash (--install):  
> subprocess installed post-installation script returned error exit status 1  
> Errors were encountered while processing:  
> logstash

The affecting command is $(ruby\_exec …).

1. From source  
Installed `openjdk-8-jdk` (openjdk version "1.8.0\_40-internal"), `ruby` (ruby 2.1.5p273 (2014-11-13) [arm-linux-gnueabihf]), `jruby` (jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2014-11-02 6586) (OpenJDK Zero VM 1.8.0\_40-internal) [arm-java]), `rake`, `bundle`  
Fetched the code from [GitHub - elastic/logstash: Logstash - transport and process your logs, events, or other data](https://github.com/elastic/logstash)  
`export OSS=true`  
Executing `rake bootstrap` complains:

> Unable to find JRuby.  
> If you are a user, this is a bug.  
> If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.

What am I missing?

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [October 1, 2018, 5:25am UTC](https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468/2 "2018-10-01T05:25:01Z")

</div>

Logstash only supports x86\_64 cpu's, not ARM cpu's. I believe it is possible to get Logstash running on ARM as well but you'll have to google for some guides.

> [@](#):
>
> We currently only support and test x86\_64 architectures.

> **[Support Matrix](https://www.elastic.co/support/matrix)**

---

<div class="post-metadata">

**Author:** ![mc0re](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mc0re](https://discuss.elastic.co/u/mc0re)\
**Post date:** [October 1, 2018, 6:16am UTC](https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468/3 "2018-10-01T06:16:04Z")

</div>

There are mentionings of Logstash running on Raspberry on the Internet, but they all refer to pre-6 versions. The three methods I described derive from those articles. For the latest versions - there are no guides, therefore I'm writing here. I would appreciate some help.  
I deem it should be possible - it's just string processing. Even Metricbeat is running on my Raspberry, so Logstash should be too, I just need the right setup to compile it, I guess. What am I missing in my toolbox?

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [October 1, 2018, 6:44am UTC](https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468/4 "2018-10-01T06:44:39Z")

</div>

I'm no Linux expert so I doubt I'll be of much use but have you tried recompiling as recommended in many of the guides for older versions?

[https://benjaminknofe.com/blog/2016/05/29/installing-logstash-on-a-raspberry-pi/](https://benjaminknofe.com/blog/2016/05/29/installing-logstash-on-a-raspberry-pi/)

I looked into this a year ago but eventually decided against putting any time into it as its A) not officially supported B) probably quite slow and C) x86 can be had so cheap these days it didn't really warrant the time and effort to try and get Logstash running on ARM.

---

<div class="post-metadata">

**Author:** ![mc0re](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mc0re](https://discuss.elastic.co/u/mc0re)\
**Post date:** [October 1, 2018, 7:12am UTC](https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468/5 "2018-10-01T07:12:16Z")

</div>

I couldn't install it from the DEB package (see above). The article refers to version 2.3.2, by the way.  
I checked many articles, which led me to the three installation methods, all of which failed for reasons unclear to me.

---

<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:** [October 29, 2018, 7:12am UTC](https://discuss.elastic.co/t/installation-errors-on-raspberry-pi-2/150468/6 "2018-10-29T07:12:27Z")

</div>

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