# Logstash error "Errno::EACCES: Permission denied - NUL" when installing plugin input-syslog

**URL:** <https://discuss.elastic.co/t/logstash-error-errno-permission-denied-nul-when-installing-plugin-input-syslog/308523>\
**Category:** Logstash\
**Tags:** windows\
**Created:** [June 29, 2022, 9:58pm UTC](https://discuss.elastic.co/t/logstash-error-errno-permission-denied-nul-when-installing-plugin-input-syslog/308523 "2022-06-29T21:58:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlosD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlosd/32/107752_2.png) [@CarlosD](https://discuss.elastic.co/u/CarlosD)\
**Post date:** [June 29, 2022, 9:58pm UTC](https://discuss.elastic.co/t/logstash-error-errno-permission-denied-nul-when-installing-plugin-input-syslog/308523/1 "2022-06-29T21:58:09Z")

</div>

Hi,  
I haven't been able to install logstash-input-syslog

I thought this could be solved by following [this](https://discuss.elastic.co/t/logstash-permission-denied-nul-error/303686/3) but it did not solve it

I am trying this in a Windows 11 Enterprise Evaluation VM (WINDEV2204EVAL)  
Attaching the jvm.options file, I added the `-Djdk.io.File.enableADS=true` at the end.

```auto
## JVM configuration

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms1g
-Xmx1g

################################################################
## Expert settings
################################################################
##
## All settings below this section are considered
## expert settings. Don't tamper with them unless
## you understand what you are doing
##
################################################################

## GC configuration
11-13:-XX:+UseConcMarkSweepGC
11-13:-XX:CMSInitiatingOccupancyFraction=75
11-13:-XX:+UseCMSInitiatingOccupancyOnly

## Locale
# Set the locale language
#-Duser.language=en

# Set the locale country
#-Duser.country=US

# Set the locale variant, if any
#-Duser.variant=

## basic

# set the I/O temp directory
#-Djava.io.tmpdir=$HOME

# set to headless, just in case
-Djava.awt.headless=true

# ensure UTF-8 encoding by default (e.g. filenames)
-Dfile.encoding=UTF-8

# use our provided JNA always versus the system one
#-Djna.nosys=true

# Turn on JRuby invokedynamic
-Djruby.compile.invokedynamic=true
# Force Compilation
-Djruby.jit.threshold=0

## heap dumps

# generate a heap dump when an allocation from the Java heap fails
# heap dumps are created in the working directory of the JVM
-XX:+HeapDumpOnOutOfMemoryError

# specify an alternative path for heap dumps
# ensure the directory exists and has sufficient space
#-XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof

## GC logging
#-Xlog:gc*,gc+age=trace,safepoint:file=@loggc@:utctime,pid,tags:filecount=32,filesize=64m

# log GC status to a file with time stamps
# ensure the directory exists
#-Xloggc:${LS_GC_LOG_FILE}

# Entropy source for randomness
-Djava.security.egd=file:/dev/urandom

# Copy the logging context from parent threads to children
-Dlog4j2.isThreadContextMapInheritable=true

-Djdk.io.File.enableADS=true

```

I am attaching here the steps I am following and the error display:

```auto
PS C:\logstash-8.3.0-windows-x86_64\logstash-8.3.0\bin> .\logstash-plugin install logstash-input-syslog
"Using bundled JDK: C:\logstash-8.3.0-windows-x86_64\logstash-8.3.0\jdk\bin\java.exe"
Validating logstash-input-syslog
Resolving mixin dependencies
Errno::EACCES: Permission denied - NUL
                             sysopen at org/jruby/RubyIO.java:1237
                          initialize at org/jruby/RubyFile.java:365
                                open at org/jruby/RubyIO.java:1156
                          initialize at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/jruby/lib/ruby/stdlib/rubygems/user_interaction.rb:645
                          initialize at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/ui/rg_proxy.rb:11
                                 ui= at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler.rb:91
                                  ui at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler.rb:87
                            validate at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/rubygems_integration.rb:68
                       validate_spec at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/source/path.rb:168
                     load_spec_files at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/source/path.rb:182
                                each at org/jruby/RubyArray.java:1821
                     load_spec_files at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/source/path.rb:176
                         local_specs at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/source/path.rb:107
                               specs at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/source/path.rb:115
           specs_for_source_changed? at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/definition.rb:562
                      specs_changed? at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/definition.rb:547
                      converge_paths at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/definition.rb:591
                                any? at org/jruby/RubyArray.java:4553
                      converge_paths at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/definition.rb:590
                          initialize at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/definition.rb:134
                       to_definition at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/dsl.rb:219
                            evaluate at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/dsl.rb:13
                               build at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler/definition.rb:38
                          definition at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.16/lib/bundler.rb:208
  expand_logstash_mixin_dependencies at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/lib/bootstrap/bundler.rb:218
  update_logstash_mixin_dependencies at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/lib/pluginmanager/install.rb:190
                             execute at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/lib/pluginmanager/install.rb:78
                                 run at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:68
                             execute at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/subcommand/execution.rb:11
                                 run at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:68
                                 run at C:/logstash-8.3.0-windows-x86_64/logstash-8.3.0/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:133
                              <main> at C:\logstash-8.3.0-windows-x86_64\logstash-8.3.0\lib\pluginmanager\main.rb:64
PS C:\logstash-8.3.0-windows-x86_64\logstash-8.3.0\bin>

```

Please, let me know what I am missing  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![stevedearl](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@stevedearl](https://discuss.elastic.co/u/stevedearl)\
**Post date:** [July 4, 2022, 2:37pm UTC](https://discuss.elastic.co/t/logstash-error-errno-permission-denied-nul-when-installing-plugin-input-syslog/308523/2 "2022-07-04T14:37:50Z")

</div>

I'm seeing exactly the same issue when trying to install Logstash 8.3.0 on Windows 10 (as part of an upgrade from Logstash 8.1.2).

All I've done is unpack the Logstash 8.3.0 zip file into a suitable folder and then run the logstash-plugin.bat file to list the installed plugins. This results in the same failure as Carlos has reported:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/a/aa41f1efbda67c51602af464a3e766f30a561dd0.png)

I still see the error even after following the instructions to add the following line to the logstash config jvm.options file:  
`-Djdk.io.File.enableADS=true`

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![stevedearl](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@stevedearl](https://discuss.elastic.co/u/stevedearl)\
**Post date:** [July 4, 2022, 2:47pm UTC](https://discuss.elastic.co/t/logstash-error-errno-permission-denied-nul-when-installing-plugin-input-syslog/308523/3 "2022-07-04T14:47:11Z")

</div>

Just tried the latest LS version (8.3.1) released a few days ago but that shows the same issue.

Steve

---

<div class="post-metadata">

**Author:** ![CarlosD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlosd/32/107752_2.png) [@CarlosD](https://discuss.elastic.co/u/CarlosD)\
**Post date:** [July 8, 2022, 6:04pm UTC](https://discuss.elastic.co/t/logstash-error-errno-permission-denied-nul-when-installing-plugin-input-syslog/308523/4 "2022-07-08T18:04:39Z")

</div>

To provide an update here, I am not sure if it is necessary to install the plugins since these are loaded depending on the ones stated in the .conf file.

```auto
PS C:\logstash-8.3.2> .\bin\logstash.bat -f .\config\<logstash>.conf

```

---

<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:** [August 5, 2022, 6:05pm UTC](https://discuss.elastic.co/t/logstash-error-errno-permission-denied-nul-when-installing-plugin-input-syslog/308523/5 "2022-08-05T18:05:09Z")

</div>

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