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

Error in latest RHDH 1.2/1.2-116 Deployment using helm: 'npm pack' Fails Due to Missing package.json

Create Doc EPIC for Fe...Prepare for Y ReleasePrepare for Z ReleaseXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.2.2
    • 1.2.2
    • Helm Chart, Operator
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • RHDH Core Team 3260
    • Critical

      Description of problem:

      Error in RHDH 1.2-116 Deployment: 'npm pack' Fails Due to Missing package.json

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

      Steps to Reproduce

      1. install RHDH using helm
      2. Set 
      HELM_IMAGE_NAME=backstage
      HELM_REPO_NAME=rhdh-chart
      HELM_REPO_URL="https://redhat-developer.github.io/rhdh-chart"
      RELEASE_NAME=rhdh
      1. NAME_SPACE=rhdh-test
        K8S_CLUSTER_ROUTER_BASE=$(oc get ingresses.config/cluster -o jsonpath='{.spec.domain}')
      1. helm upgrade -i "${RELEASE_NAME}" -n "${NAME_SPACE}" "${HELM_REPO_NAME}/${HELM_IMAGE_NAME}" -f "./values.yaml" --set global.clusterRouterBase="${K8S_CLUSTER_ROUTER_BASE}" --set upstream.backstage.image.tag="1.2-116" --set upstream.backstage.image.repository="rhdh/rhdh-hub-rhel9"

      Actual results: 

      The installation fails due to a missing package.json file.

      Expected results: 

      The plugin should be installed successfully without errors.

      Reproducibility (Always/Intermittent/Only Once): Always

      Build Details: 1.2-116

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

       

      ======= Installing dynamic plugin ./dynamic-plugins/dist/janus-idp-backstage-plugin-catalog-backend-module-scaffolder-relation-processor-dynamic
      ==> Grabbing package archive through `npm pack`
      Traceback (most recent call last):
      File "/opt/app-root/src/install-dynamic-plugins.py", line 304, in <module>
      main()
      File "/opt/app-root/src/install-dynamic-plugins.py", line 230, in main
      raise InstallException(f'Error while installing plugin { package } with \'npm pack\' : ' + completed.stderr.decode('utf-8'))
      InstallException: Error while installing plugin /opt/app-root/src/dynamic-plugins/dist/janus-idp-backstage-plugin-catalog-backend-module-scaffolder-relation-processor-dynamic with 'npm pack' : npm ERR! code ENOENT
      npm ERR! syscall open
      npm ERR! path /opt/app-root/src/dynamic-plugins/dist/janus-idp-backstage-plugin-catalog-backend-module-scaffolder-relation-processor-dynamic/package.json
      npm ERR! errno -2
      npm ERR! enoent ENOENT: no such file or directory, open '/opt/app-root/src/dynamic-plugins/dist/janus-idp-backstage-plugin-catalog-backend-module-scaffolder-relation-processor-dynamic/package.json'
      npm ERR! enoent This is related to npm not being able to find a file.
      npm ERR! enoent
       

       

       

              skhileri Subhash Khileri
              skhileri Subhash Khileri
              RHIDP - Core Platform
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: