# Logstash fails with "FFI not available" message when starting logstash on Centos 7.9

**URL:** <https://discuss.elastic.co/t/logstash-fails-with-ffi-not-available-message-when-starting-logstash-on-centos-7-9/345387>\
**Category:** Logstash\
**Created:** [October 19, 2023, 12:35pm UTC](https://discuss.elastic.co/t/logstash-fails-with-ffi-not-available-message-when-starting-logstash-on-centos-7-9/345387 "2023-10-19T12:35:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [October 19, 2023, 1:21pm UTC](https://discuss.elastic.co/t/logstash-fails-with-ffi-not-available-message-when-starting-logstash-on-centos-7-9/345387/2 "2023-10-19T13:21:15Z")

</div>

Check [this](https://discuss.elastic.co/t/logstash-stop-working-due-to-ffi-not-available-null/343174) and, as Leandro recommended, change tmp path in jvm.options.  
`-Djava.io.tmpdir=/opt/logstash_tmp` or any other directory on which logstash user has write rights.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-fails-with-ffi-not-available-message-when-starting-logstash-on-centos-7-9/345387)._
