2022년 7월 6일 수요일

Errno::EACCES: Permission denied - NUL

도메인 정규화를 지원하는 로그스태시 tld 필터가 업데이트 됨. 하지만 일부 도메인 정규화 실패 현상은 여전히 발생한다. 그런데 문제는 그게 아니고 설치가 안 됨. 
C:\ELK\logstash-8.3.1\bin> .\logstash-plugin install logstash-filter-tld
"Using bundled JDK: C:\ELK\logstash-8.3.1\jdk\bin\java.exe"
Validating logstash-filter-tld
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:/ELK/logstash-8.3.1/vendor/jruby/lib/ruby/stdlib/rubygems/user_interaction.rb:645
                          initialize at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/ui/rg_proxy.rb:11
                                 ui= at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler.rb:91
                                  ui at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler.rb:87
                            validate at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/rubygems_integration.rb:68
                       validate_spec at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/source/path.rb:168
                     load_spec_files at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/source/path.rb:182
                                each at org/jruby/RubyArray.java:1821
                     load_spec_files at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/source/path.rb:176
ib/bundler/source/path.rb:107
                               specs at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/source/path.rb:115
           specs_for_source_changed? at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/definition.rb:562
                      specs_changed? at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/definition.rb:547
                      converge_paths at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/definition.rb:591
                                any? at org/jruby/RubyArray.java:4553
                      converge_paths at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/definition.rb:590
                          initialize at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/definition.rb:134
                       to_definition at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/dsl.rb:219
                            evaluate at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/dsl.rb:13
                               build at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler/definition.rb:38
                          definition at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/bundler-2.3.17/lib/bundler.rb:208
  expand_logstash_mixin_dependencies at C:/ELK/logstash-8.3.1/lib/bootstrap/bundler.rb:218
  update_logstash_mixin_dependencies at C:/ELK/logstash-8.3.1/lib/pluginmanager/install.rb:190
                             execute at C:/ELK/logstash-8.3.1/lib/pluginmanager/install.rb:78
                                 run at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:68
                             execute at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/subcommand/execution.rb:11
                                 run at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:68
                                 run at C:/ELK/logstash-8.3.1/vendor/bundle/jruby/2.5.0/gems/clamp-1.0.1/lib/clamp/command.rb:133
                              <main> at C:\ELK\logstash-8.3.1\lib\pluginmanager\main.rb:64

찾아보니 윈도우와 자바의 궁합 문제인 것 같은데, 권고 설정을 추가해도 여전히 설치는 안 된다.

또는 Djdk.io.File.enableADS=true

현재 7.15 이상의 윈도우 버전만 안 되는 것 같고, 리눅스 버전은 이상 없음.
[root@Centos7 ~]# /usr/share/logstash/bin/logstash-plugin install logstash-filter-tld
Using bundled JDK: /usr/share/logstash/jdk
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Validating logstash-filter-tld
Resolving mixin dependencies
Installing logstash-filter-tld
Installation successful

23.06.03
윈도우 v8.8에서 설치 가능

관련 글

댓글 없음:

댓글 쓰기

크리에이티브 커먼즈 라이선스