Elasticsearch 5.6 docker-compose x-pack license expired

hello community,

iam currently try to restart my elastic-search setup for my owncloud instance.
sadly the newest elasticsearch version supported there is 5.6 :frowning:

after my first setup all was fine.
now i had some times where i did not start the docker-compose setup..
and now i get an license expired problem:

user@hxx:~/elasticsearch$ docker-compose up
Recreating es01 ... done
Attaching to es01
es01    | [2021-03-23T09:18:19,829][INFO ][o.e.n.Node               ] [es01] initializing ...
es01    | [2021-03-23T09:18:19,963][INFO ][o.e.e.NodeEnvironment    ] [es01] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/ploop49038p1)]], net usable_space [958.2gb], net total_space [1.1tb], spins? [possibly], types [ext4]
es01    | [2021-03-23T09:18:19,963][INFO ][o.e.e.NodeEnvironment    ] [es01] heap size [494.9mb], compressed ordinary object pointers [true]
es01    | [2021-03-23T09:18:20,038][INFO ][o.e.n.Node               ] [es01] node name [es01], node ID [2HrDrGi2RvyTCndsmkm3vA]
es01    | [2021-03-23T09:18:20,039][INFO ][o.e.n.Node               ] [es01] version[5.6.0], pid[1], build[781a835/2017-09-07T03:09:58.087Z], OS[Linux/4.15.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_141/25.141-b16]
es01    | [2021-03-23T09:18:20,039][INFO ][o.e.n.Node               ] [es01] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.cgroups.hierarchy.override=/, -Xms512m, -Xmx512m, -Des.path.home=/usr/share/elasticsearch]
es01    | [2021-03-23T09:18:22,565][INFO ][o.e.p.PluginsService     ] [es01] loaded module [aggs-matrix-stats]
es01    | [2021-03-23T09:18:22,566][INFO ][o.e.p.PluginsService     ] [es01] loaded module [ingest-common]
es01    | [2021-03-23T09:18:22,566][INFO ][o.e.p.PluginsService     ] [es01] loaded module [lang-expression]
es01    | [2021-03-23T09:18:22,566][INFO ][o.e.p.PluginsService     ] [es01] loaded module [lang-groovy]
es01    | [2021-03-23T09:18:22,566][INFO ][o.e.p.PluginsService     ] [es01] loaded module [lang-mustache]
es01    | [2021-03-23T09:18:22,566][INFO ][o.e.p.PluginsService     ] [es01] loaded module [lang-painless]
es01    | [2021-03-23T09:18:22,566][INFO ][o.e.p.PluginsService     ] [es01] loaded module [parent-join]
es01    | [2021-03-23T09:18:22,566][INFO ][o.e.p.PluginsService     ] [es01] loaded module [percolator]
es01    | [2021-03-23T09:18:22,567][INFO ][o.e.p.PluginsService     ] [es01] loaded module [reindex]
es01    | [2021-03-23T09:18:22,567][INFO ][o.e.p.PluginsService     ] [es01] loaded module [transport-netty3]
es01    | [2021-03-23T09:18:22,567][INFO ][o.e.p.PluginsService     ] [es01] loaded module [transport-netty4]
es01    | [2021-03-23T09:18:22,568][INFO ][o.e.p.PluginsService     ] [es01] loaded plugin [ingest-attachment]
es01    | [2021-03-23T09:18:22,568][INFO ][o.e.p.PluginsService     ] [es01] loaded plugin [ingest-geoip]
es01    | [2021-03-23T09:18:22,568][INFO ][o.e.p.PluginsService     ] [es01] loaded plugin [ingest-user-agent]
es01    | [2021-03-23T09:18:22,568][INFO ][o.e.p.PluginsService     ] [es01] loaded plugin [x-pack]
es01    | [2021-03-23T09:18:25,477][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/73] [Main.cc@128] controller (64 bit): Version 5.6.0 (Build 93aea61f57f7d8) Copyright (c) 2017 Elasticsearch BV
es01    | [2021-03-23T09:18:25,535][INFO ][o.e.d.DiscoveryModule    ] [es01] using discovery type [single-node]
es01    | [2021-03-23T09:18:26,603][INFO ][o.e.n.Node               ] [es01] initialized
es01    | [2021-03-23T09:18:26,604][INFO ][o.e.n.Node               ] [es01] starting ...
es01    | [2021-03-23T09:18:27,620][INFO ][o.e.t.TransportService   ] [es01] publish_address {172.18.0.5:9300}, bound_addresses {0.0.0.0:9300}
es01    | [2021-03-23T09:18:27,633][WARN ][o.e.b.BootstrapChecks    ] [es01] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
es01    | [2021-03-23T09:18:27,653][INFO ][o.e.c.s.ClusterService   ] [es01] new_master {es01}{2HrDrGi2RvyTCndsmkm3vA}{aiFvzVxTSsmJhTabZa9g7w}{172.18.0.5}{172.18.0.5:9300}{ml.max_open_jobs=10, ml.enabled=true}, reason: single-node-start-initial-join[{es01}{2HrDrGi2RvyTCndsmkm3vA}{aiFvzVxTSsmJhTabZa9g7w}{172.18.0.5}{172.18.0.5:9300}{ml.max_open_jobs=10, ml.enabled=true}]
es01    | [2021-03-23T09:18:27,693][INFO ][o.e.h.n.Netty4HttpServerTransport] [es01] publish_address {172.18.0.5:9200}, bound_addresses {0.0.0.0:9200}
es01    | [2021-03-23T09:18:27,693][INFO ][o.e.n.Node               ] [es01] started
es01    | [2021-03-23T09:18:28,809][INFO ][o.e.l.LicenseService     ] [es01] license [bbb9d9fb-2f36-42f6-83a3-e8fee83d7e94] mode [trial] - valid
es01    | [2021-03-23T09:18:28,810][WARN ][o.e.l.LicenseService     ] [es01] license [bbb9d9fb-2f36-42f6-83a3-e8fee83d7e94] - expired
es01    | [2021-03-23T09:18:28,829][WARN ][o.e.l.LicenseService     ] [es01] 
es01    | #
es01    | # LICENSE [EXPIRED] ON [TUESDAY, DECEMBER 29, 2020]. IF YOU HAVE A NEW LICENSE, PLEASE UPDATE IT.
es01    | # OTHERWISE, PLEASE REACH OUT TO YOUR SUPPORT CONTACT.
es01    | # 
es01    | # COMMERCIAL PLUGINS OPERATING WITH REDUCED FUNCTIONALITY
es01    | # - security
es01    | #  - Cluster health, cluster stats and indices stats operations are blocked
es01    | #  - All data operations (read and write) continue to work
es01    | # - watcher
es01    | #  - PUT / GET watch APIs are disabled, DELETE watch API continues to work
es01    | #  - Watches execute and write to the history
es01    | #  - The actions of the watches don't execute
es01    | # - monitoring
es01    | #  - The agent will stop collecting cluster and indices metrics
es01    | #  - The agent will stop automatically cleaning indices older than [xpack.monitoring.history.duration]
es01    | # - graph
es01    | #  - Graph explore APIs are disabled
es01    | # - ml
es01    | #  - Machine learning APIs are disabled
es01    | # - deprecation
es01    | #  - Deprecation APIs are disabled
es01    | # - upgrade
es01    | #  - Upgrade API is disabled
es01    | [2021-03-23T09:18:28,842][INFO ][o.e.g.GatewayService     ] [es01] recovered [24] indices into cluster_state
es01    | [2021-03-23T09:18:30,531][INFO ][o.e.c.r.a.AllocationService] [es01] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.monitoring-es-6-2020.11.29][0]] ...]).

and from my feeling that is the reason that my owncloud search also does not work anymore..

i orignally just disabled the xpack things like so in my docker-compose.yml

environment:
      - xpack.security.enabled=false

based on the documentation at

but as sayed that allready was in place...

so i also tried to add this to to my docker-compose.yml

environment:
      - xpack.license.self_generated.type=basic
# ...

X-Pack License Settings
but that results just in an exception that this option is not found... - logically - as this is first ntroduced in v6.1 ...

[2021-03-23T09:09:04,906][INFO ][o.e.p.PluginsService     ] [es01] loaded plugin [x-pack]
es01    | [2021-03-23T09:09:06,422][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [es01] uncaught exception in thread [main]
es01    | org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [xpack.license.self_generated.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
es01    |       at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-5.6.0.jar:5.6.0]
...

so is there any other option i have not found / is missing to change the license type to basic or otherwise get it to just run again?
or have i to do something else?

and yes i know it would be much better to update the elasticsearch - but that is currently out of options for me...

sunny greetings
stefan

1 Like

Welcome to our community! :smiley:

Unfortunately 5.X reached EOL as of some time ago, so it's no longer directly supported.

However Elasticsearch will still run with an expired license, some of the functionality is disabled, but it will still work.

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