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

RHDH fails on table lock when deploying using RHDH Operator

Create Doc EPIC for Fe...Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 1.2.2
    • Operator
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. get cluster from cluster-bot (launch 4.17)
      2. install Red Hat Developer Hub Operator v1.2.2 on the cluster
      3. create instance
        apiVersion: rhdh.redhat.com/v1alpha1
        kind: Backstage
        metadata:
          name: developer-hub
        spec:
          application:
            appConfig:
              mountPath: /opt/app-root/src
            extraFiles:
              mountPath: /opt/app-root/src
            replicas: 1
            route:
              enabled: true
          database:
            enableLocalDb: true

      Actual results:

      Can't take lock to run migrations: Migration table is already locked54If you are sure migrations are not running you can release the lock manually by running 'knex migrate:unlock'55/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:180656throw new errors.ForwardedError(57^5859MigrationLocked: Plugin 'catalog' startup failed; caused by MigrationLocked: Migration table is already locked60at /opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1806:1761at process.processTicksAndRejections (node:internal/process/task_queues:95:5)62at async /opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1805:963... 3 lines matching cause stack trace ...64at async BackstageBackend.start (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1894:5) {65cause: MigrationLocked: Migration table is already locked66at /opt/app-root/src/node_modules/knex/lib/migrations/migrate/Migrator.js:343:1367at process.processTicksAndRejections (node:internal/process/task_queues:95:5)68at async Migrator._runBatch (/opt/app-root/src/node_modules/knex/lib/migrations/migrate/Migrator.js:359:7)69at async applyDatabaseMigrations (/opt/app-root/src/node_modules/@backstage/plugin-catalog-backend/dist/cjs/CatalogBuilder-WfXI1o7H.cjs.js:1506:3)70at async CatalogBuilder.build (/opt/app-root/src/node_modules/@backstage/plugin-catalog-backend/dist/cjs/CatalogBuilder-WfXI1o7H.cjs.js:7872:7)71at async Object.init [as func] (/opt/app-root/src/node_modules/@backstage/plugin-catalog-backend/dist/alpha.cjs.js:242:46)72at async /opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1805:973at async Promise.all (index 1)74at async BackendInitializer.doStart_fn (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1766:3)75at async BackendInitializer.start (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1626:5)76at async BackstageBackend.start (/opt/app-root/src/node_modules/@backstage/backend-app-api/dist/index.cjs.js:1894:5)77} 

       

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      see steps

      Additional info (Such as Logs, Screenshots, etc):

              Unassigned Unassigned
              tkral@redhat.com Tomas Kral
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: