Closed ghost closed 6 years ago
Hello,
Thanks for sharing logstash-test-runner. I just tried to running it, falling on this error. Any idea ?
[2018-06-12T15:59:27,245][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<Errno::EACCES: Permission denied - /output.log>, :backtrace=>["org/jruby/RubyFile.java:370:ininitialize'", "org/jruby/RubyIO.java:871:in new'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:280:inopen'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:132:in multi_receive_encoded'", "org/jruby/RubyHash.java:1342:ineach'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:131:in multi_receive_encoded'", "org/jruby/ext/thread/Mutex.java:149:insynchronize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:130:in multi_receive_encoded'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:90:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:13:in multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:47:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:420:in output_batch'", "org/jruby/RubyHash.java:1342:ineach'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:419:in output_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:365:inworker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:330:in start_workers'"]}
[2018-06-12T15:59:27,245][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<Errno::EACCES: Permission denied - /output.log>, :backtrace=>["org/jruby/RubyFile.java:370:in
new'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:280:in
multi_receive_encoded'", "org/jruby/RubyHash.java:1342:in
multi_receive_encoded'", "org/jruby/ext/thread/Mutex.java:149:in
multi_receive_encoded'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:90:in
multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:47:in
output_batch'", "org/jruby/RubyHash.java:1342:in
output_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:365:in
start_workers'"]}
Found the answer within the (closed) issue 1...
This and #1 should be resolved by https://github.com/agolo/logstash-test-runner/commit/44911d5e9a694f29b245c4d1201e091d821a6dc5
Hello,
Thanks for sharing logstash-test-runner. I just tried to running it, falling on this error. Any idea ?
[2018-06-12T15:59:27,245][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<Errno::EACCES: Permission denied - /output.log>, :backtrace=>["org/jruby/RubyFile.java:370:in
initialize'", "org/jruby/RubyIO.java:871:innew'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:280:in
open'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:132:inmulti_receive_encoded'", "org/jruby/RubyHash.java:1342:in
each'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:131:inmulti_receive_encoded'", "org/jruby/ext/thread/Mutex.java:149:in
synchronize'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-file-4.0.2/lib/logstash/outputs/file.rb:130:inmulti_receive_encoded'", "/usr/share/logstash/logstash-core/lib/logstash/outputs/base.rb:90:in
multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator_strategies/shared.rb:13:inmulti_receive'", "/usr/share/logstash/logstash-core/lib/logstash/output_delegator.rb:47:in
multi_receive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:420:inoutput_batch'", "org/jruby/RubyHash.java:1342:in
each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:419:inoutput_batch'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:365:in
worker_loop'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:330:instart_workers'"]}