# Mongo - elastic sync using logstash error (java.lang.RuntimeException: getprotobyname\_r failed)

**URL:** <https://discuss.elastic.co/t/mongo-elastic-sync-using-logstash-error-java-lang-runtimeexception-getprotobyname-r-failed/344151>\
**Category:** Elastic Search\
**Tags:** docker, elastic-app-search\
**Created:** [September 29, 2023, 4:04pm UTC](https://discuss.elastic.co/t/mongo-elastic-sync-using-logstash-error-java-lang-runtimeexception-getprotobyname-r-failed/344151 "2023-09-29T16:04:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siva\_k](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siva_k/32/122280_2.png) [@siva\_k](https://discuss.elastic.co/u/siva_k)\
**Post date:** [September 29, 2023, 4:04pm UTC](https://discuss.elastic.co/t/mongo-elastic-sync-using-logstash-error-java-lang-runtimeexception-getprotobyname-r-failed/344151/1 "2023-09-29T16:04:48Z")

</div>

# conf:

input {  
mongodb {  
uri =\> 'mongodb://admin:argos@mongodatabase:27017/testdb?ssl=false'  
placeholder\_db\_dir =\> '/opt/logstash-mongodb/'  
placeholder\_db\_name =\> 'logstash\_sqlite.db'  
collection =\> 'testcollection'  
batch\_size =\> 5000  
}  
}  
filter {

# } output { stdout { codec =\> rubydebug } elasticsearch { action =\> "index" index =\> "mongo\_logger\_data" hosts =\> ["es01:9200"] user =\> "elastic" password =\> "changeme" } } Error:

ep 29, 2023 3:56:27 PM jnr.netdb.NativeProtocolsDB load  
WARNING: Failed to load native protocols db  
java.lang.RuntimeException: getprotobyname\_r failed  
at jnr.netdb.NativeProtocolsDB$LinuxNativeProtocolsDB.getProtocolByName(NativeProtocolsDB.java:180)  
at jnr.netdb.NativeProtocolsDB.load(NativeProtocolsDB.java:80)  
at jnr.netdb.NativeProtocolsDB.access$000(NativeProtocolsDB.java:40)  
at jnr.netdb.NativeProtocolsDB$SingletonHolder.(NativeProtocolsDB.java:47)  
at jnr.netdb.NativeProtocolsDB.getInstance(NativeProtocolsDB.java:43)  
at jnr.netdb.Protocol$ProtocolDBSingletonHolder.load(Protocol.java:107)  
at jnr.netdb.Protocol$ProtocolDBSingletonHolder.(Protocol.java:103)  
at jnr.netdb.Protocol.getProtocolDB(Protocol.java:96)  
at jnr.netdb.Protocol.getProtocolByNumber(Protocol.java:59)  
at org.jruby.ext.socket.RubySocket.(RubySocket.java:732)  
at org.jruby.RubyClass.allocate(RubyClass.java:232)  
at org.jruby.RubyClass.newInstance(RubyClass.java:930)  
at org.jruby.RubyIO.newInstance(RubyIO.java:866)  
at org.jruby.RubyIO$INVOKER$s$0$0$newInstance.call(RubyIO$INVOKER$s$0$0$newInstance.gen)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:452)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:92)  
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:561)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:128)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:115)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:452)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:92)  
at org.jruby.RubyClass.newInstance(RubyClass.java:931)  
at org.jruby.RubyClass$INVOKER$i$newInstance.call(RubyClass$INVOKER$i$newInstance.gen)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:452)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:92)  
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:561)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:88)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:238)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)  
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:228)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:516)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:293)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:328)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.Interpreter.INTERPRET\_BLOCK(Interpreter.java:116)  
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)  
at org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:170)  
at org.jruby.runtime.BlockBody.yield(BlockBody.java:108)  
at org.jruby.runtime.Block.yield(Block.java:188)  
at org.jruby.RubyArray.each(RubyArray.java:1987)  
at org.jruby.RubyArray$INVOKER$i$0$0$each.call(RubyArray$INVOKER$i$0$0$each.gen)  
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:561)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:452)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:92)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:103)  
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:558)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.Interpreter.INTERPRET\_BLOCK(Interpreter.java:116)  
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)  
at org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:76)  
at org.jruby.runtime.Block.yieldSpecific(Block.java:157)  
at org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:498)  
at org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:84)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:166)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:98)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:128)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:115)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:452)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:92)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:103)  
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:558)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:88)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:238)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:225)  
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:228)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:516)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:293)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:328)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.Interpreter.INTERPRET\_BLOCK(Interpreter.java:116)  
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)  
at org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:76)  
at org.jruby.runtime.Block.yieldSpecific(Block.java:157)  
at org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:498)  
at org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:84)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:166)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:98)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:128)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:115)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:452)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:92)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:103)  
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:558)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:76)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:164)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)  
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:212)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:474)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:350)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:76)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:164)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)  
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:212)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:474)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:350)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.Interpreter.INTERPRET\_BLOCK(Interpreter.java:116)  
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)  
at org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:76)  
at org.jruby.runtime.Block.yieldSpecific(Block.java:157)  
at org.jruby.ir.runtime.IRRuntimeHelpers.yieldSpecific(IRRuntimeHelpers.java:498)  
at org.jruby.ir.instructions.YieldInstr.interpret(YieldInstr.java:84)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.processOtherOp(StartupInterpreterEngine.java:166)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:98)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:82)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:201)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:188)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:506)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:259)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:270)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:341)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:76)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:164)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)  
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:212)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:474)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:350)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.Interpreter.INTERPRET\_BLOCK(Interpreter.java:116)  
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)  
at org.jruby.runtime.IRBlockBody.yieldSpecific(IRBlockBody.java:76)  
at org.jruby.runtime.Block.yieldSpecific(Block.java:157)  
at org.jruby.ext.thread.Mutex.synchronize(Mutex.java:171)  
at org.jruby.ext.thread.Mutex$INVOKER$i$0$0$synchronize.call(Mutex$INVOKER$i$0$0$synchronize.gen)  
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:561)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:452)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:92)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:103)  
at org.jruby.ir.instructions.CallBase.interpret(CallBase.java:558)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:367)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:76)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:164)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)  
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:212)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:474)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:350)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.InterpreterEngine.interpret(InterpreterEngine.java:76)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.INTERPRET\_METHOD(MixedModeIRMethod.java:164)  
at org.jruby.internal.runtime.methods.MixedModeIRMethod.call(MixedModeIRMethod.java:151)  
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:212)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:474)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:195)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:350)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.Interpreter.INTERPRET\_BLOCK(Interpreter.java:116)  
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)  
at org.jruby.runtime.IRBlockBody.doYield(IRBlockBody.java:170)  
at org.jruby.runtime.BlockBody.yield(BlockBody.java:108)  
at org.jruby.runtime.Block.yield(Block.java:188)  
at org.jruby.exceptions.CatchThrow.enter(CatchThrow.java:32)  
at org.jruby.RubyKernel.rbCatch(RubyKernel.java:1292)  
at org.jruby.RubyKernel$INVOKER$s$rbCatch.call(RubyKernel$INVOKER$s$rbCatch.gen)  
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:506)  
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:259)  
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:270)  
at org.jruby.ir.interpreter.InterpreterEngine.processCall(InterpreterEngine.java:341)  
at org.jruby.ir.interpreter.StartupInterpreterEngine.interpret(StartupInterpreterEngine.java:66)  
at org.jruby.ir.interpreter.Interpreter.INTERPRET\_BLOCK(Interpreter.java:116)  
at org.jruby.runtime.MixedModeIRBlockBody.commonYieldPath(MixedModeIRBlockBody.java:136)  
at org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:66)  
at org.jruby.runtime.IRBlockBody.call(IRBlockBody.java:58)  
at org.jruby.runtime.Block.call(Block.java:143)  
at org.jruby.RubyProc.call(RubyProc.java:352)  
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:110)  
at java.base/java.lang.Thread.run(Thread.java:833)

