Elastic-search-6.7.0 not starting after x-pack configuration

Hello,

I was installing elasticsearch the following is the error i get when i start elasticsearch

While i was running these below commands. I did not set any password. I just hit enter and did not specify anything regarding xpack.security.transport.ssl.keystore.secure_password or xpack.security.transport.ssl.truststore.secure_password

My config for xpack looks like this.
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: full
xpack.security.transport.ssl.keystore.path: certs/master.p12
xpack.security.transport.ssl.truststore.path: certs/master.p12

Error i get when i start elasticsearch is below


    ./bin/elasticsearch-keystore add x-pack.security.http.ssl.truststore.secure_password```

````g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-2470306667669047508, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/home/ubuntu/elasticsearch, -Des.path.conf=/home/ubuntu/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[2019-04-03T21:12:30,354][INFO ][o.e.p.PluginsService     ] [master] loaded module [aggs-matrix-stats]
[2019-04-03T21:12:30,355][INFO ][o.e.p.PluginsService     ] [master] loaded module [analysis-common]
[2019-04-03T21:12:30,355][INFO ][o.e.p.PluginsService     ] [master] loaded module [ingest-common]
[2019-04-03T21:12:30,355][INFO ][o.e.p.PluginsService     ] [master] loaded module [ingest-geoip]
[2019-04-03T21:12:30,356][INFO ][o.e.p.PluginsService     ] [master] loaded module [ingest-user-agent]
[2019-04-03T21:12:30,356][INFO ][o.e.p.PluginsService     ] [master] loaded module [lang-expression]
[2019-04-03T21:12:30,356][INFO ][o.e.p.PluginsService     ] [master] loaded module [lang-mustache]
[2019-04-03T21:12:30,357][INFO ][o.e.p.PluginsService     ] [master] loaded module [lang-painless]
[2019-04-03T21:12:30,357][INFO ][o.e.p.PluginsService     ] [master] loaded module [mapper-extras]
[2019-04-03T21:12:30,357][INFO ][o.e.p.PluginsService     ] [master] loaded module [parent-join]
[2019-04-03T21:12:30,357][INFO ][o.e.p.PluginsService     ] [master] loaded module [percolator]
[2019-04-03T21:12:30,357][INFO ][o.e.p.PluginsService     ] [master] loaded module [rank-eval]
[2019-04-03T21:12:30,358][INFO ][o.e.p.PluginsService     ] [master] loaded module [reindex]
[2019-04-03T21:12:30,358][INFO ][o.e.p.PluginsService     ] [master] loaded module [repository-url]
[2019-04-03T21:12:30,358][INFO ][o.e.p.PluginsService     ] [master] loaded module [transport-netty4]
[2019-04-03T21:12:30,358][INFO ][o.e.p.PluginsService     ] [master] loaded module [tribe]
[2019-04-03T21:12:30,358][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-ccr]
[2019-04-03T21:12:30,359][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-core]
[2019-04-03T21:12:30,359][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-deprecation]
[2019-04-03T21:12:30,359][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-graph]
[2019-04-03T21:12:30,359][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-ilm]
[2019-04-03T21:12:30,360][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-logstash]
[2019-04-03T21:12:30,360][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-ml]
[2019-04-03T21:12:30,360][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-monitoring]
[2019-04-03T21:12:30,360][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-rollup]
[2019-04-03T21:12:30,360][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-security]
[2019-04-03T21:12:30,361][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-sql]
[2019-04-03T21:12:30,361][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-upgrade]
[2019-04-03T21:12:30,361][INFO ][o.e.p.PluginsService     ] [master] loaded module [x-pack-watcher]
[2019-04-03T21:12:30,362][INFO ][o.e.p.PluginsService     ] [master] no plugins loaded
[2019-04-03T21:12:34,641][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [master] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown secure setting [x-pack.security.transport.ssl.keystore.secure_password] did you mean any of [xpack.security.transport.ssl.keystore.secure_password, xpack.security.transport.ssl.keystore.secure_key_password, xpack.security.transport.ssl.truststore.secure_password, xpack.security.transport.ssl.keystore.key_password, xpack.security.transport.ssl.keystore.password, xpack.security.http.ssl.keystore.secure_password, xpack.security.transport.ssl.truststore.password, xpack.security.http.ssl.keystore.secure_key_password, xpack.security.http.ssl.truststore.secure_password, xpack.security.http.ssl.keystore.key_password, xpack.security.transport.ssl.keystore.path, xpack.security.transport.ssl.keystore.algorithm, xpack.security.transport.ssl.keystore.type, xpack.http.ssl.keystore.secure_password, xpack.security.http.ssl.keystore.password]?```


Can anyone advice ?

Thanks

Hi @kishorerv93,

Could you please paste your full config file i.e. elasticsearch.yml file here?

This error usually occur when you have mentioned x-pack instead of xpack in your config file.

Br,
Harsh Bajaj

xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /home/ubuntu/elasticsearch/config/certs/vraj-cert.p12
xpack.security.transport.ssl.truststore.path: /home/ubuntu/elasticsearch/config/certs/vraj-cert.p12
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: /home/ubuntu/elasticsearch/config/certs/vraj-cert.p12
xpack.security.http.ssl.truststore.path: /home/ubuntu/elasticsearch/config/certs/vraj-cert.p12```

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