# I cannot run Logstash on Raspberry pi3

**URL:** <https://discuss.elastic.co/t/i-cannot-run-logstash-on-raspberry-pi3/109789>\
**Category:** Logstash\
**Created:** [November 30, 2017, 4:03pm UTC](https://discuss.elastic.co/t/i-cannot-run-logstash-on-raspberry-pi3/109789 "2017-11-30T16:03:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmyOhlin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmyohlin/32/24665_2.png) [@AhmyOhlin](https://discuss.elastic.co/u/AhmyOhlin)\
**Post date:** [November 30, 2017, 4:03pm UTC](https://discuss.elastic.co/t/i-cannot-run-logstash-on-raspberry-pi3/109789/1 "2017-11-30T16:03:07Z")

</div>

Hello all,  
i could install and run elasticsearch and Kibana on Raspberry pi 3 but iam struggling right now to run logstash.  
I did the same steps on windows and it works without problems.

i run Logstash With this command:

```
pi@raspberrypi:/usr/share/logstash/logstash-6.0.0/bin $ sudo ./logstash -f /usr/share/logstash/logstash-6.0.0/data/data.conf 

```

I got this error.  
pi@raspberrypi:/usr/share/logstash/logstash-6.0.0/bin $ sudo ./logstash -f /usr/share/logstash/logstash-6.0.0/data/data.conf  
Sending Logstash's logs to /usr/share/logstash/logstash-6.0.0/logs which is now configured via log4j2.properties  
[2017-11-30T15:49:42,391][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"/usr/share/logstash/logstash-6.0.0/modules/netflow/configuration"}  
[2017-11-30T15:49:42,410][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"/usr/share/logstash/logstash-6.0.0/modules/fb\_apache/configuration"}  
LoadError: Could not load FFI Provider: (NotImplementedError) FFI not available: java.lang.UnsatisfiedLinkError: /tmp/jffi614569918750832791.so: /tmp/jffi614569918750832791.so: cannot open shared object file: No such file or directory  
java.lang.UnsatisfiedLinkError: /usr/share/logstash/logstash-6.0.0/vendor/jruby/lib/jni/arm-Linux/libjffi-1.2.so: /usr/share/logstash/logstash-6.0.0/vendor/jruby/lib/jni/arm-Linux/libjffi-1.2.so: cannot open shared object file: No such file or directory  
at java.lang.ClassLoader$NativeLibrary.load(Native Method)  
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)

Could someone explain me help me to fix it?

Thanks

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [November 30, 2017, 6:19pm UTC](https://discuss.elastic.co/t/i-cannot-run-logstash-on-raspberry-pi3/109789/2 "2017-11-30T18:19:31Z")

</div>

Hi,

How much memory is on the RaspPi 3 - 1GB LPDDR2 (900 MHz)?

What OS is in use here?  
Are all binaries up to date?

The FFI not available pointed me towards: [https://github.com/jruby/jruby/issues/1561#issuecomment-48826154](https://github.com/jruby/jruby/issues/1561#issuecomment-48826154)

Can you check your jruby and libjffi versions?

---

<div class="post-metadata">

**Author:** ![paivinay](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@paivinay](https://discuss.elastic.co/u/paivinay)\
**Post date:** [December 2, 2017, 12:05pm UTC](https://discuss.elastic.co/t/i-cannot-run-logstash-on-raspberry-pi3/109789/3 "2017-12-02T12:05:40Z")

</div>

Can you try the suggestions as per the link:

> <https://github.com/elastic/logstash/issues/3316>
>
> @benoiton figured how to setup logstash on the Raspberry Pi2 - I think we should… either maybe try to include the missing library as described in jruby/jruby#1561 or document in a howto/blog/wiki the installation steps in #3287

> sudo apt-get install ant texinfo openjdk-8-jdk build-essential  
> git clone [GitHub - jnr/jffi: Java Foreign Function Interface](https://github.com/jnr/jffi.git)  
> cd jffi  
> ant jar  
> sudo cp build/jni/libjffi-1.2.so /opt/logstash/vendor/jruby/lib/jni/arm-Linux

I had the same issue on my Raspberry PI 3 and got logstash working after following the above steps.

---

<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:** [December 30, 2017, 12:05pm UTC](https://discuss.elastic.co/t/i-cannot-run-logstash-on-raspberry-pi3/109789/4 "2017-12-30T12:05:55Z")

</div>

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