Logstash keep crushing to an uknown reason

My logstash completely failed and stoped working.I dont think i messed anything up since the configs are back to the same place , service logstash configtest gives a pass.

The error coming out is this :

{:timestamp=>"2017-02-02T04:55:39.525000+1100", :message=>"An unexpected error occurred!", :error=>#. <Errno::EINVAL: Invalid argument - Invalid file>, :class=>"Errno::EINVAL", :backtrace=>["org/jruby/RubyIO.java:1807:in seek'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/geoip-1.6.1/lib/geoip.rb:543:in detect_database_type!'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/geoip-1.6.1/lib/geoip.rb:237:in initialize'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-filter-geoip-2.0.7/lib/logstash/filters/geoip.rb:102:in register'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.4-java/lib/logstash/pipeline.rb:174:in start_workers'", "org/jruby/RubyArray.java:1613:in each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.4-java/lib/logstash/pipeline.rb:174:in start_workers'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.4-java/lib/logstash/pipeline.rb:126:in run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.4-java/lib/logstash/agent.rb:210:in execute'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.4-java/lib/logstash/runner.rb:90:in run'", "org/jruby/RubyProc.java:281:in call'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.4-java/lib/logstash/runner.rb:95:in run'", "org/jruby/RubyProc.java:281:in call'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.22/lib/stud/task.rb:24:in initialize'"], :level=>:warn}

Can anyone understand this error?What should be the best course of action to fix this?Please help!

Is the geoip database file (GeoLite2-City.mmdb) empty?

Hey magnus thanks for yet another reply of yours.

Frankly speaking i have no idea how to check it so some guidance would be really appriciated.
Also why would it be emptied all out of a sudden?It's been working just fine for so long.

Thanks in regards.

Frankly speaking i have no idea how to check it so some guidance would be really appriciated.

Locate GeoLite2-City.mmdb in your file system. Check if its size is smaller than 4 bytes.

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