# Logstash Permission denied - NUL error

**URL:** <https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686>\
**Category:** Logstash\
**Created:** [May 1, 2022, 8:46pm UTC](https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686 "2022-05-01T20:46:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ersan](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@Ersan](https://discuss.elastic.co/u/Ersan)\
**Post date:** [May 1, 2022, 8:46pm UTC](https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686/1 "2022-05-01T20:46:51Z")

</div>

Hello I am new to EleasticSearch.  
I try to run logstash on Windows for the first time with different instrutions/Java versions/Logtash versions but always get the same error. I checked out the forms too but could not find a solution. A help will be appreciated.

Logstash - Logstash stopped processing because of an error: (EACCES) Permission denied - NUL  
org.jruby.exceptions.SystemCallError: (EACCES) Permission denied - NUL  
at org.jruby.RubyIO.sysopen(org/jruby/RubyIO.java:1237) ~[jruby.jar:?]  
at org.jruby.RubyFile.initialize(org/jruby/RubyFile.java:365) ~[jruby.jar:?]  
at org.jruby.RubyIO.open(org/jruby/RubyIO.java:1156) ~[jruby.jar:?]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 1, 2022, 11:25pm UTC](https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686/2 "2022-05-01T23:25:07Z")

</div>

Welcome to our community! 😃

it'd be useful if you showed us your Logstash config.

---

<div class="post-metadata">

**Author:** ![RobBavey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robbavey/32/20421_2.png) [@RobBavey](https://discuss.elastic.co/u/RobBavey)\
**Post date:** [May 3, 2022, 2:56pm UTC](https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686/3 "2022-05-03T14:56:33Z")

</div>

Hi @Ersan,

This is a [known issue](https://github.com/elastic/logstash/issues/14042) with the latest version of the JDK on Windows. Can you try adding

```auto
-Djdk.io.File.enableADS=true

```

to your `LOGSTASH_HOME\config\jvm.options` file and restart?

---

<div class="post-metadata">

**Author:** ![Ersan](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@Ersan](https://discuss.elastic.co/u/Ersan)\
**Post date:** [May 3, 2022, 8:32pm UTC](https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686/4 "2022-05-03T20:32:57Z")

</div>

Thank you very much Bob. It solved my problem.

---

<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:** [May 31, 2022, 8:33pm UTC](https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686/5 "2022-05-31T20:33:09Z")

</div>

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