# Logstash start failed because of Could not load FFI Provider: (NotImplementedError) FFI not available

**URL:** https://discuss.elastic.co/t/logstash-start-failed-because-of-could-not-load-ffi-provider-notimplementederror-ffi-not-available/247970
**Category:** Logstash
**Created:** [September 9, 2020, 7:47am UTC](https://discuss.elastic.co/t/logstash-start-failed-because-of-could-not-load-ffi-provider-notimplementederror-ffi-not-available/247970 "2020-09-09T07:47:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![qiuwenhui1](https://avatars.discourse-cdn.com/v4/letter/q/85e7bf/32.png) [@qiuwenhui1](https://discuss.elastic.co/u/qiuwenhui1)
#### Post date: [September 9, 2020, 7:47am UTC](https://discuss.elastic.co/t/logstash-start-failed-because-of-could-not-load-ffi-provider-notimplementederror-ffi-not-available/247970/1 "2020-09-09T07:47:31Z")

</div>

java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) Could not load FFI Provider: (NotImplementedError) FFI not available: java.lang.ClassCastException: java.nio.HeapByteBuffer cannot be cast to sun.nio.ch.DirectBuffer.  
the last following Error accessing temp directory: "/tmp". I have add: LS\_JAVA\_OPTS="-Djava.io.tmpdir="/zxp/logstash-7.6.0\tmp"" to the file bin/logstash, but the Error change to Error accessing temp directory: "/zxp/logstash-7.6.0\tmp". need your help

---

<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 7, 2020, 7:47am UTC](https://discuss.elastic.co/t/logstash-start-failed-because-of-could-not-load-ffi-provider-notimplementederror-ffi-not-available/247970/2 "2020-10-07T07:47:37Z")

</div>

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