Unsupported http.type [ssl_netty4] error


(ezhang) #1

Hi,
here are my environment settings. When I enable encryption with http.type: ssl_netty4. I got “Unsupported http.type [ssl_netty4] error”. Could anyone help me out?

java version: openjdk version “1.8.0_201”
ES stack version: ES6.5.4
readonlyreset version: 1.17.6

readonlyrest config:

readonlyrest
    ssl:
    keystore_file: "es.jks"
    keystore_pass: changeit
    key_pass: changeit
    access_control_rules:
    - name: "Require HTTP Basic Auth"
      type: allow
      auth_key: user:password

==============

[2019-05-05T07:06:39,559][INFO ][t.b.r.a.f.CoreFactory ] [aojump-cn01] ADDING BLOCK: { name: ‘Require HTTP Basic Auth’, policy: ALLOW, rules: [auth_key]

[2019-05-05T07:06:39,565][INFO ][t.b.r.e.IndexLevelActionFilter] [aojump-cn01] Configuration reloaded - ReadonlyREST enabled

[2019-05-05T07:06:39,566][INFO ][t.b.r.e.IndexLevelActionFilter] [aojump-cn01] Readonly REST plugin was loaded…

[2019-05-05T07:06:39,824][DEBUG][o.e.a.ActionModule ] [aojump-cn01] Using REST wrapper from plugin tech.beshu.ror.es.ReadonlyRestPlugin

[2019-05-05T07:06:40,322][ERROR][o.e.b.Bootstrap ] [aojump-cn01] Exception

java.lang.IllegalStateException: Unsupported http.type [ssl_netty4]

at org.elasticsearch.common.network.NetworkModule.getHttpServerTransportSupplier(NetworkModule.java:195) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.node.Node.<init>(Node.java:515) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.5.4.jar:6.5.4]

at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.5.4.jar:6.5.4]

[2019-05-05T07:06:40,327][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [aojump-cn01] uncaught exception in thread [main]

org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unsupported http.type [ssl_netty4]

at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.5.4.jar:6.5.4]

at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.5.4.jar:6.5.4]

Caused by: java.lang.IllegalStateException: Unsupported http.type [ssl_netty4]

at org.elasticsearch.common.network.NetworkModule.getHttpServerTransportSupplier(NetworkModule.java:195) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.node.Node.<init>(Node.java:515) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.4.jar:6.5.4]

at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.4.jar:6.5.4]

… 6 more


(Simone Scarduzio) #2

your YAML has various problems:

  1. The initial “readonlyrest” is missing a colon, should be “readonlyrest:”
  2. All the ssl related configurations should be indented under “ssl”

Try this:

readonlyrest:
    ssl:
      keystore_file: "es.jks"
      keystore_pass: changeit
      key_pass: changeit

    access_control_rules:
    - name: "Require HTTP Basic Auth"
      type: allow
      auth_key: user:password

(ezhang) #3

Thanks sscarduzio. your suggestion fix my problem.


(Simone Scarduzio) closed #4