agolo / logstash-test-runner

Logstash configuration testing framework
https://blog.agolo.com/the-easy-way-to-test-your-logstash-configuration-3f80eb5ffd59
MIT License
103 stars 24 forks source link

An unexpected error occurred ... Errno::EACCES: Permission denied - /output.log #2

Closed ghost closed 6 years ago

ghost commented 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'"]}

ghost commented 6 years ago

Found the answer within the (closed) issue 1...

agolomoodysaada commented 6 years ago

This and #1 should be resolved by https://github.com/agolo/logstash-test-runner/commit/44911d5e9a694f29b245c4d1201e091d821a6dc5