Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-2805

Rollback of helm chart is not supported/not working

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 1.2
    • Helm Chart

      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 search info Added DefaultCatalogCollatorFactory collator factory for type software-catalog 
      2024-06-20T08:29:12.269Z search info Added DefaultTechDocsCollatorFactory collator factory for type techdocs 
      2024-06-20T08:29:12.270Z search info Starting all scheduled search tasks. 
      2024-06-20T08:29:13.145Z app info Serving static app content from /opt/app-root/src/packages/app/dist 
      2024-06-20T08:29:13.203Z app info Injecting env config into 1378.bd850c85.chunk.js 
      2024-06-20T08:29:13.272Z catalog info 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

      1. Setup rhdh v.1.1
      2. Upgrade to v.12 (currently the upgrade doesn't work)
      3. 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):

              Unassigned Unassigned
              rh-ee-abarbaro Alessandro Barbarossa
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: