I had 8.1.1 running and I upgraded to 8.2.0
this is single node test system. hence I shutdown Elasticsearch and kibana
upgrade and start
kibana is complaining like this
[2022-05-16T19:33:11.618-05:00][FATAL][root] Error: Unable to complete saved object migrations for the [.kibana] index: Migration failed because documents were found for unknown saved object types. To proceed with the migration, please delete these documents from the ".kibana_8.1.1_001" index.
The documents with unknown types are:
- "telemetry:telemetry" (type: "telemetry")
You can delete them using the following command:
curl -X POST "{elasticsearch}/.kibana_8.1.1_001/_bulk?pretty" -H 'Content-Type: application/json' -d'
{ "delete" : { "_id" : "telemetry:telemetry" } }
'
at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/migrations_state_action_machine.js:144:29)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
at SavedObjectsService.start (/usr/share/kibana/src/core/server/saved_objects/saved_objects_service.js:213:9)
at Server.start (/usr/share/kibana/src/core/server/server.js:329:31)
at Root.start (/usr/share/kibana/src/core/server/root/index.js:69:14)
at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:120:5)
at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:216:5)
[2022-05-16T19:33:11.630-05:00][INFO ][plugins-system.preboot] Stopping all plugins.
[2022-05-16T19:33:11.634-05:00][INFO ][plugins-system.standard] Stopping all plugins.
[2022-05-16T19:33:11.637-05:00][INFO ][plugins.monitoring.monitoring.kibana-monitoring] Monitoring stats collection is stopped
then I try to execute this curl command which is telling me to delete telemetry. but it fails
{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/delete] is unauthorized for user [elastic] with roles [superuser] on restricted indices [.kibana_task_manager_7.16.2_001], this action is granted by the index privileges [delete_index,manage,all]"}],"type":"security_exception","reason":"action [indices:admin/delete] is unauthorized for user [elastic] with roles [superuser] on restricted indices
I even try deleting some old index but I can't do that anymore
# curl -u elastic:elastic -XDELETE houelkv8:9200/.kibana_task_manager_7.16.2_001
{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/delete] is unauthorized for user [elastic] with roles [superuser] on restricted indices [.kibana_task_manager_7.16.2_001], this action is granted by the index privileges [delete_index,manage,all]"}],"type":"security_exception","reason":"action [indices:admin/delete] is unauthorized for user [elastic] with roles [superuser] on restricted indices [.kibana_task_manager_7.16.2_001], this action is granted by the index privileges [delete_index,manage,all]"},"status":403}
and user:password is correct as I can see the cluster status
# curl -u elastic:elastic -XGET houelkv8:9200/_cluster/health?pretty
{
"cluster_name" : "elk_v_8_0",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 48,
"active_shards" : 48,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
How do I fix it?