Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.12 migrations fail on tsvb-validation-telemetry documents #95617

Closed
rudolf opened this issue Mar 28, 2021 · 1 comment · Fixed by #96690
Closed

7.12 migrations fail on tsvb-validation-telemetry documents #95617

rudolf opened this issue Mar 28, 2021 · 1 comment · Fixed by #96690
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@rudolf
Copy link
Contributor

rudolf commented Mar 28, 2021

When using the v1 upgrade migration in 7.12 upgrades can fail with:

Error: Document "tsvb-validation-telemetry" has property "tsvb-validation-telemetry" which belongs to a more recent version of Kibana [7.10.0]. The last known version is [undefined]
at /usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:600:27
at Array.find ()
at nextUnmigratedProp (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:591:21)
at applyMigrations (/usr/share/kibana/src/core/server/saved_objects/migrations/core/document_migrator.js:337:18)
at DocumentMigrator.transformAndValidate [as transformDoc]

This is caused by this saved object type no longer being registered #87848 but only affects v1 migrations (related #56731)

Workaround:

  1. Stop Kibana
  2. Rollback from the failed migration https://www.elastic.co/guide/en/kibana/7.x/upgrade-migrations.html#upgrade-migrations-rolling-back
  3. Delete the document. These documents are no longer used by Kibana so deleting it won't have any impact.
    DELETE .kibana/_doc/tsvb-validation-telemetry:tsvb-validation-telemetry
  4. start Kibana
@rudolf rudolf added bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Mar 28, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@rudolf rudolf changed the title 7.12 Upgrade migrations fail on tsvb-validation-telemetry documents 7.12 v1 migrations fail on tsvb-validation-telemetry documents Apr 8, 2021
@rudolf rudolf changed the title 7.12 v1 migrations fail on tsvb-validation-telemetry documents 7.12 migrations fail on tsvb-validation-telemetry documents Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants