Message: file too big for single read

Hello,

Logstash was working fine for me until this started happening. I can't start my logstash instance and I can't find some extra information on this error anywhere.

[2020-06-23T23:03:31,655][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"7.7.0"}
[2020-06-23T23:03:32,904][ERROR][logstash.config.sourceloader] Could not fetch all the sources {:exception=>IOError, :message=>"file too big for single read", :backtrace=>["org/jruby/RubyIO.java:3061:in `read'", "org/jruby/RubyIO.java:3049:in `read'", "org/jruby/RubyIO.java:3781:in `read'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:87:in `block in read'", "org/jruby/RubyArray.java:1809:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:77:in `read'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:110:in `read'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:206:in `local_pipeline_configs'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:177:in `pipeline_configs'", "/usr/share/logstash/logstash-core/lib/logstash/config/source_loader.rb:77:in `block in fetch'", "org/jruby/RubyArray.java:2572:in `collect'", "/usr/share/logstash/logstash-core/lib/logstash/config/source_loader.rb:76:in `fetch'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:165:in `converge_state_and_update'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:113:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:390:in `block in execute'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in initialize'"]}
[2020-06-23T23:03:32,977][ERROR][logstash.agent           ] An exception happened when converging configuration {:exception=>RuntimeError, :message=>"Could not fetch the configuration, message: file too big for single read", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/agent.rb:172:in `converge_state_and_update'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:113:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:390:in `block in execute'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in initialize'"]}

Help please

The code that is trying to read the configuration is failing to read a file that is more than 2 GB in size. If you have pointed path.config at a directory then make sure there is not a file (e.g. core) that is more than 2 GB in it.

1 Like

Thank you.

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