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
Hi,
We are having ongoing problem with the logstash-input-google_pubsub (1.2.1).
The problem comes and goes sort of randomly and when it occurs the symptom is that logstash itself refuses to start. The very odd thing in this problem is that if you keep starting logstash service manually it will usually start on 6th or 7th try when suddenly google_pubsub plugin is mysteriously found.
We have already triple checked the permissions and we also tried to check if this is dependency related issue, but got nothing useful out of dependencies. Everything is looking ok until logstash is restarted and then problem might come up again.
Logstash is in version 7.10.1 and it is using bundled Java which is AdoptOpenJDK (build 11.0.8+10).
Error message from the logstash's log is the following when this error occurs:
[2021-03-31T11:03:34,716][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:gcp-prod-operations, :exception=>"Java::JavaLang::IllegalStateException", :message=>"Unable to configure plugins: (PluginLoadingError) Couldn't find any input plugin named 'google_pubsub'. Are you sure this is correct? Trying to load the google_pubsub input plugin resulted in this error: load error: logstash/inputs/google_pubsub -- java.lang.NoClassDefFoundError: com/google/protobuf/GeneratedMessageV3", :backtrace=>["org.logstash.config.ir.CompiledPipeline.<init>(CompiledPipeline.java:119)", "org.logstash.execution.JavaBasePipelineExt.initialize(JavaBasePipelineExt.java:83)", "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)", "usr.share.logstash.logstash_minus_core.lib.logstash.java_pipeline.RUBY$method$initialize$0(/usr/share/logstash/logstash-core/lib/logstash/java_pipeline.rb:47)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:80)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:70)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207)", "usr.share.logstash.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0(/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:52)", "usr.share.logstash.logstash_minus_core.lib.logstash.pipeline_action.create.RUBY$method$execute$0$__VARARGS__(/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb)", "org.jruby.internal.runtime.methods.CompiledIRMethod.call(CompiledIRMethod.java:80)", "org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:70)", "org.jruby.ir.targets.InvokeSite.invoke(InvokeSite.java:207)", "usr.share.logstash.logstash_minus_core.lib.logstash.agent.RUBY$block$converge_state$2(/usr/share/logstash/logstash-core/lib/logstash/agent.rb:365)", "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:834)"]}
After the error Logstash goes into restart loop and eventually crashes with the following message:
[FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.13.0.jar:?]
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.13.0.jar:?]
One more error, which can be seen from time to time is: Unable to configure plugins: (PluginLoadingError) Couldn't find any input plugin named 'google_pubsub'
Any help on how to troubleshoot this further or maybe even fix this will be appreciated. I will gladly provide extra information, if needed.
Best Regards,
Janne Heino
The text was updated successfully, but these errors were encountered:
I'm experiencing the same issue, except that it's this module that randomly can't be loaded: require_jar('com.google.cloud', 'google-cloud-pubsub', '1.37.1')
Hi,
We are having ongoing problem with the logstash-input-google_pubsub (1.2.1).
The problem comes and goes sort of randomly and when it occurs the symptom is that logstash itself refuses to start. The very odd thing in this problem is that if you keep starting logstash service manually it will usually start on 6th or 7th try when suddenly google_pubsub plugin is mysteriously found.
We have already triple checked the permissions and we also tried to check if this is dependency related issue, but got nothing useful out of dependencies. Everything is looking ok until logstash is restarted and then problem might come up again.
Logstash is in version 7.10.1 and it is using bundled Java which is AdoptOpenJDK (build 11.0.8+10).
Error message from the logstash's log is the following when this error occurs:
After the error Logstash goes into restart loop and eventually crashes with the following message:
One more error, which can be seen from time to time is:
Unable to configure plugins: (PluginLoadingError) Couldn't find any input plugin named 'google_pubsub'
Any help on how to troubleshoot this further or maybe even fix this will be appreciated. I will gladly provide extra information, if needed.
Best Regards,
Janne Heino
The text was updated successfully, but these errors were encountered: