-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
1.2
-
False
-
-
False
-
RHIDP-3151 - Rollback/Restore from backups
-
-
Description of problem:
The rollback of an helm chart setup ends up in an error: pod will crash with
[2m2024-06-20T08:29:12.269Z[22m [34msearch[39m [32minfo[39m Added DefaultCatalogCollatorFactory collator factory for type software-catalog [2m2024-06-20T08:29:12.269Z[22m [34msearch[39m [32minfo[39m Added DefaultTechDocsCollatorFactory collator factory for type techdocs [2m2024-06-20T08:29:12.270Z[22m [34msearch[39m [32minfo[39m Starting all scheduled search tasks. [2m2024-06-20T08:29:13.145Z[22m [34mapp[39m [32minfo[39m Serving static app content from /opt/app-root/src/packages/app/dist [2m2024-06-20T08:29:13.203Z[22m [34mapp[39m [32minfo[39m Injecting env config into 1378.bd850c85.chunk.js [2m2024-06-20T08:29:13.272Z[22m [34mcatalog[39m [32minfo[39m Performing database migration /opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1793 throw new errors.ForwardedError( ^ ForwardedError: Plugin 'catalog' startup failed; caused by Error: The migration directory is corrupt, the following files are missing: 20240130092632_search_index.js at /opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1793:17 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1792:9 ... 3 lines matching cause stack trace ... at async BackstageBackend.start (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1881:5) { cause: Error: The migration directory is corrupt, the following files are missing: 20240130092632_search_index.js at validateMigrationList (/opt/app-root/src/node_modules/knex/lib/migrations/migrate/Migrator.js:567:11) at Migrator.latest (/opt/app-root/src/node_modules/knex/lib/migrations/migrate/Migrator.js:69:7) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async applyDatabaseMigrations (/opt/app-root/src/node_modules/@backstage/plugin-catalog-backend/dist/cjs/CatalogBuilder-12834e8e.cjs.js:1506:3) at async CatalogBuilder.build (/opt/app-root/src/node_modules/@backstage/plugin-catalog-backend/dist/cjs/CatalogBuilder-12834e8e.cjs.js:7058:7) at async Object.init [as func] (/opt/app-root/src/node_modules/@backstage/plugin-catalog-backend/dist/alpha.cjs.js:209:46) at async /opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1792:9 at async Promise.all (index 1) at async BackendInitializer.doStart_fn (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1757:3) at async BackendInitializer.start (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1611:5) at async BackstageBackend.start (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1881:5) } Node.js v18.20.2
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
- Setup rhdh v.1.1
- Upgrade to v.12 (currently the upgrade doesn't work)
- Rollback
Actual results:
Pod is crashing with error above
Expected results:
Pod is restored to his previous state
Reproducibility (Always/Intermittent/Only Once):
Build Details:
Additional info (Such as Logs, Screenshots, etc):
- causes
-
RHIDP-3151 Rollback/Restore from backups
- Refinement