You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This report describes random startup failures in Logstash 7.17.6 / with preceding AliasRegistry exceptions thrown during pipeline startup. I think this is possibly related to #14002 and, if so, may require a backport to 7.17.x
Logstash information:
Please include the following information:
Logstash version:
logstash 7.17.6
Logstash installation source:
Expanded from zip archive,
How is Logstash being run:
Started as a child process of Linux service (native, non-Docker)
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment Temurin-11.0.16+8 (build 11.0.16+8)
OpenJDK 64-Bit Server VM Temurin-11.0.16+8 (build 11.0.16+8, mixed mode)
OS version
"Ubuntu 18.04.2 LTS (4.15.0-193-generic #204-Ubuntu SMP Fri Aug 26 19:20:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux)"
Description of the problem including expected versus actual behavior:
Pipelines fail to start and Logstash exits:
Observed occasional, random / unpredictable NoSuchElementException and IllegalStateException exceptions thrown during the startup of the Logstash pipelines. These appear to be related to the AliasRegistry. After the exception is thrown Logstash exits.
Steps to reproduce:
The Logstash configuration includes 29 pipelines, using a mixture of JDBC and Http input plugins. Start Logstash, occasionally startup will fail and Logstash will exit.
(The pipeline conf files can be provided if required)
[2022-10-04T07:44:40,244][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600, :ssl_enabled=>false}
[2022-10-04T07:45:22,286][INFO ][org.reflections.Reflections] Reflections took 1163 ms to scan 1 urls, producing 119 keys and 419 values
[2022-10-04T07:45:22,317][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:group_relation, :exception=>"Java::JavaUtil::NoSuchElementException", :message=>"No line found", :backtrace=>["java.base/java.util.Scanner.nextLine(Scanner.java:1651)", "org.logstash.plugins.AliasRegistry$YamlWithChecksum.load(AliasRegistry.java:69)", "org.logstash.plugins.AliasRegistry$YamlWithChecksum.access$100(AliasRegistry.java:64)", "org.logstash.plugins.AliasRegistry$AliasYamlLoader.loadAliasesDefinitionsFromInputStream(AliasRegistry.java:134)", "org.logstash.plugins.AliasRegistry$AliasYamlLoader.loadAliasesDefinitions(AliasRegistry.java:130)", "org.logstash.plugins.AliasRegistry.<init>(AliasRegistry.java:179)", "org.logstash.plugins.factory.PluginFactoryExt.<init>(PluginFactoryExt.java:89)", "org.logstash.execution.JavaBasePipelineExt.initialize(JavaBasePipelineExt.java:73)", "org.logstash.execution.JavaBasePipelineExt$INVOKER$i$1$0$initialize.call(JavaBasePipelineExt$INVOKER$i$1$0$initialize.gen)", "org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:837)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuper(IRRuntimeHelpers.java:1169)", "org.jruby.ir.runtime.IRRuntimeHelpers.instanceSuperSplatArgs(IRRuntimeHelpers.java:1156)", "org.jruby.ir.targets.InstanceSuperInvokeSite.invoke(InstanceSuperInvokeSite.java:39)", "data1.riverbed.NetIM.$2_dot_7_dot_0_3413.logstash.linux.logstash_minus_7_dot_17_dot_3_minus_1_dot_0_dot_5.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$initialize$0(/data1/riverbed/NetIM/2.7.0_3413/logstash/linux/logstash-7.17.3-1.0.5/logstash-core/lib/logstash/java_pipeline.rb:47)", "data1.riverbed.NetIM.$2_dot_7_dot_0_3413.logstash.linux.logstash_minus_7_dot_17_dot_3_minus_1_dot_0_dot_5.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0(/data1/riverbed/NetIM/2.7.0_3413/logstash/linux/logstash-7.17.3-1.0.5/logstash-core/lib/logstash/pipeline_action/create.rb:52)", "data1.riverbed.NetIM.$2_dot_7_dot_0_3413.logstash.linux.logstash_minus_7_dot_17_dot_3_minus_1_dot_0_dot_5.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/data1/riverbed/NetIM/2.7.0_3413/logstash/linux/logstash-7.17.3-1.0.5/logstash-core/lib/logstash/agent.rb:383)", "org.jruby.runtime.CompiledIRBlockBody.callDirect(CompiledIRBlockBody.java:138)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)", "org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:52)", "org.jruby.runtime.Block.call(Block.java:139)", "org.jruby.RubyProc.call(RubyProc.java:318)", "org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:105)", "java.base/java.lang.Thread.run(Thread.java:829)"]}
[2022-10-04T07:45:58,251][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<LogStash::Error: Don't know how to handle `Java::JavaUtil::NoSuchElementException` for `PipelineAction::Create<group_relation>`>, :backtrace=>["org/logstash/execution/ConvergeResultExt.java:135:in `create'", "org/logstash/execution/ConvergeResultExt.java:60:in `add'", "/data1/riverbed/NetIM/2.7.0_3413/logstash/linux/logstash-7.17.3-1.0.5/logstash-core/lib/logstash/agent.rb:396:in `block in converge_state'"]}
This report describes random startup failures in Logstash 7.17.6 / with preceding AliasRegistry exceptions thrown during pipeline startup. I think this is possibly related to #14002 and, if so, may require a backport to 7.17.x
Logstash information:
Please include the following information:
Plugins installed:
JVM (e.g.
java -version
):OS version
Description of the problem including expected versus actual behavior:
Pipelines fail to start and Logstash exits:
Steps to reproduce:
The Logstash configuration includes 29 pipelines, using a mixture of JDBC and Http input plugins. Start Logstash, occasionally startup will fail and Logstash will exit.
(The pipeline conf files can be provided if required)
The text was updated successfully, but these errors were encountered: