mspnp / serverless-reference-implementation

Serverless reference implementation guidance
MIT License
179 stars 93 forks source link

gh workflow run deploy-clientapp.yaml fails #131

Closed NathanDotTo closed 7 months ago

NathanDotTo commented 7 months ago

This command:

Fails with the logs below. The main problem is:

deployClientApp Gatsby build    2024-03-28T11:07:51.0441234Z   Error: error:0308010C:digital envelope routines::unsupported

Fixing this is beyond my limited Javascript knowledge.

I think that this demo project is basically broken unless someone can fix this.

gh run view --log-failed --job=23194863601
[git remote -v]
[git config --get-regexp ^remote\..*\.gh-resolved$]
⣾* Request at 2024-03-28 12:50:01.038064 +0100 CET m=+0.115819251
* Request to https://api.github.com/repos/NathanDotTo/serverless-reference-implementation/actions/jobs/23194863601
⢿* Request took 407.959ms
⣾* Request at 2024-03-28 12:50:01.480721 +0100 CET m=+0.558471084
* Request to https://api.github.com/repos/NathanDotTo/serverless-reference-implementation/actions/runs/8466325812?exclude_pull_requests=true
⣻* Request took 239.647334ms
* Request at 2024-03-28 12:50:01.75149 +0100 CET m=+0.829237626
* Request to https://api.github.com/repos/NathanDotTo/serverless-reference-implementation/actions/workflows/91508879
⡿* Request took 216.480833ms
deployClientApp Gatsby build    2024-03-28T11:06:59.0895132Z ##[group]Run cd src/ClientApp
deployClientApp Gatsby build    2024-03-28T11:06:59.0895556Z cd src/ClientApp
deployClientApp Gatsby build    2024-03-28T11:06:59.0895926Z npm install
deployClientApp Gatsby build    2024-03-28T11:06:59.0896264Z npx gatsby build
deployClientApp Gatsby build    2024-03-28T11:06:59.0917144Z shell: /usr/bin/bash -e ***0***
deployClientApp Gatsby build    2024-03-28T11:06:59.0917534Z ##[endgroup]
deployClientApp Gatsby build    2024-03-28T11:07:19.3375539Z npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
deployClientApp Gatsby build    2024-03-28T11:07:19.4765183Z npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
deployClientApp Gatsby build    2024-03-28T11:07:20.5694717Z npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
deployClientApp Gatsby build    2024-03-28T11:07:20.6397301Z npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
deployClientApp Gatsby build    2024-03-28T11:07:20.8160864Z npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
deployClientApp Gatsby build    2024-03-28T11:07:21.2215679Z npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
deployClientApp Gatsby build    2024-03-28T11:07:22.2726183Z npm WARN deprecated subscriptions-transport-ws@0.9.19: The `subscriptions-transport-ws` package is no longer maintained. We recommend you use `graphql-ws` instead. For help migrating Apollo software to `graphql-ws`, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#switching-from-subscriptions-transport-ws    For general help using `graphql-ws`, see https://github.com/enisdenjo/graphql-ws/blob/master/README.md
deployClientApp Gatsby build    2024-03-28T11:07:22.3773454Z npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
deployClientApp Gatsby build    2024-03-28T11:07:25.3866606Z npm WARN deprecated gatsby-recipes@0.9.3: gatsby-recipes has been removed from gatsby/gatsby-cli >=4.5.0. Update to gatsby@latest/gatsby-cli@latest to use versions without gatsby-recipes. This package will no longer receive updates.
deployClientApp Gatsby build    2024-03-28T11:07:47.2961597Z
deployClientApp Gatsby build    2024-03-28T11:07:47.2962472Z added 2013 packages, and audited 2014 packages in 45s
deployClientApp Gatsby build    2024-03-28T11:07:47.2965616Z
deployClientApp Gatsby build    2024-03-28T11:07:47.2966027Z 166 packages are looking for funding
deployClientApp Gatsby build    2024-03-28T11:07:47.2966956Z   run `npm fund` for details
deployClientApp Gatsby build    2024-03-28T11:07:47.5604237Z
deployClientApp Gatsby build    2024-03-28T11:07:47.5605404Z 108 vulnerabilities (3 low, 63 moderate, 34 high, 8 critical)
deployClientApp Gatsby build    2024-03-28T11:07:47.5606207Z
deployClientApp Gatsby build    2024-03-28T11:07:47.5607921Z To address issues that do not require attention, run:
deployClientApp Gatsby build    2024-03-28T11:07:47.5608811Z   npm audit fix
deployClientApp Gatsby build    2024-03-28T11:07:47.5609103Z
deployClientApp Gatsby build    2024-03-28T11:07:47.5609416Z To address all issues (including breaking changes), run:
deployClientApp Gatsby build    2024-03-28T11:07:47.5610423Z   npm audit fix --force
deployClientApp Gatsby build    2024-03-28T11:07:47.5610727Z
deployClientApp Gatsby build    2024-03-28T11:07:47.5610964Z Run `npm audit` for details.
deployClientApp Gatsby build    2024-03-28T11:07:50.1946545Z success open and validate gatsby-configs - 0.013s
deployClientApp Gatsby build    2024-03-28T11:07:50.2774817Z success load plugins - 0.082s
deployClientApp Gatsby build    2024-03-28T11:07:50.2975167Z success onPreInit - 0.019s
deployClientApp Gatsby build    2024-03-28T11:07:50.3004141Z success delete html and css files from previous builds - 0.002s
deployClientApp Gatsby build    2024-03-28T11:07:50.3053714Z success initialize cache - 0.005s
deployClientApp Gatsby build    2024-03-28T11:07:50.3411375Z success copy gatsby files - 0.035s
deployClientApp Gatsby build    2024-03-28T11:07:50.3515682Z success onPreBootstrap - 0.010s
deployClientApp Gatsby build    2024-03-28T11:07:50.4139784Z success createSchemaCustomization - 0.001s
deployClientApp Gatsby build    2024-03-28T11:07:50.4316905Z success Checking for changed pages - 0.000s
deployClientApp Gatsby build    2024-03-28T11:07:50.4319017Z success source and transform nodes - 0.017s
deployClientApp Gatsby build    2024-03-28T11:07:50.5513961Z success building schema - 0.119s
deployClientApp Gatsby build    2024-03-28T11:07:50.5549009Z info Total nodes: 19, SitePage nodes: 1 (use --verbose for breakdown)
deployClientApp Gatsby build    2024-03-28T11:07:50.5551482Z success createPages - 0.003s
deployClientApp Gatsby build    2024-03-28T11:07:50.5556816Z success Checking for changed pages - 0.000s
deployClientApp Gatsby build    2024-03-28T11:07:50.5884996Z success createPagesStatefully - 0.032s
deployClientApp Gatsby build    2024-03-28T11:07:50.6027300Z success update schema - 0.014s
deployClientApp Gatsby build    2024-03-28T11:07:50.6032592Z success onPreExtractQueries - 0.000s
deployClientApp Gatsby build    2024-03-28T11:07:50.6201773Z success extract queries from components - 0.016s
deployClientApp Gatsby build    2024-03-28T11:07:50.6210379Z success write out redirect data - 0.000s
deployClientApp Gatsby build    2024-03-28T11:07:50.6216263Z success onPostBootstrap - 0.000s
deployClientApp Gatsby build    2024-03-28T11:07:50.6221296Z info bootstrap finished - 2.518s
deployClientApp Gatsby build    2024-03-28T11:07:50.6308702Z success run page queries - 0.007s - 3/3 402.06/s
deployClientApp Gatsby build    2024-03-28T11:07:50.6335617Z success write out requires - 0.002s
deployClientApp Gatsby build    2024-03-28T11:07:50.8828367Z warning Browserslist: caniuse-lite is outdated. Please run:
deployClientApp Gatsby build    2024-03-28T11:07:50.8829502Z   npx browserslist@latest --update-db
deployClientApp Gatsby build    2024-03-28T11:07:50.8830985Z   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
deployClientApp Gatsby build    2024-03-28T11:07:51.0229487Z error UNHANDLED REJECTION error:0308010C:digital envelope routines::unsupported
deployClientApp Gatsby build    2024-03-28T11:07:51.0438969Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0439451Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0441234Z   Error: error:0308010C:digital envelope routines::unsupported
deployClientApp Gatsby build    2024-03-28T11:07:51.0442878Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0443763Z   - hash:69 new Hash
deployClientApp Gatsby build    2024-03-28T11:07:51.0444880Z     node:internal/crypto/hash:69:19
deployClientApp Gatsby build    2024-03-28T11:07:51.0445673Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0446510Z   - node:crypto:133 Object.createHash
deployClientApp Gatsby build    2024-03-28T11:07:51.0447244Z     node:crypto:133:10
deployClientApp Gatsby build    2024-03-28T11:07:51.0447683Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0448308Z   - createHash.js:135 module.exports
deployClientApp Gatsby build    2024-03-28T11:07:51.0449151Z     [ClientApp]/[webpack]/lib/util/createHash.js:135:53
deployClientApp Gatsby build    2024-03-28T11:07:51.0449684Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0450310Z   - NormalModule.js:417 NormalModule._initBuildHash
deployClientApp Gatsby build    2024-03-28T11:07:51.0452081Z     [ClientApp]/[webpack]/lib/NormalModule.js:417:16
deployClientApp Gatsby build    2024-03-28T11:07:51.0452842Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0453346Z   - NormalModule.js:452
deployClientApp Gatsby build    2024-03-28T11:07:51.0454082Z     [ClientApp]/[webpack]/lib/NormalModule.js:452:10
deployClientApp Gatsby build    2024-03-28T11:07:51.0454609Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0455099Z   - NormalModule.js:323
deployClientApp Gatsby build    2024-03-28T11:07:51.0455811Z     [ClientApp]/[webpack]/lib/NormalModule.js:323:13
deployClientApp Gatsby build    2024-03-28T11:07:51.0456326Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0456806Z   - LoaderRunner.js:367
deployClientApp Gatsby build    2024-03-28T11:07:51.0457540Z     [ClientApp]/[loader-runner]/lib/LoaderRunner.js:367:11
deployClientApp Gatsby build    2024-03-28T11:07:51.0458084Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0458568Z   - LoaderRunner.js:233
deployClientApp Gatsby build    2024-03-28T11:07:51.0459296Z     [ClientApp]/[loader-runner]/lib/LoaderRunner.js:233:18
deployClientApp Gatsby build    2024-03-28T11:07:51.0459844Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0460432Z   - LoaderRunner.js:111 context.callback
deployClientApp Gatsby build    2024-03-28T11:07:51.0461241Z     [ClientApp]/[loader-runner]/lib/LoaderRunner.js:111:13
deployClientApp Gatsby build    2024-03-28T11:07:51.0461776Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0462215Z   - index.js:59
deployClientApp Gatsby build    2024-03-28T11:07:51.0462868Z     [ClientApp]/[babel-loader]/lib/index.js:59:103
deployClientApp Gatsby build    2024-03-28T11:07:51.0463370Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0463648Z
deployClientApp Gatsby build    2024-03-28T11:07:51.0464162Z not finished Building production JavaScript and CSS bundles - 0.411s
deployClientApp Gatsby build    2024-03-28T11:07:52.1802876Z ##[error]Process completed with exit code 1.
v-fearam commented 7 months ago

I wanted to inform you that the issue has been addressed in the pull request #125. I will proceed to close the ticket. However, if you encounter any further issues or have additional feedback, please feel free to open a new ticket.