11 mins read
Bug with amplify and git
Having subject with this bug. Don’t know what to do.
As an alternative of closing the query why dont you assist me publish the query!
model: 1
frontend:
phases:
preBuild:
instructions:
- npm ci
construct:
instructions:
- npm run construct
artifacts:
# IMPORTANT - Please confirm your construct output listing
baseDirectory: /
recordsdata:
- '**/*'
cache:
paths:
- node_modules/**/*
2021-12-09T14:13:22.355Z [INFO]: Git SSH Key acquired
2021-12-09T14:13:22.430Z [INFO]: # Cloning repository: git@github.com:jmfcool/jmfcool.react.git
2021-12-09T14:13:22.514Z [INFO]: Agent pid 134
2021-12-09T14:13:22.547Z [INFO]: Identification added: /root/.ssh/git_rsa (/root/.ssh/git_rsa)
2021-12-09T14:13:22.810Z [INFO]: Cloning into 'jmfcool.react'...
2021-12-09T14:13:23.109Z [INFO]: Warning: Completely added the ECDSA host key for IP handle '140.82.114.3' to the record of recognized hosts.
2021-12-09T14:13:24.956Z [INFO]: # Switching to commit: 3ac7431ee4752f3fed5f9334dad90bfe1bf316f1
2021-12-09T14:13:25.132Z [INFO]: Agent pid 147
2021-12-09T14:13:25.132Z [INFO]: Identification added: /root/.ssh/git_rsa (/root/.ssh/git_rsa)
Observe: switching to '3ac7431ee4752f3fed5f9334dad90bfe1bf316f1'.
You might be in 'indifferent HEAD' state. You may go searching, make experimental
adjustments and commit them, and you'll discard any commits you make on this
state with out impacting any branches by switching again to a department.
If you wish to create a brand new department to retain commits you create, it's possible you'll
accomplish that (now or later) through the use of -c with the swap command. Instance:
git swap -c <new-branch-name>
Or undo this operation with:
git swap -
Flip off this recommendation by setting config variable recommendation.detachedHead to false
HEAD is now at 3ac7431 Replace footer
2021-12-09T14:13:25.138Z [INFO]: Efficiently cleaned up Git credentials
2021-12-09T14:13:25.138Z [INFO]: # Checking for Git submodules at: /codebuild/output/src242895337/src/jmfcool.react/.gitmodules
2021-12-09T14:13:25.159Z [INFO]: # Retrieving setting cache...
2021-12-09T14:13:25.224Z [INFO]: # Retrieved setting cache
2021-12-09T14:13:25.224Z [INFO]: ---- Setting Up SSM Secrets and techniques ----
2021-12-09T14:13:25.224Z [INFO]: SSM params {"Path":"/amplify/d3a41fccs4kkio/important/","WithDecryption":true}
2021-12-09T14:13:25.259Z [WARNING]: !Did not arrange course of.env.secrets and techniques
2021-12-09T14:13:25.259Z [WARNING]: ! Unable to patch packages...
2021-12-09T14:13:25.267Z [INFO]: # Retrieving cache...
2021-12-09T14:13:30.180Z [INFO]: # Extracting cache...
2021-12-09T14:13:35.183Z [INFO]: # Extraction accomplished
2021-12-09T14:13:55.182Z [INFO]: ## Beginning Backend Construct
## Checking for related backend setting...
## No backend setting affiliation discovered, persevering with...
## Accomplished Backend Construct
## Beginning Frontend Construct
# Beginning part: preBuild
# Executing command: npm ci
2021-12-09T14:13:57.231Z [WARNING]: npm
2021-12-09T14:13:57.232Z [WARNING]: WARN
2021-12-09T14:13:57.232Z [WARNING]: put together eradicating current node_modules/ earlier than set up
2021-12-09T14:14:11.442Z [INFO]: > core-js@2.6.12 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/babel-runtime/node_modules/core-js
> node -e "attempt{require('./postinstall')}catch(e){}"
2021-12-09T14:14:11.486Z [INFO]: [96mThank you for using core-js ([94m https://github.com/zloirock/core-js [96m) for polyfilling JavaScript standard library![0m
[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: [0m
[96m>[94m https://opencollective.com/core-js [0m
[96m>[94m https://www.patreon.com/zloirock [0m
[96mAlso, the author of core-js ([94m https://github.com/zloirock [96m) is looking for a good job -)[0m
2021-12-09T14:14:11.509Z [INFO]: > ejs@2.7.4 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/ejs
> node ./postinstall.js
2021-12-09T14:14:11.548Z [INFO]: Thanks for putting in [35mEJS[0m: built with the [32mJake[0m JavaScript build tool ([32mhttps://jakejs.com/[0m)
2021-12-09T14:14:11.714Z [INFO]: > fsevents@1.2.13 set up /codebuild/output/src242895337/src/jmfcool.react/node_modules/webpack-dev-server/node_modules/fsevents
> node set up.js
2021-12-09T14:14:11.753Z [INFO]:
2021-12-09T14:14:11.753Z [INFO]: Skipping 'fsevents' construct as platform linux shouldn't be supported
2021-12-09T14:14:11.782Z [INFO]: > fsevents@1.2.13 set up /codebuild/output/src242895337/src/jmfcool.react/node_modules/watchpack-chokidar2/node_modules/fsevents
> node set up.js
2021-12-09T14:14:11.820Z [INFO]:
2021-12-09T14:14:11.820Z [INFO]: Skipping 'fsevents' construct as platform linux shouldn't be supported
2021-12-09T14:14:11.968Z [INFO]: > core-js@3.18.3 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/core-js
> node -e "attempt{require('./postinstall')}catch(e){}"
2021-12-09T14:14:12.010Z [INFO]: [96mThank you for using core-js ([94m https://github.com/zloirock/core-js [96m) for polyfilling JavaScript standard library![0m
[96mThe project needs your help! Please consider supporting of core-js:[0m
[96m>[94m https://opencollective.com/core-js [0m
[96m>[94m https://patreon.com/zloirock [0m
[96m>[94m https://paypal.me/zloirock [0m
[96m>[94m bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz [0m
[96mAlso, the author of core-js ([94m https://github.com/zloirock [96m) is looking for a good job -)[0m
2021-12-09T14:14:12.362Z [INFO]: > core-js-pure@3.18.3 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/core-js-pure
> node -e "attempt{require('./postinstall')}catch(e){}"
2021-12-09T14:14:12.527Z [INFO]: > @fortawesome/fontawesome-common-types@0.2.36 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/@fortawesome/fontawesome-common-types
> node attribution.js
2021-12-09T14:14:12.564Z [INFO]: Font Superior Free 0.2.36 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2021-12-09T14:14:12.568Z [INFO]: > @fortawesome/free-solid-svg-icons@5.15.4 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/@fortawesome/free-solid-svg-icons
> node attribution.js
2021-12-09T14:14:12.605Z [INFO]: Font Superior Free 5.15.4 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2021-12-09T14:14:12.609Z [INFO]: > @fortawesome/free-regular-svg-icons@5.15.4 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/@fortawesome/free-regular-svg-icons
> node attribution.js
2021-12-09T14:14:12.645Z [INFO]: Font Superior Free 5.15.4 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2021-12-09T14:14:12.649Z [INFO]: > @fortawesome/free-brands-svg-icons@5.15.4 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/@fortawesome/free-brands-svg-icons
> node attribution.js
2021-12-09T14:14:12.685Z [INFO]: Font Superior Free 5.15.4 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2021-12-09T14:14:12.690Z [INFO]: > @fortawesome/fontawesome-svg-core@1.2.36 postinstall /codebuild/output/src242895337/src/jmfcool.react/node_modules/@fortawesome/fontawesome-svg-core
> node attribution.js
2021-12-09T14:14:12.728Z [INFO]: Font Superior Free 1.2.36 by @fontawesome - https://fontawesome.com
License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2021-12-09T14:14:12.732Z [INFO]: added 2066 packages in 15.521s
2021-12-09T14:14:12.747Z [INFO]: # Accomplished part: preBuild
# Beginning part: construct
2021-12-09T14:14:12.747Z [INFO]: # Executing command: npm run construct
2021-12-09T14:14:12.909Z [INFO]: > jmfcool.react@0.1.0 construct /codebuild/output/src242895337/src/jmfcool.react
> react-scripts construct
2021-12-09T14:14:14.013Z [INFO]: Creating an optimized manufacturing construct...
2021-12-09T14:14:18.209Z [INFO]: Did not compile.
2021-12-09T14:14:18.211Z [INFO]: ./src/Abouts.js
Can't discover file './img/advertising and marketing.png' in './src'.
2021-12-09T14:14:18.224Z [WARNING]: npm
2021-12-09T14:14:18.224Z [WARNING]: ERR! code ELIFECYCLE
npm ERR! errno 1
2021-12-09T14:14:18.226Z [WARNING]: npm
2021-12-09T14:14:18.227Z [WARNING]: ERR! jmfcool.react@0.1.0 construct: `react-scripts construct`
npm ERR! Exit standing 1
npm ERR!
npm ERR! Failed on the jmfcool.react@0.1.0 construct script.
npm ERR! That is most likely not an issue with npm. There may be doubtless extra logging output above.
2021-12-09T14:14:18.231Z [WARNING]:
2021-12-09T14:14:18.231Z [WARNING]: npm ERR! A whole log of this run may be present in:
npm ERR! /root/.npm/_logs/2021-12-09T14_14_18_227Z-debug.log
2021-12-09T14:14:18.231Z [HELP]: Outputting the npm debug log
0 data it labored if it ends with okay
1 verbose cli [
1 verbose cli '/root/.nvm/versions/node/v12.21.0/bin/node',
1 verbose cli '/root/.nvm/versions/node/v12.21.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 data utilizing npm@6.14.11
3 data utilizing node@v12.21.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 data lifecycle jmfcool.react@0.1.0~prebuild: jmfcool.react@0.1.0
6 data lifecycle jmfcool.react@0.1.0~construct: jmfcool.react@0.1.0
7 verbose lifecycle jmfcool.react@0.1.0~construct: unsafe-perm in lifecycle true
8 verbose lifecycle jmfcool.react@0.1.0~construct: PATH: /root/.nvm/variations/node/v12.21.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/codebuild/output/src242895337/src/jmfcool.react/node_modules/.bin:/usr/native/rvm/gems/ruby-2.4.6/bin:/usr/native/rvm/gems/ruby-2.4.6@international/bin:/usr/native/rvm/rubies/ruby-2.4.6/bin:/usr/native/rvm/bin:/root/.yarn/bin:/root/.config/yarn/international/node_modules/.bin:/root/.nvm/variations/node/v12.21.0/bin:/root/.native/bin:/root/.native/bin:/usr/native/rvm/bin:/usr/native/sbin:/usr/native/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.dotnet/instruments
9 verbose lifecycle jmfcool.react@0.1.0~construct: CWD: /codebuild/output/src242895337/src/jmfcool.react
10 foolish lifecycle jmfcool.react@0.1.0~construct: Args: [ '-c', 'react-scripts build' ]
11 foolish lifecycle jmfcool.react@0.1.0~construct: Returned: code: 1 sign: null
12 data lifecycle jmfcool.react@0.1.0~construct: Did not exec construct script
13 verbose stack Error: jmfcool.react@0.1.0 construct: `react-scripts construct`
13 verbose stack Exit standing 1
13 verbose stack at EventEmitter.<nameless> (/root/.nvm/variations/node/v12.21.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (occasions.js:314:20)
13 verbose stack at ChildProcess.<nameless> (/root/.nvm/variations/node/v12.21.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (occasions.js:314:20)
13 verbose stack at maybeClose (inner/child_process.js:1022:16)
13 verbose stack at Course of.ChildProcess._handle.onexit (inner/child_process.js:287:5)
14 verbose pkgid jmfcool.react@0.1.0
15 verbose cwd /codebuild/output/src242895337/src/jmfcool.react
16 verbose Linux 4.14.252-195.483.amzn2.x86_64
17 verbose argv "/root/.nvm/variations/node/v12.21.0/bin/node" "/root/.nvm/variations/node/v12.21.0/bin/npm" "run" "construct"
18 verbose node v12.21.0
19 verbose npm v6.14.11
20 error code ELIFECYCLE
21 error errno 1
22 error jmfcool.react@0.1.0 construct: `react-scripts construct`
22 error Exit standing 1
23 error Failed on the jmfcool.react@0.1.0 construct script.
23 error That is most likely not an issue with npm. There may be doubtless extra logging output above.
24 verbose exit [ 1, true ]
2021-12-09T14:14:18.234Z [ERROR]: !!! Construct failed
2021-12-09T14:14:18.235Z [ERROR]: !!! Non-Zero Exit Code detected
2021-12-09T14:14:18.235Z [INFO]: # Beginning setting caching...
2021-12-09T14:14:18.235Z [INFO]: # Importing setting cache artifact...
2021-12-09T14:14:18.309Z [INFO]: # Setting caching accomplished
Terminating logging...