Elastic_Log_Kibana_v7.17.15

Welcome to Elastic's Discussion Forums! I find myself confronted with this error in my log kibana. When I connect to the interface I get the message: "Kibana is not yet". Even though all my services are active. Please help me. My dissertation project is due in a few weeks.

tags":["info","savedobjects-service"],"pid":985,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 64008ms."}
{"type":"log","@timestamp":"2023-12-16T08:00:16+01:00","tags":["error","savedobjects-service"],"pid":985,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 15 in 64 seconds."}
tags":["info","savedobjects-service"],"pid":985,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 64008ms."}
{"type":"log","@timestamp":"2023-12-16T08:00:16+01:00","tags":["error","savedobjects-service"],"pid":985,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 15 in 64 seconds."}

How did you install Kibana and Elasticsearch?

I used the elasticsearch documentation. First I installed the repositories for version 7.17.X, then I moved on to installing the services.

Is Elasticsearch running?
Could you check what is the output when you check for the / URL?

I have the following message: Kibana is not yet

I meant, when you check Elasticsearch url.

Something like https://localhost:9200

This shows me the elasticsearch web page, with information on the cluster name, version and much more.

name	"node-1"
cluster_name	"ES"
cluster_uuid	"ewcRXE-NRYKSWF4kRVjTvg"
version	
number	"7.17.15"
build_flavor	"default"
build_type	"deb"
build_hash	"0b8ecfb4378335f4689c4223d1f1115f16bef3ba"
build_date	"2023-11-10T22:03:46.987399016Z"
build_snapshot	false
lucene_version	"8.11.1"
minimum_wire_compatibility_version	"6.8.0"
minimum_index_compatibility_version	"6.0.0-beta1"
tagline	"You Know, for Search"

How did you install Kibana exactly?
Which commands did you run exactly?

What did you modify?

Hello... Here is my kibana configuration file

Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "192.168.1.197"

# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
#server.basePath: ""

# Specifies whether Kibana should rewrite requests that are prefixed with
# `server.basePath` or require that they are rewritten by your reverse proxy.
# This setting was effectively always `false` before Kibana 6.3 and will
# default to `true` starting in Kibana 7.0.
#server.rewriteBasePath: false

# Specifies the public URL at which Kibana is available for end users. If
# `server.basePath` is configured this URL should end with the same basePath.
#server.publicBaseUrl: ""

# The maximum payload size in bytes for incoming server requests.
#server.maxPayload: 1048576

# The Kibana server's name.  This is used for display purposes.
#server.name: "your-hostname"

# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: "http://192.168.1.197:9200"

# Kibana uses an index in Elasticsearch to store saved searches, visualizations and
# dashboards. Kibana creates a new index if the index doesn't already exist.
#kibana.index: ".kibana"

# The default application to load.
#kibana.defaultAppId: "home"



# If your Elasticsearch is protected with basic authentication, these settings provide

# is proxied through the Kibana server.
elasticsearch.username: "kibana_system"
elasticsearch.password: "elastic"

xpack.encryptedSavedObjects.encryptionKey: "f33a3bf055016effed4ec876b371570c"
xpack.reporting.encryptionKey: "fb13bd5752d93254b7dee0eb5f0158dd"
xpack.security.encryptionKey: "5ec86e62a3c6a6c81c9e34ee4bc78bc7"

server.publicBaseUrl: "http://192.168.1.197:5601"
#xpack.encryptedSavedObjects.encryptionKey


#xpack.security.encryptionKey: "something_at_least_32_characters"

Installation phase
First, we added the Elastic signature key so that the download package could be verified using the command :

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

We then went on to install the apt-transport-https package on our Debian machine with the command sudo apt-get install apt-transport-https to guarantee the integrity of downloaded packages and protect against potential attacks such as the interception of unencrypted packages.
The next step was to add the Elasticsearch repository to our debian system.

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list

Once all these commands have been executed, we update our references and install our tools.

sudo apt-get update -y && sudo apt-get install elasticsearch

After installation, we run Elasticsearch with the command :
sudo systemctl start elasticsearch
To confirm that everything is working as expected, we point our curl command or our browser at the address http://192.168.1.197:9200, and we'll see the output of the elasticsearch web interface that I shared with you a little earlier.

After setting up Elasticsearch, we switched to Kibana, while maintaining the prerequisites that are no longer required. So let's run the service installation and startup commands in succession:

- sudo apt-get install kibana && sudo systemctl start kibana  

To test Kibana, point our curl command or browser at the address http://192.168.1.197:5601, and you'll see the following output:

Here is my elasticsearch confuguration file

---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: ES
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.

---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: "0.0.0.0"
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#

http.port: 9200

#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
#discovery.type: single-node
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["192.168.1.197" , "localhost"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# ---------------------------------- Security ----------------------------------
#
#                                 *** WARNING ***
#
# Elasticsearch security features are not enabled by default.
# These features are free, but require configuration changes to enable them.
# This means that users don’t have to provide credentials and can get full access
# to the cluster. Network connections are also not encrypted.
#
# To protect your data, we strongly encourage you to enable the Elasticsearch security features.
# Refer to the following documentation for instructions.
#

xpack.security.enabled: true
xpack.security.authc.api_key.enabled: true
xpack.security.transport.ssl.enabled: true

# https://www.elastic.co/guide/en/elasticsearch/reference/7.16/configuring-stack-security.html

Thanks for the very detailed information. That helps.

Could you try the following command on the machine where Kibana is running? (I think it's running on the same machine)

curl -u kibana_system:elastic http://192.168.1.197:9200

Also, could you share the Elasticsearch logs and the Kibana logs (from the start)?

Not exactly related, but I'd recommend that you start your new project with Elastic 8.11 as it's the most advanced version.

Here is my log elasticsearch

2023-10-11T09:36:42,227][INFO ][o.e.n.Node               ] [node-1] version[7.17.14], pid[25513], build[default/deb/774e3bfa4d52e2834e4d9d8d669d77e4e5c1017f/2023-10-05T22:17:33.780167078Z], OS[Linux/5.15.0-86-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/21/21+35-2513]
[2023-10-11T09:36:42,238][INFO ][o.e.n.Node               ] [node-1] JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]
[2023-10-11T09:36:42,251][INFO ][o.e.n.Node               ] [node-1] JVM arguments [-Xshare:auto, -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, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -Djava.security.manager=allow, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-17953803994196927762, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Xms7995m, -Xmx7995m, -XX:MaxDirectMemorySize=4192206848, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=deb, -Des.bundled_jdk=true]
[2023-10-11T09:36:44,637][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [aggs-matrix-stats]
[2023-10-11T09:36:44,638][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [analysis-common]
[2023-10-11T09:36:44,638][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [constant-keyword]
[2023-10-11T09:36:44,639][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [frozen-indices]
[2023-10-11T09:36:44,639][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-common]
[2023-10-11T09:36:44,639][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-geoip]
[2023-10-11T09:36:44,639][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-user-agent]
[2023-10-11T09:36:44,639][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [kibana]
[2023-10-11T09:36:44,639][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-expression]
[2023-10-11T09:36:44,640][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-mustache]
[2023-10-11T09:36:44,640][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-painless]
[2023-10-11T09:36:44,640][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [legacy-geo]
[2023-10-11T09:36:44,641][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [mapper-extras]
[2023-10-11T09:36:44,641][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [mapper-version]
[2023-10-11T09:36:44,641][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [parent-join]
[2023-10-11T09:36:44,641][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [percolator]
[2023-10-11T09:36:44,642][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [rank-eval]
[2023-10-11T09:36:44,642][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [reindex]
[2023-10-11T09:36:44,642][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repositories-metering-api]
[2023-10-11T09:36:44,642][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-encrypted]
[2023-10-11T09:36:44,643][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-url]
[2023-10-11T09:36:44,643][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [runtime-fields-common]
[2023-10-11T09:36:44,643][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [search-business-rules]
[2023-10-11T09:36:44,643][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [searchable-snapshots]
[2023-10-11T09:36:44,644][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [snapshot-repo-test-kit]
[2023-10-11T09:36:44,644][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [spatial]
[2023-10-11T09:36:44,644][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [systemd]
[2023-10-11T09:36:44,644][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transform]
[2023-10-11T09:36:44,644][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty4]
[2023-10-11T09:36:44,645][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [unsigned-long]
[2023-10-11T09:36:44,645][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [vector-tile]
[2023-10-11T09:36:44,645][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [vectors]
[2023-10-11T09:36:44,645][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [wildcard]
[2023-10-11T09:36:44,645][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-aggregate-metric]
[2023-10-11T09:36:44,645][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-analytics]
[2023-10-11T09:36:44,646][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-async]
[2023-10-11T09:36:44,646][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-async-search]
[2023-10-11T09:36:44,646][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-autoscaling]
[2023-10-11T09:36:44,646][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ccr]
[2023-10-11T09:36:44,647][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-core]
[2023-10-11T09:36:44,647][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-data-streams]
[2023-10-11T09:36:44,647][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-deprecation]
[2023-10-11T09:36:44,647][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-enrich]
[2023-10-11T09:36:44,647][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-eql]
[2023-10-11T09:36:44,648][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-fleet]
[2023-10-11T09:36:44,648][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-graph]
[2023-10-11T09:36:44,648][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-identity-provider]
[2023-10-11T09:36:44,648][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ilm]
[2023-10-11T09:36:44,648][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-logstash]
[2023-10-11T09:36:44,648][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ml]
[2023-10-11T09:36:44,649][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-monitoring]
[2023-10-11T09:36:44,649][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ql]
[2023-10-11T09:36:44,649][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-rollup]
[2023-10-11T09:36:44,649][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-security]
[2023-10-11T09:36:44,650][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-shutdown]
[2023-10-11T09:36:44,651][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-sql]
[2023-10-11T09:36:44,651][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-stack]
[2023-10-11T09:36:44,651][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-text-structure]
[2023-10-11T09:36:44,651][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-voting-only-node]
[2023-10-11T09:36:44,652][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-watcher]
[2023-10-11T09:36:44,652][INFO ][o.e.p.PluginsService     ] [node-1] no plugins loaded
[2023-10-11T09:36:44,686][INFO ][o.e.e.NodeEnvironment    ] [node-1] using [1] data paths, mounts [[/ (/dev/mapper/ubuntu--vg-ubuntu--lv)]], net usable_space [77.8gb], net total_space [96.8gb], types [ext4]
[2023-10-11T09:36:44,686][INFO ][o.e.e.NodeEnvironment    ] [node-1] heap size [7.8gb], compressed ordinary object pointers [true]
[2023-10-11T09:36:44,777][INFO ][o.e.n.Node               ] [node-1] node name [node-1], node ID [2XbFbdMuRlmbr7p5PXaaYA], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
[2023-10-11T09:36:49,972][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [node-1] [controller/25742] [Main.cc@122] controller (64 bit): Version 7.17.14 (Build c95a729561c5c0) Copyright (c) 2023 Elasticsearch BV
[2023-10-11T09:36:50,834][INFO ][o.e.x.s.a.s.FileRolesStore] [node-1] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2023-10-11T09:36:52,314][INFO ][o.e.i.g.ConfigDatabases  ] [node-1] initialized default databases [[GeoLite2-Country.mmdb, GeoLite2-City.mmdb, GeoLite2-ASN.mmdb]], config databases [[]] and watching [/etc/elasticsearch/ingest-geoip] for changes
[2023-10-11T09:36:52,323][INFO ][o.e.i.g.DatabaseNodeService] [node-1] initialized database registry, using geoip-databases directory [/tmp/elasticsearch-17953803994196927762/geoip-databases/2XbFbdMuRlmbr7p5PXaaYA]
[2023-10-11T09:36:53,098][INFO ][o.e.t.NettyAllocator     ] [node-1] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}]
[2023-10-11T09:36:53,131][INFO ][o.e.i.r.RecoverySettings ] [node-1] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2023-10-11T09:36:53,183][ERROR][o.e.b.Bootstrap          ] [node-1] Exception
java.lang.IllegalArgumentException: setting [cluster.initial_master_nodes] is not allowed when [discovery.type] is set to [single-node]
at org.elasticsearch.cluster.coordination.ClusterBootstrapService.<init>(ClusterBootstrapService.java:89) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.cluster.coordination.Coordinator.<init>(Coordinator.java:253) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.discovery.DiscoveryModule.<init>(DiscoveryModule.java:189) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.node.Node.<init>(Node.java:886) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.node.Node.<init>(Node.java:309) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) [elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:169) [elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:160) [elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) [elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) [elasticsearch-cli-7.17.14.jar:7.17.14]
at org.elasticsearch.cli.Command.main(Command.java:77) [elasticsearch-cli-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:125) [elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) [elasticsearch-7.17.14.jar:7.17.14]
[2023-10-11T09:36:53,186][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: setting [cluster.initial_master_nodes] is not allowed when [discovery.type] is set to [single-node]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:173) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:160) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:77) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112) ~[elasticsearch-cli-7.17.14.jar:7.17.14]
at org.elasticsearch.cli.Command.main(Command.java:77) ~[elasticsearch-cli-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:125) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80) ~[elasticsearch-7.17.14.jar:7.17.14]
Caused by: java.lang.IllegalArgumentException: setting [cluster.initial_master_nodes] is not allowed when [discovery.type] is set to [single-node]
at org.elasticsearch.cluster.coordination.ClusterBootstrapService.<init>(ClusterBootstrapService.java:89) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.cluster.coordination.Coordinator.<init>(Coordinator.java:253) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.discovery.DiscoveryModule.<init>(DiscoveryModule.java:189) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.node.Node.<init>(Node.java:886) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.node.Node.<init>(Node.java:309) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:234) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:234) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:434) ~[elasticsearch-7.17.14.jar:7.17.14]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:169) ~[elasticsearch-7.17.14.jar:7.17.14]
... 6 more

Here is my log Kibana

"type":"log","@timestamp":"2023-12-13T23:17:03+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"Starting saved objects migrations"}
{"type":"log","@timestamp":"2023-12-13T23:17:03+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 46ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:03+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 1 in 2 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:03+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 14ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:04+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 79ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:04+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 1 in 2 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:04+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 22ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:06+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 2 in 4 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:06+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 2017ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:06+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 2 in 4 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:06+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 2015ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:10+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 3 in 8 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:10+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 4012ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:10+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 3 in 8 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:10+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 4013ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:18+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 4 in 16 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:18+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 8007ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:18+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 4 in 16 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:18+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 8008ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:34+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 5 in 32 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:34+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 16075ms."}
{"type":"log","@timestamp":"2023-12-13T23:17:34+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 5 in 32 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:17:34+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 16049ms."}
{"type":"log","@timestamp":"2023-12-13T23:18:06+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 6 in 64 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:18:06+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 32022ms."}
{"type":"log","@timestamp":"2023-12-13T23:18:06+01:00","tags":["error","savedobjects-service"],"pid":973,"message":"[.kibana] Action failed with 'security_exception: [security_exception] Reason: current license is non-compliant for [security]'. Retrying attempt 6 in 64 seconds."}
{"type":"log","@timestamp":"2023-12-13T23:18:06+01:00","tags":["info","savedobjects-service"],"pid":973,"message":"[.kibana] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 32015ms."}
{"type":"log","@timestamp":"2023-12-13T23:18:18+01:00","tags":["error","elasticsearch-service"],"pid":973,"message":"Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED 192.168.1.197:9200"}

with the latest version, I'm having trouble configuring from start to finish. I've encountered several difficulties, so I thought the version might not be stable. So I'm working with version 7 where I've made a lot of progress. It's just the display of the kibana interface that's my real problem at the moment. If you could help me understand the error in the first instance that would help me so that I can direct my research in this direction.

According to the logs, Elasticsearch is not running. See the following line:

[2023-10-11T09:36:53,183][ERROR][o.e.b.Bootstrap          ] [node-1] Exception

About the Kibana logs, those are not the logs from the start.
But anyway, you need first to fix the Elasticsearch problem.

setting [cluster.initial_master_nodes] is not allowed when [discovery.type] is set to [single-node]

Here as well, I'd say. So I'd definitely start with 8.11.

BTW an easier way to begin with is to user docker compose.

See the doc here. Basically, you can then start a 3 nodes cluster + Kibana up and running and secured with one single command line. That might be much easier.

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