Error:
server log [15:24:39.708] [fatal][root] { Error: Index .kibana_1 belongs to a version of Kibana that cannot be automatically migrated. Reset it or use the X-Pack upgrade assistant.
at assertIsSupportedIndex (/Users/chip/dev/elastic/kibana/src/server/saved_objects/migrations/core/elastic_index.ts:239:15)
at Object.fetchInfo (/Users/chip/dev/elastic/kibana/src/server/saved_objects/migrations/core/elastic_index.ts:48:12)
isBoom: true,
isServer: true,
data: null,
output:
{ statusCode: 500,
payload:
{ statusCode: 500,
error: 'Internal Server Error',
message: 'An internal server error occurred' },
headers: {} },
reformat: [Function],
[Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError' }
FATAL Error: Index .kibana_1 belongs to a version of Kibana that cannot be automatically migrated. Reset it or use the X-Pack upgrade assistant.
Repro
- Run the latest ES mater (not snapshot)
- Start Kibana, wait for it to boot
- Restart Kibana, wait for it to boot
Cause
Calling indices.get used to return something that looked like this:
{
"aliases": {
".kibana": {}
},
"mappings": {
"doc": {
"dynamic": "strict",
"properties": {
"apm-telemetry": {
"properties": {
"has_any_services": {
"type": "boolean"
}
...
But now returns this:
{
"aliases": {
".kibana": {}
},
"mappings": {
"dynamic": "strict",
"properties": {
"apm-telemetry": {
"properties": {
"has_any_services": {
"type": "boolean"
},
...
Note, that "doc" is no longer in "mappings".
Error:
Repro
Cause
Calling
indices.getused to return something that looked like this:{ "aliases": { ".kibana": {} }, "mappings": { "doc": { "dynamic": "strict", "properties": { "apm-telemetry": { "properties": { "has_any_services": { "type": "boolean" } ...But now returns this:
Note, that "doc" is no longer in "mappings".