Updated both from 6.7.1 to 7.0.0.
Cluster is green, but when browsing kibana on browser, I get:
{"message":"mapping set to strict, dynamic introduction of [references] within [doc] is not allowed: [strict_dynamic_mapping_exception] mapping set to strict, dynamic introduction of [references] within [doc] is not allowed","statusCode":400,"error":"Bad Request"}
Elasticsearch log has this:
[2019-04-11T15:32:31,084][DEBUG][o.e.a.b.TransportShardBulkAction] [dev-dc1-rk] [.kibana_1][0] failed to execute bulk item (create) index {[.kibana][_doc][config:7.0.0], source[{"config":{"buildNum":23117,"defaultIndex":"11ed3b50-4180-11e9-8c13-3da5f557b485"},"type":"config","references":[],"updated_at":"2019-04-11T12:32:31.082Z"}]}
org.elasticsearch.index.mapper.StrictDynamicMappingException: mapping set to strict, dynamic introduction of [references] within [doc] is not allowed
at org.elasticsearch.index.mapper.DocumentParser.parseArray(DocumentParser.java:536) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.mapper.DocumentParser.innerParseObject(DocumentParser.java:394) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrNested(DocumentParser.java:381) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.mapper.DocumentParser.internalParseDocument(DocumentParser.java:98) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:71) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:267) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:770) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.shard.IndexShard.applyIndexOperation(IndexShard.java:747) ~[elasticsearch-7.0.0.jar:7.0.0]
at org.elasticsearch.index.shard.IndexShard.applyIndexOperationOnPrimary(IndexShard.java:719) ~[elasticsearch-7.0.0.jar:7.0.0]
Be careful with this because this will remove all of your saved objects (searches, visualizations, dashboards, index patterns, etc..). Well at least it did for me.
Please let me know if there is a way to retrieve the saved objects because I can't find those anywhere after deleting kibana*
Strange, I have the same problem when I setup a fresh installation of elasticsearch+kibana 7.0.0 and restore my backup from my old <7.0.0 installation.
When I however restore my backup into a fresh 6.7.1 installation and then simply update to 7.0.0, it still works fine even after the update.
As a I'm migrating from a 6.7.0 env, I copied the 6.7.0 ES data directory into the 7.0.0 ES directory.
That way, I can play with my data without any risk : if I mess it up, I just have to perform another copy.
I see, I was not precise in my wording: I'm running elasticsearch/kibana in a k8s cluster (elasticsearch running as a statefulset). When I say "simply update", I mean that I just replace the pointer to the docker images in that statefulset, the effect is that the running containers are replaced and the data directories are preserved (that's the rolling upgrade as referenced by you).
As said, this one works fo me.
What doesn't work: I have regular backups (elasticsearch snapshot API) stashed into a gcs bucket. When I restore a snapshot that was created from 6.7 directly into an empty 7.0 elasticsearch/kibana installation, then it fails with the error discussed in this thread.
Same issue here - elastic cloud managed environment - 6.7.1 to 7.0.0 upgrade via UI. Have just saved .kibana_*, deleted and restarted and can at least get in to the UI again now.
Hi,
it seems, that the old kibana_* like e.q. kibana_7 has type:doc while the new kibana_8 has type:_doc. When now using an index pattern of kibana_* you run into the strict rule.
On my testsystem I had .kibana_8 and .kibana_7 where .kibana_8 seems to be a migrated version of kibana_7. I bypassed this issue by executing
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.