I correctly configured everything according to the documentation. But I'm really struck at this error:
Unexpected exception while running Enterprise Search:
Error: cannot load (ext) (org.jruby.ext.openssl.OpenSSL) at org/jruby/ext/jruby/JRubyUtilLibrary.java:201:in `load_ext'
I tried everything I can, but was unable to overcome this particular error:
- Installed xpack security to elasticsearch
- Correctly configured yml config files according to the documentation.
- Ensured both elasticsearch and enterprise search are 7.9.2
- Tested with both java 8 & java 11
- configured elastic password, security encryption keys for enterprise search.
- Elasticsearch is working perfectly, but Enterprise Search is failing to start.
It seems the error is related to the java version, as many other users who pointed to jruby error have resolved by switching the version of their java. But its not working in my case.
Full error output:
ubuntu@srisri:~/enterprise-search-7.9.2$ ENT_SEARCH_DEFAULT_PASSWORD=***REMOVED**** bin/enterprise-search
Found java executable in PATH
Java version detected: 11.0.5 (major version: 11)
Enterprise Search is starting...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/home/ubuntu/enterprise-search-7.9.2/lib/war/lib/jruby-core-9.2.9.0-complete.jar) to method sun.nio.ch.NativeThread.signal(long)
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Unexpected exception while running Enterprise Search:
Error: cannot load (ext) (org.jruby.ext.openssl.OpenSSL) at org/jruby/ext/jruby/JRubyUtilLibrary.java:201:in `load_ext'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jopenssl/load.rb:31:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/openssl.rb:1:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/key_generator.rb:2:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/railties-4.2.11.3/lib/rails/application.rb:5:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/railties-4.2.11.3/lib/rails.rb:11:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/config/rails_version_support.class:1:in `<main>'
org/jruby/RubyKernel.java:1020:in `load'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:268:in `block in load'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:268:in `load'
/home/ubuntu/enterprise-search-7.9.2/lib/war/config/rails_version_support.rb:1:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/config/application.class:2:in `<main>'
org/jruby/RubyKernel.java:1020:in `load'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:268:in `block in load'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:268:in `load'
/home/ubuntu/enterprise-search-7.9.2/lib/war/config/application.rb:1:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/shared_togo/lib/shared_togo/cli/command.class:36:in `initialize'
/home/ubuntu/enterprise-search-7.9.2/lib/war/shared_togo/lib/shared_togo/cli/app_server_command.class:42:in `initialize'
/home/ubuntu/enterprise-search-7.9.2/lib/war/shared_togo/lib/shared_togo/cli/command.class:10:in `run_and_exit'
/home/ubuntu/enterprise-search-7.9.2/lib/war/shared_togo/lib/shared_togo/cli.class:143:in `run_supported_command'
/home/ubuntu/enterprise-search-7.9.2/lib/war/shared_togo/lib/shared_togo/cli.class:125:in `run_command'
/home/ubuntu/enterprise-search-7.9.2/lib/war/shared_togo/lib/shared_togo/cli.class:112:in `run!'
bin/enterprise-search-internal:15:in `<main>'
Similar result with Java 8
ubuntu@srisri:~/enterprise-search-7.9.2$ ENT_SEARCH_DEFAULT_PASSWORD=***REMOVED*** bin/enterprise-search
Found java executable in PATH
Java version detected: 1.8.0_265 (major version: 8)
Enterprise Search is starting...
Unexpected exception while running Enterprise Search:
Error: cannot load (ext) (org.jruby.ext.openssl.OpenSSL) at org/jruby/ext/jruby/JRubyUtilLibrary.java:201:in `load_ext'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jopenssl/load.rb:31:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/openssl.rb:1:in `<main>'
org/jruby/RubyKernel.java:978:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `block in require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/dependencies.rb:274:in `require'
/home/ubuntu/enterprise-search-7.9.2/lib/war/gems/gems/activesupport-4.2.11.3/lib/active_support/key_generator.rb:2:in `<main>'
org/jruby/RubyKernel.java:978:in `require'