KIbana "Kibana server is not ready yet" -- routing disabled during upgrade

Hi.
So I think I made the mistake of upgrading to v7.10 Kibana with my cluster routing disabled, and as a result Kibana is stuck migrating. It's constantly producing log messages along the line of;

["info", "savedobjects-service"], "pid":5709,"message":"Detected mapping change in \"properties.originId\""

Stopping Kibana and deleting the latest instance of .kibana_n and restarting the Kibana just produces another. I've also enabled routing etc.

I don't want to lose all the dashboards, but I'm not sure what the solution is, can anyone help. I've read lots of prior posts on this but there doesn't seem to be a clear solution.
thanks

1 Like

I also get this error after upgrading to 7.10.1

I had the same issue after ugprading to 7.10.1. The solution I came up with was this:

Before upgrading, export all saved objects at Stack Management > Saved objects.

Stop Kibana.

Delete the .kibana_* and .kibana_task_manager_* indexes:

$ for index in .kibana .kibana_1 .kibana_2 .kibana_3 .kibana_4 .kibana_task_manager_1 .kibana_task_manager_2 .kibana_task_manager_3; do curl -XDELETE http://localhost:9200/$index; done
{"acknowledged":true}{"acknowledged":true}...

Upgrade and start Kibana.

Reimport the previously exported saved objects at Stack Management > Saved objects. This worked pretty well. Despite some few errors about canvas-workpad-template stuff ("Unsupported object type"), all my dashboards, index patterns and so on will be there and working again. Not sure if the .kibana_task_manager_* really needed to be deleted, but it worked for me.

Every time Kibana is restarted, it checks if a migration is required. It will perform a migration if either documents are outdated or if the mappings are different to what Kibana expects. The latter is what triggers a migration in your case.

As per the error message, properties.originId has a different mapping to what Kibana expects. Do you have any index templates that might have an indexPattern that matches .kibana*?

Could you share the output of GET /.kibana/_mapping?