FATAL Error: Unable to complete saved object migrations for the [.kibana] index: Migrations failed. Reason: 2 transformation errors were encountered

Hi All,

While performing migration of kibana using eck-operator from 7.8.1 to 7.17.10, we are facing the following issue:

 FATAL  Error: Unable to complete saved object migrations for the [.kibana] index: Migrations failed. Reason: 2 transformation errors were encountered:
 - dashboard:kibana-custom: Error: Migration function for version 7.11.0 threw an error
    at tryTransformDoc (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:610:13)
    at migrateProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:679:22)
    at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:397:20)
    at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:337:22)
    at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:146:16
    at Immediate._onImmediate (/usr/share/kibana/src/core/server/saved_objects/migrations/core/migrate_raw_docs.js:158:17)
    at processImmediate (node:internal/timers:466:21)
Caused by:
TypeError: Invalid Version:
    at new SemVer (/usr/share/kibana/node_modules/semver/classes/semver.js:38:13)
    at compare (/usr/share/kibana/node_modules/semver/functions/compare.js:3:32)
    at gt (/usr/share/kibana/node_modules/semver/functions/gt.js:2:29)
    at isPre730Panel (/usr/share/kibana/src/plugins/dashboard/common/saved_dashboard_references.js:23:47)
    at Array.some (<anonymous>)
    at extractReferences (/usr/share/kibana/src/plugins/dashboard/common/saved_dashboard_references.js:87:14)
    at /usr/share/kibana/src/plugins/dashboard/server/saved_objects/dashboard_migrations.js:151:59
    at /usr/share/kibana/node_modules/lodash/lodash.js:5177:46
    at tryTransformDoc (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:597:22)
    at migrateProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:679:22)
    at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:397:20)
    at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:337:22)
    at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:146:16
    at Immediate._onImmediate (/usr/share/kibana/src/core/server/saved_objects/migrations/core/migrate_raw_docs.js:158:17)
    at processImmediate (node:internal/timers:466:21)
- dashboard:AWM0hTr7CTP_8g5BiABw: Error: Migration function for version 7.11.0 threw an error
    at tryTransformDoc (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:610:13)
    at migrateProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:679:22)
    at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:397:20)
    at DocumentMigrator.transformAndValidate [as transformDoc] (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:337:22)
    at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:146:16
    at Immediate._onImmediate (/usr/share/kibana/src/core/server/saved_objects/migrations/core/migrate_raw_docs.js:158:17)
    at processImmediate (node:internal/timers:466:21)

This is leading to kibana health status as red. On deleting the .kibana index, kibana health is back to green but I am not sure if deleting is the appropriate approach. Could you please suggest, if there are any strategies to resolve the same.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.