Logstash upgrade crashing (6.4.2--> 6.8.20)

we are trying to upgrade logstash to new version we doing 2 step upgrade 6.4.2 --> 6.8.2 --> 7.15.2

we have downloaded rpm based installer and performed upgrade. Currently we are stuck at logstash version 6.8.2 . we are unable to fix the below issue issue.
we are using openjdk + os is oracle linux 7.8

[2021-11-28T12:00:28,615][WARN ][logstash.pipeline        ] CAUTION: Recommended inflight events max exceeded! Logstash will run with up to 20000 events in memory in your current configuration. If your message sizes are large this may cause instability with the default heap size. Please consider setting a non-standard heap size, changing the batch size (currently 5000), or changing the number of pipeline workers (currently 4) {:pipeline_id=>"main", :thread=>"#<Thread:0x35eacb8a run>"}
[2021-11-28T12:00:28,664][DEBUG][logstash.codecs.json     ] config LogStash::Codecs::JSON/@id = "json_2238cb05-715a-4b47-b5ff-775aa36178c6"
[2021-11-28T12:00:28,665][DEBUG][logstash.codecs.json     ] config LogStash::Codecs::JSON/@enable_metric = true
[2021-11-28T12:00:28,665][DEBUG][logstash.codecs.json     ] config LogStash::Codecs::JSON/@charset = "UTF-8"
[2021-11-28T12:00:28,714][DEBUG][io.netty.channel.MultithreadEventLoopGroup] -Dio.netty.eventLoopThreads: 4
[2021-11-28T12:00:28,735][DEBUG][io.netty.util.internal.InternalThreadLocalMap] -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
[2021-11-28T12:00:28,735][DEBUG][io.netty.util.internal.InternalThreadLocalMap] -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
[2021-11-28T12:00:28,745][DEBUG][io.netty.channel.nio.NioEventLoop] -Dio.netty.noKeySetOptimization: false
[2021-11-28T12:00:28,746][DEBUG][io.netty.channel.nio.NioEventLoop] -Dio.netty.selectorAutoRebuildThreshold: 512
[2021-11-28T12:00:28,760][DEBUG][io.netty.util.internal.PlatformDependent] org.jctools-core.MpscChunkedArrayQueue: available
[2021-11-28T12:00:28,804][DEBUG][io.netty.util.internal.NativeLibraryLoader] -Dio.netty.native.workdir: /usr/share/logstash/tmp (io.netty.tmpdir)
[2021-11-28T12:00:28,804][DEBUG][io.netty.util.internal.NativeLibraryLoader] -Dio.netty.native.deleteLibAfterLoading: true
[2021-11-28T12:00:28,804][DEBUG][io.netty.util.internal.NativeLibraryLoader] -Dio.netty.native.tryPatchShadedId: true
[2021-11-28T12:00:28,807][DEBUG][io.netty.util.internal.NativeLibraryLoader] Unable to load the library 'netty_tcnative_linux_x86_64_fedora', trying other loading mechanism.
java.lang.UnsatisfiedLinkError: no netty_tcnative_linux_x86_64_fedora in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860) ~[?:1.8.0_312]
        at java.lang.Runtime.loadLibrary0(Runtime.java:871) ~[?:1.8.0_312]
        at java.lang.System.loadLibrary(System.java:1124) ~[?:1.8.0_312]
        at io.netty.util.internal.NativeLibraryUtil.loadLibrary(NativeLibraryUtil.java:38) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_312]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_312]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_312]
        at io.netty.util.internal.NativeLibraryLoader$1.run(NativeLibraryLoader.java:371) ~[netty-all-4.1.49.Final.jar:4.1.49.Final]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_312]

-------------------------
[2021-11-28T12:20:30,483][ERROR][logstash.pipeline        ] Error registering plugin {:pipeline_id=>"main", :plugin=>"<LogStash::Inputs::Beats codec=><LogStash::Codecs::JSON id=>\"json_80671f38-c7fd-483c-8f11-2d387c02c797\", enable_metric=>true, charset=>\"UTF-8\">, id=>\"afe6e98790c12af57a73a23434e4a620de99b001391e6379e7abbe507bee7b20\", type=>\"filebeat\", port=>5044, enable_metric=>true, host=>\"0.0.0.0\", ssl=>false, add_hostname=>true, ssl_verify_mode=>\"none\", ssl_peer_metadata=>false, include_codec_tag=>true, ssl_handshake_timeout=>10000, tls_min_version=>1, tls_max_version=>1.2, cipher_suites=>[\"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\", \"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\", \"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\", \"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\", \"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384\", \"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384\", \"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256\", \"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256\"], client_inactivity_timeout=>60, executor_threads=>2>", :error=>"cannot link Java class io.netty.handler.ssl.OpenSsl, probable missing dependency: io.netty.internal.tcnative.SSLContext.setCipherSuite(JLjava/lang/String;Z)Z", :thread=>"#<Thread:0x1780213c run>"}
------------------------------------------------------------
1-28T12:21:10,414][DEBUG][logstash.outputs.elasticsearch] Closing adapter #<LogStash::Outputs::ElasticSearch::HttpClient::ManticoreAdapter:0x299f8107>
[2021-11-28T12:21:10,414][DEBUG][logstash.outputs.elasticsearch] Closing {:plugin=>"LogStash::Outputs::ElasticSearch"}
[2021-11-28T12:21:10,415][DEBUG][logstash.outputs.elasticsearch] Stopping sniffer
[2021-11-28T12:21:10,415][DEBUG][logstash.outputs.elasticsearch] Stopping resurrectionist
[2021-11-28T12:21:10,447][DEBUG][logstash.outputs.elasticsearch] Waiting for in use manticore connections
[2021-11-28T12:21:10,447][DEBUG][logstash.outputs.elasticsearch] Closing adapter #<LogStash::Outputs::ElasticSearch::HttpClient::ManticoreAdapter:0x1afeafe2>
[2021-11-28T12:21:10,451][ERROR][logstash.pipeline        ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<NameError: cannot link Java class io.netty.handler.ssl.OpenSsl, probable missing dependency: io.netty.internal.tcnative.SSLContext.setCipherSuite(JLjava/lang/String;Z)Z>, :backtrace=>["org/jruby/javasupport/JavaClass.java:292:in `for_name'", "org/jruby/javasupport/JavaClass.java:288:in `for_name'", "org/jruby/javasupport/JavaUtilities.java:38:in `get_proxy_class'", "uri:classloader:/jruby/java/core_ext/object.rb:44:in `block in java_import'", "org/jruby/RubyArray.java:2577:in `map'", "uri:classloader:/jruby/java/core_ext/object.rb:37:in `java_import'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-beats-5.1.9-java/lib/logstash/inputs/beats.rb:146:in `register'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:259:in `register_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270:in `block in register_plugins'", "org/jruby/RubyArray.java:1792:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270:in `register_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:413:in `start_inputs'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:311:in `start_workers'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:217:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:176:in `block in start'"], :thread=>"#<Thread:0xaee9541 run>"}
[2021-11-28T12:21:10,470][ERROR][logstash.agent           ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}

only way to resolve this was to install latest version of logstash (7.15.2) which comes with its own jdk and is backward compatible with 6.8 version of elk stack

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