[2023-09-29T15:56:27,371][INFO][logstash.inputs.mongodb][main] Registering MongoDB input  
[2023-09-29T15:56:28,029][ERROR][logstash.javapipeline][main] Pipeline error {:pipeline\_id=\>"main", :exception=\>#\<Sequel::DatabaseConnectionError: Java::JavaSql::SQLException: Error opening connection\>, :backtrace=\>["org.sqlite.core.CoreConnection.open(org/sqlite/core/CoreConnection.java:213)", "org.sqlite.core.CoreConnection.(org/sqlite/core/CoreConnection.java:74)", "org.sqlite.jdbc3.JDBC3Connection.(org/sqlite/jdbc3/JDBC3Connection.java:24)", "org.sqlite.jdbc4.JDBC4Connection.(org/sqlite/jdbc4/JDBC4Connection.java:23)", "org.sqlite.SQLiteConnection.(org/sqlite/SQLiteConnection.java:45)", "org.sqlite.JDBC.createConnection(org/sqlite/JDBC.java:114)", "org.sqlite.JDBC.connect(org/sqlite/JDBC.java:88)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:77)", "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:568)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:359)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:217)", "RUBY.connect(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/adapters/jdbc.rb:237)", "RUBY.new\_connection(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/database/connecting.rb:248)", "RUBY.make\_new(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/connection\_pool.rb:161)", "RUBY.assign\_connection(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/connection\_pool/threaded.rb:209)", "RUBY.acquire(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/connection\_pool/threaded.rb:139)", "RUBY.hold(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/connection\_pool/threaded.rb:91)", "RUBY.synchronize(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/database/connecting.rb:293)", "RUBY.test\_connection(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/database/connecting.rb:302)", "RUBY.initialize(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/database/misc.rb:188)", "org.jruby.RubyClass.new(org/jruby/RubyClass.java:904)", "org.jruby.RubyClass$INVOKER$i$newInstance.call(org/jruby/RubyClass$INVOKER$i$newInstance.gen)", "RUBY.connect(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/database/connecting.rb:57)", "RUBY.connect(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/sequel-5.71.0/lib/sequel/core.rb:124)", "RUBY.register(/usr/share/logstash/vendor/bundle/jruby/3.1.0/gems/logstash-input-mongodb-0.4.1/lib/logstash/inputs/mongodb.rb:179)", "RUBY.register\_plugins(/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:237)", "org.jruby.RubyArray.each(org/jruby/RubyArray.java:1987)", "org.jruby.RubyArray$INVOKER$i$0$0$each.call(org/jruby/RubyArray$INVOKER$i$0$0$each.gen)", "RUBY.register\_plugins(/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:236)", "RUBY.start\_inputs(/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:395)", "RUBY.start\_workers(/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:320)", "RUBY.run(/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:194)", "RUBY.start(/usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:146)", "org.jruby.RubyProc.call(org/jruby/RubyProc.java:352)", "java.lang.Thread.run(java/lang/Thread.java:833)"], "pipeline.sources"=\>["/etc/logstash/conf.d/mongodata.conf"], :thread=\>"#\<Thread:0x105d704 /usr/share/logstash/logstash-core/lib/logstash/java\_pipeline.rb:134 run\>"}  
[2023-09-29T15:56:28,030][INFO][logstash.javapipeline][main] Pipeline terminated {"pipeline.id"=\>"main"}  
[2023-09-29T15:56:28,033][ERROR][logstash.agent] Failed to execute action {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message=\>"Could not execute action: PipelineAction::Create, action\_result: false", :backtrace=\>nil}  
[2023-09-29T15:56:28,044][INFO][logstash.runner] Logstash shut down.  
[2023-09-29T15:56:28,049][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:795) ~[jruby.jar:?]  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:758) ~[jruby.jar:?]  
at usr.share.logstash.lib.bootstrap.environment.(/usr/share/logstash/lib/bootstrap/environment.rb:90) ~[?:?]

---

<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:** [October 27, 2023, 4:05pm UTC](https://discuss.elastic.co/t/mongo-elastic-sync-using-logstash-error-java-lang-runtimeexception-getprotobyname-r-failed/344151/2 "2023-10-27T16:05:00Z")

</div>

Closed on October 27, 2023, 4:05pm UTC

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