Hi,
I tried to migrate from 8 to 8.2.2 today on a dev machine. This is having lot of spaces and objects.
As soon as I attempt, I landed into issues. The kibana migration has failed in mid.
I have tried to search the documentation. but in my case, unable to find the object(s) which is causing the issue.
kibana log:
[2022-05-28T15:36:00.360+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_TRANSFORM -> REINDEX_SOURCE_TO_TEMP_READ. took: 108ms.
[2022-05-28T15:36:00.415+00:00][INFO ][savedobjects-service] [.kibana] Processed 20000 documents out of 20639.
[2022-05-28T15:36:00.415+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_TRANSFORM. took: 55ms.
[2022-05-28T15:36:00.699+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_TRANSFORM -> REINDEX_SOURCE_TO_TEMP_READ. took: 284ms.
[2022-05-28T15:36:00.706+00:00][INFO ][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> FATAL. took: 7ms.
[2022-05-28T15:36:00.710+00:00][FATAL][root] Error: Unable to complete saved object migrations for the [.kibana] index: Migrations failed. Reason: 1 transformation errors were encountered:
- canvas-workpad:workpad-2d8ea702-c9ca-4013-8294-504fd583dc21: Error: Migration function for version 8.1.0 threw an error
at tryTransformDoc (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:603:13)
at migrateProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:665:22)
at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:389:20)
at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:329:22)
at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:138:16
at Immediate._onImmediate (/usr/share/kibana/src/core/server/saved_objects/migrations/core/migrate_raw_docs.js:152:17)
at processImmediate (node:internal/timers:466:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
Caused by:
TypeError: Cannot read properties of undefined (reading 'state')
at commonRenameFilterReferences (/usr/share/kibana/x-pack/plugins/lens/server/migrations/common_migrations.js:172:38)
at Object.8.1.0 (/usr/share/kibana/x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.js:58:136)
at migrateFn (/usr/share/kibana/src/plugins/embeddable/common/lib/migrate.js:25:48)
at migrations. (/usr/share/kibana/src/plugins/embeddable/common/lib/get_all_migrations.js:38:42)
at Object.8.1.0 (/usr/share/kibana/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.js:47:29)
at /usr/share/kibana/src/plugins/expressions/common/executor/executor.js:322:33
at /usr/share/kibana/src/plugins/expressions/common/executor/executor.js:234:29
at Array.reduce ()
at Executor.walkAstAndTransform (/usr/share/kibana/src/plugins/expressions/common/executor/executor.js:220:43)
at Executor.migrate (/usr/share/kibana/src/plugins/expressions/common/executor/executor.js:315:17)
at migrations. (/usr/share/kibana/src/plugins/expressions/common/executor/executor.js:304:49)
at /usr/share/kibana/node_modules/lodash/lodash.js:5180:35
at migrateExpr (/usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:23:91)
at /usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:31:28
at Array.map ()
at /usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:53:86
at Array.map ()
at migrateWorkpadElements (/usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:49:72)
at /usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:67:63
at tryTransformDoc (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:590:22)
at migrateProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:665:22)
at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:389:20)
at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:329:22)
at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:138:16
at Immediate._onImmediate (/usr/share/kibana/src/core/server/saved_objects/migrations/core/migrate_raw_docs.js:152:17)
at processImmediate (node:internal/timers:466:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
To allow migrations to proceed, please delete or fix these documents.
at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrations/migrations_state_action_machine.js:144:29)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
at SavedObjectsService.start (/usr/share/kibana/src/core/server/saved_objects/saved_objects_service.js:213:9)
at Server.start (/usr/share/kibana/src/core/server/server.js:329:31)
at Root.start (/usr/share/kibana/src/core/server/root/index.js:69:14)
at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:120:5)
at Command. (/usr/share/kibana/src/cli/serve/serve.js:216:5)
[2022-05-28T15:36:00.716+00:00][INFO ][plugins-system.preboot] Stopping all plugins.
[2022-05-28T15:36:00.717+00:00][INFO ][plugins-system.standard] Stopping all plugins.
[2022-05-28T15:36:00.717+00:00][INFO ][plugins.monitoring.monitoring.kibana-monitoring] Monitoring stats collection is stopped
[2022-05-28T15:36:30.723+00:00][WARN ][plugins-system.standard] "eventLog" plugin didn't stop in 30sec., move on to the next.
FATAL Error: Unable to complete saved object migrations for the [.kibana] index: Migrations failed. Reason: 1 transformation errors were encountered:
- canvas-workpad:workpad-2d8ea702-c9ca-4013-8294-504fd583dc21: Error: Migration function for version 8.1.0 threw an error
at tryTransformDoc (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:603:13)
at migrateProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:665:22)
at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:389:20)
at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:329:22)
at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:138:16
at Immediate._onImmediate (/usr/share/kibana/src/core/server/saved_objects/migrations/core/migrate_raw_docs.js:152:17)
at processImmediate (node:internal/timers:466:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
Caused by:
TypeError: Cannot read properties of undefined (reading 'state')
at commonRenameFilterReferences (/usr/share/kibana/x-pack/plugins/lens/server/migrations/common_migrations.js:172:38)
at Object.8.1.0 (/usr/share/kibana/x-pack/plugins/lens/server/embeddable/make_lens_embeddable_factory.js:58:136)
at migrateFn (/usr/share/kibana/src/plugins/embeddable/common/lib/migrate.js:25:48)
at migrations. (/usr/share/kibana/src/plugins/embeddable/common/lib/get_all_migrations.js:38:42)
at Object.8.1.0 (/usr/share/kibana/x-pack/plugins/canvas/canvas_plugin_src/functions/external/embeddable.js:47:29)
at /usr/share/kibana/src/plugins/expressions/common/executor/executor.js:322:33
at /usr/share/kibana/src/plugins/expressions/common/executor/executor.js:234:29
at Array.reduce ()
at Executor.walkAstAndTransform (/usr/share/kibana/src/plugins/expressions/common/executor/executor.js:220:43)
at Executor.migrate (/usr/share/kibana/src/plugins/expressions/common/executor/executor.js:315:17)
at migrations. (/usr/share/kibana/src/plugins/expressions/common/executor/executor.js:304:49)
at /usr/share/kibana/node_modules/lodash/lodash.js:5180:35
at migrateExpr (/usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:23:91)
at /usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:31:28
at Array.map ()
at /usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:53:86
at Array.map ()
at migrateWorkpadElements (/usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:49:72)
at /usr/share/kibana/x-pack/plugins/canvas/server/saved_objects/migrations/expressions.js:67:63
at tryTransformDoc (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:590:22)
at migrateProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:665:22)
at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:389:20)
at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:329:22)
at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:138:16
at Immediate._onImmediate (/usr/share/kibana/src/core/server/saved_objects/migrations/core/migrate_raw_docs.js:152:17)
at processImmediate (node:internal/timers:466:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
To allow migrations to proceed, please delete or fix these documents.
$
I have set the aliases of .kibana and .kibana_task_manager to use the previous version of kibana as of now. Can some one help me in resolving the migration errors.
Thanks