# Message: file too big for single read

**URL:** <https://discuss.elastic.co/t/message-file-too-big-for-single-read/238348>\
**Category:** Logstash\
**Created:** [June 23, 2020, 11:07pm UTC](https://discuss.elastic.co/t/message-file-too-big-for-single-read/238348 "2020-06-23T23:07:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hilo21](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hilo21/32/66272_2.png) [@hilo21](https://discuss.elastic.co/u/hilo21)\
**Post date:** [June 23, 2020, 11:07pm UTC](https://discuss.elastic.co/t/message-file-too-big-for-single-read/238348/1 "2020-06-23T23:07:16Z")

</div>

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.

```auto
[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

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 23, 2020, 11:49pm UTC](https://discuss.elastic.co/t/message-file-too-big-for-single-read/238348/2 "2020-06-23T23:49:52Z")

</div>

> [@hilo21](#):
>
> `file too big for single read`

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.

---

<div class="post-metadata">

**Author:** ![hilo21](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hilo21/32/66272_2.png) [@hilo21](https://discuss.elastic.co/u/hilo21)\
**Post date:** [June 24, 2020, 6:55pm UTC](https://discuss.elastic.co/t/message-file-too-big-for-single-read/238348/3 "2020-06-24T18:55:28Z")

</div>

Thank you.

---

<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:** [July 22, 2020, 6:55pm UTC](https://discuss.elastic.co/t/message-file-too-big-for-single-read/238348/4 "2020-07-22T18:55:30Z")

</div>

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