Skip to content

Commit

Permalink
Add steps to docs to fix Corrupt Saved Objects (#143479) (#143536)
Browse files Browse the repository at this point in the history
* upgrade mocha to 10.1

(cherry picked from commit ba61ce4)

Co-authored-by: Kurt <[email protected]>
  • Loading branch information
kibanamachine and kc13greiner authored Oct 18, 2022
1 parent ac3e2f3 commit 4a97fc7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/setup/upgrade/resolving-migration-failures.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4a97fc7

Please sign in to comment.