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

Resolved the `stdout maxBuffer` error

Prepare for Y ReleasePrepare for Z ReleaseRemove QuarterXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.4
    • None
    • Dynamic plugins
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      Previously, the `export-dynamic-plugin` failed with an error that the `stdout maxBuffer` length was exceeded.

      With this update, the CLI redirects the output of the {{yarn install}} command it performs during the export process to a file. Therefore, a successful completion of the {{yarn install}} command and verification of the `export-dynamic-plugin`, cleans up the file. The file is available for troubleshooting when the dynamic plugin validation checks fail.
      Show
      Previously, the `export-dynamic-plugin` failed with an error that the `stdout maxBuffer` length was exceeded. With this update, the CLI redirects the output of the {{yarn install}} command it performs during the export process to a file. Therefore, a successful completion of the {{yarn install}} command and verification of the `export-dynamic-plugin`, cleans up the file. The file is available for troubleshooting when the dynamic plugin validation checks fail.
    • Bug Fix
    • Done
    • RHDH Dynamic Plugins 3266

      Description of problem:

      In some cases the janus-cli can exit with an error during the yarn install phase of the export-dynamic-plugin command:

      Building main package
        executing     yarn build ✔
      Packing main package to dist-dynamic\package.json
      Customizing main package in dist-dynamic\package.json for dynamic loading
      Installing private dependencies of the main package
        executing     yarn install --no-immutable ✖ 
      
      Error: Failed to execute command 'yarn install --no-immutable', RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
      

      This is due to excessive output from the yarn install command which potentially overloads the default buffer used by the exec API that is used to launch this process.

      Either a silent install option could be used or we can look at increasing the buffer value when the CLI launches this command.

              stlewis_2 Stan Lewis
              stlewis_2 Stan Lewis
              RHIDP - Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: