A newly installed kibana could not create index pattern, so I restarted the service, and then I was not able to connect to 5601.
From the logs (see bellow) I suspect that there is a problem with the kibana indices. What if I deleted all ".kibana*" indices and restart the service - would it recreate it correctly?
Or perhaps a simple editing of a .kibana index settings would fix the issue?
{"type":"log","@timestamp":"2022-07-28T17:22:51+03:00","tags":["info","savedobjects-service"],"pid":1178361,"message":"[.kibana] INIT -> FATAL. took: 553ms."}
{"type":"log","@timestamp":"2022-07-28T17:22:51+03:00","tags":["fatal","root"],"pid":1178361,"message":"Error: Unable to complete saved object migrations for the [.kibana] index: The .kibana alias is pointing to a newer version of Kibana: v7.17.1\n at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrationsv2/migrations_state_action_machine.js:144:29)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async Promise.all (index 0)\n at SavedObjectsService.start (/usr/share/kibana/src/core/server/saved_objects/saved_objects_service.js:181:9)\n at Server.start (/usr/share/kibana/src/core/server/server.js:330:31)\n at Root.start (/usr/share/kibana/src/core/server/root/index.js:69:14)\n at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:120:5)\n at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:229:5)"}
and here is what i get with curl -X GET localhost:9200/.kibana/_settings?pretty=true
{
".kibana_7.17.1_001" : {
"settings" : {
"index" : {
"refresh_interval" : "1s",
"auto_expand_replicas" : "0-1",
"blocks" : {
"write" : "false"
},
"provided_name" : ".kibana_7.17.1_001",
"creation_date" : "1651065321600",
"priority" : "10",
"number_of_replicas" : "0",
"uuid" : "i6VMkZwpRXyYGwTdES99QA",
"version" : {
"created" : "7170099"
},
"routing" : {
"allocation" : {
"include" : {
"_tier_preference" : "data_content"
},
"initial_recovery" : {
"_id" : null
}
}
},
"number_of_shards" : "1",
"routing_partition_size" : "1",
"resize" : {
"source" : {
"name" : ".kibana_7.17.1_reindex_temp",
"uuid" : "_Yxk0R1qRMuwbmcFybVUOw"
}
}
}
}
}
}