org.jruby.exceptions.RaiseException: (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:158) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:179)

JIRA | A. Huck | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hi, we very frequently (every couple of hours) run into the following error as soon as we allow more than one server to connect and deliver its logs via Lumberjack to logstash via the same port: {code} Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:158) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:179) at org.jruby.RubyMethod.call(org/jruby/RubyMethod.java:132) at LogStash::Codecs::Multiline.decode(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:153) at RUBY.run(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/inputs/lumberjack.rb:45) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at Lumberjack::Connection.data(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:241) at RUBY.run(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:223) at Lumberjack::Parser.data_field_value(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:182) at Lumberjack::Parser.feed(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:93) at Lumberjack::Parser.compressed_payload(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:198) at Lumberjack::Parser.feed(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:93) at RUBY.run(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:220) at RUBY.run(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/lumberjack/server.rb:59) {code} Lumberjack input configuration is {code} input { lumberjack { port => 3301 type => "tomcat" charset => "ISO-8859-1" ssl_certificate => "/etc/pki/logstash/logstash.crt" ssl_key => "/etc/pki/logstash/logstash.key" codec => multiline { charset => "ISO-8859-1" pattern => "^\[%{LOGLEVEL}%{SPACE}\]" negate => true what => "previous" } } } {code} We can omit the exception error only if we spent an extra logstash input configuration with another port for each delivering server but this is not really an option. We get this error as well with apache-Logs (even with two servers only). Any help is appreciated. Best regards, Andreas Huck

    JIRA | 3 years ago | A. Huck
    org.jruby.exceptions.RaiseException: (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:158) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:179)
  2. 0

    ConcurrencyError in Lumberjack + Logstash

    GitHub | 3 years ago | abhaykumar
    org.jruby.exceptions.RaiseException: (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:159) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:180)
  3. 0

    GitHub comment 160#35701642

    GitHub | 3 years ago | rachin-fab
    org.jruby.exceptions.RaiseException: (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:159) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash.jar!/logstash/codecs/multiline.rb:180)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.jruby.exceptions.RaiseException

      (ConcurrencyError) Detected invalid array contents due to unsynchronized modifications with concurrent users at org.jruby.RubyArray.<<(org/jruby/RubyArray.java:1147) at LogStash::Codecs::Multiline.buffer(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:158) at LogStash::Codecs::Multiline.do_previous(file:/opt/logstash/logstash-1.2.2-flatjar.jar!/logstash/codecs/multiline.rb:179)

      at org.jruby.RubyMethod.call()
    2. JRuby Main Maven Artifact
      RubyMethod.call
      1. org.jruby.RubyMethod.call(org/jruby/RubyMethod.java:132)
      1 frame