Add steps to docs to fix Corrupt Saved Objects (#143479) (#143541)

* upgrade mocha to 10.1

(cherry picked from commit ba61ce4a2d)

Co-authored-by: Kurt <kc13greiner@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2022-10-18 08:08:13 -06:00 committed by GitHub
parent 5deedc56ca
commit 160cb99f27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,37 @@ Unable to migrate the corrupt saved object document with _id: 'marketing_space:d
To delete the documents that cause migrations to fail, take the following steps:
. Create a role as follows:
+
[source,sh]
--------------------------------------------
PUT _security/role/grant_kibana_system_indices
{
"indices": [
{
"names": [
".kibana*"
],
"privileges": [
"all"
],
"allow_restricted_indices": true
}
]
}
--------------------------------------------
. Create a user with the role above and `superuser` built-in role:
+
[source,sh]
--------------------------------------------
POST /_security/user/temporarykibanasuperuser
{
"password" : "l0ng-r4nd0m-p@ssw0rd",
"roles" : [ "superuser", "grant_kibana_system_indices" ]
}
--------------------------------------------
. Remove the write block which the migration system has placed on the previous index:
+
[source,sh]