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

Migrations v2: Ensure index is lowercase #89482

Closed
tylersmalley opened this issue Jan 27, 2021 · 3 comments · Fixed by #89541
Closed

Migrations v2: Ensure index is lowercase #89482

tylersmalley opened this issue Jan 27, 2021 · 3 comments · Fixed by #89541
Labels
blocker Feature:Saved Objects project:ResilientSavedObjectMigrations Reduce Kibana upgrade failures by making saved object migrations more resilient Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.0.0

Comments

@tylersmalley
Copy link
Contributor

The Elasticsearch snapshots contain a SNAPSHOT version qualifier and needs to be lowercased.

  log   [20:21:58.029] [error][savedobjects-service] [.kibana] [invalid_index_name_exception]: Invalid index name [.kibana_8.0.0-SNAPSHOT_001], must be lowercase
  log   [20:21:58.030] [error][savedobjects-service] [.kibana] migration failed, dumping execution log:
  log   [20:21:58.031] [info][savedobjects-service] [.kibana] INIT RESPONSE
  log   [20:21:58.033] [info][savedobjects-service] [.kibana] INIT -> CREATE_NEW_TARGET
  log   [20:21:58.040] [fatal][root] Error: Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again. ResponseError: invalid_index_name_exception
    at migrationStateActionMachine (/usr/share/kibana/src/core/server/saved_objects/migrationsv2/migrations_state_action_machine.js:141:11)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Promise.all (index 0)
    at SavedObjectsService.start (/usr/share/kibana/src/core/server/saved_objects/saved_objects_service.js:163:7)
    at Server.start (/usr/share/kibana/src/core/server/server.js:283:31)
    at Root.start (/usr/share/kibana/src/core/server/root/index.js:58:14)
    at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:100:5)
    at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:169:5)
  log   [20:21:58.045] [info][plugins-system] Stopping all plugins.

@tylersmalley tylersmalley added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:Saved Objects project:ResilientSavedObjectMigrations Reduce Kibana upgrade failures by making saved object migrations more resilient labels Jan 27, 2021
@elasticmachine
Copy link
Contributor

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

@liza-mae
Copy link
Contributor

This has broken master snapshot across our testing.

@pgayvallet
Copy link
Contributor

cc @rudolf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Feature:Saved Objects project:ResilientSavedObjectMigrations Reduce Kibana upgrade failures by making saved object migrations more resilient Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants