Uploaded image for project: 'Data Collection, Analytics, and Events'
  1. Data Collection, Analytics, and Events
  2. DCAEGEN2-3004

DL-admin build error due on npm build/install

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Kohn Release
    • Jakarta Release
    • None

      Recent builds for DL Admin containers has been failing on below error

      https://jenkins.onap.org/job/dcaegen2-services-datalake-handler-master-datalake-handler-verify-java/514/console

       

      14:40:00 [INFO] (node:66) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.
      14:40:09 [INFO] (Use `node --trace-deprecation ...` to show where the warning was created)
      14:40:09 [INFO] 
      14:40:09 [INFO] node:internal/crypto/hash:67
      14:40:09 [INFO]   this[kHandle] = new _Hash(algorithm, xofLen);
      14:40:09 [INFO]                   ^
      14:40:09 [INFO] 
      14:40:09 [INFO] Error: error:0308010C:digital envelope routines::unsupported
      14:40:09 [INFO]     at new Hash (node:internal/crypto/hash:67:19)
      14:40:09 [INFO]     at Object.createHash (node:crypto:130:10)
      14:40:09 [INFO]     at module.exports (/app/node_modules/webpack/lib/util/createHash.js:90:53)
      14:40:09 [INFO]     at NormalModule._initBuildHash (/app/node_modules/webpack/lib/NormalModule.js:401:16)
      14:40:09 [INFO]     at /app/node_modules/webpack/lib/NormalModule.js:433:10
      14:40:09 [INFO]     at /app/node_modules/webpack/lib/NormalModule.js:308:13
      14:40:09 [INFO]     at /app/node_modules/loader-runner/lib/LoaderRunner.js:367:11
      14:40:09 [INFO]     at /app/node_modules/loader-runner/lib/LoaderRunner.js:203:19
      14:40:09 [INFO]     at VirtualFileSystemDecorator.readFile (/app/node_modules/@ngtools/webpack/src/virtual_file_system_decorator.js:43:13)
      14:40:09 [INFO]     at processResource (/app/node_modules/loader-runner/lib/LoaderRunner.js:202:11)
      14:40:09 [INFO]     at iteratePitchingLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:158:10)
      14:40:09 [INFO]     at runLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:365:2)
      14:40:09 [INFO]     at NormalModule.doBuild (/app/node_modules/webpack/lib/NormalModule.js:280:3)
      14:40:09 [INFO]     at NormalModule.build (/app/node_modules/webpack/lib/NormalModule.js:427:15)
      14:40:09 [INFO]     at Compilation.buildModule (/app/node_modules/webpack/lib/Compilation.js:635:10)
      14:40:09 [INFO]     at /app/node_modules/webpack/lib/Compilation.js:884:14 {
      14:40:09 [INFO]   opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
      14:40:09 [INFO]   library: 'digital envelope routines',
      14:40:09 [INFO]   reason: 'unsupported',
      14:40:09 [INFO]   code: 'ERR_OSSL_EVP_UNSUPPORTED'
      14:40:09 [INFO] }
      

       

      Possible solution with env setting (export NODE_OPTIONS=--openssl-legacy-provider") discussed on this thread - https://github.com/webpack/webpack/issues/14532

       

       

            vv770d vv770d
            vv770d vv770d
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: