Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2497

Backend crashes when scaffolder actions are not build for the right Backstage (1.45) version

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = {product-very-short} backend fails to start with outdated scaffolder plugins

      Scaffolder backend modules that access the scaffolder extension point from the `alpha` export are incompatible with `scaffolder-node` package version 0.12.0. As a consequence, the {product-very-short} backend fails to start, and the log file contains the following error:

      [source,text]
      ----
      {code}
      Plugin 'scaffolder' threw an error during startup, waiting for 14 other plugins to finish before shutting down the process.
      TypeError: Cannot read properties of undefined (reading 'id')
          at BackendInitializer.cjs.js:262:72
      {code}
      ----

      To work around this problem, ensure that all scaffolder modules support {backstage} 1.45.x and that scaffolder modules are updated to scaffolder-node version 0.12.0 or later.
      Show
      = {product-very-short} backend fails to start with outdated scaffolder plugins Scaffolder backend modules that access the scaffolder extension point from the `alpha` export are incompatible with `scaffolder-node` package version 0.12.0. As a consequence, the {product-very-short} backend fails to start, and the log file contains the following error: [source,text] ---- {code} Plugin 'scaffolder' threw an error during startup, waiting for 14 other plugins to finish before shutting down the process. TypeError: Cannot read properties of undefined (reading 'id')     at BackendInitializer.cjs.js:262:72 {code} ---- To work around this problem, ensure that all scaffolder modules support {backstage} 1.45.x and that scaffolder modules are updated to scaffolder-node version 0.12.0 or later.
    • Known Issue
    • Done
    • RHDH Plugins 3286

      Description of problem:

      We noticed crashes of the Backstage backend if a scaffolder action is loaded that is not build for Backstage 1.45

      Plugin 'scaffolder' threw an error during startup, waiting for 14 other plugins to finish before shutting down the process.
      TypeError: Cannot read properties of undefined (reading 'id')
          at BackendInitializer.cjs.js:262:72
      

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

      Steps to Reproduce

      TODO !! Will work on a better example ...

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

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

              stlewis_2 Stan Lewis
              cjerolim Christoph Jerolimov
              RHDH Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: