I have installed Elasticsearch as stated in the resource https://wiki.archlinux.org/title/Elasticsearch. After that I had the store "/usr/share/Elasticsearch/config/Elasticsearch.keystore" created, so I didn’t recreate it with "Elasticsearch-keystore create".
Then I started the service via start/enable Elasticsearch.service.
http://127.0.0.1:9200/ returns
{
"name" : "x230",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "-RnIshwfQUSA9ybp5PbLWg",
"version" : {
"number" : "7.10.2",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "unknown",
"build_date" : "2021-08-25T17:55:24.048595Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
I also installed Kibana according to the instructions https://wiki.archlinux.org/title/Kibana. I uncommented in "/etc/kibana/kibana.yml"
server.port: 5601
server.host: "localhost"
elasticsearch.hosts: ["http: // localhost: 9200"]
Then I started the service via start/enable kibana.service.
However, after going to http://localhost:5601/ I get "Failed to fetch" error.
Version: 7.10.2
Build: 36136
TypeError: Failed to fetch
at Fetch._callee3$ (http://localhost:5601/36136/bundles/core/core.entry.js:6:58583)
at l (http://localhost:5601/36136/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:380:982071)
at Generator._invoke (http://localhost:5601/36136/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:380:981824)
at Generator.forEach.e.<computed> [as throw] (http://localhost:5601/36136/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:380:982428)
at fetch_asyncGeneratorStep (http://localhost:5601/36136/bundles/core/core.entry.js:6:52652)
at _throw (http://localhost:5601/36136/bundles/core/core.entry.js:6:53060)
I am using jdk-17.
[user@x230 ~]$ archlinux-java status
Available Java environments:
java-17-openjdk (default)
java-7-openjdk
java-8-openjdk
Perhaps someone can help me - in which direction should I look for the problem? Thanks.