webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Multiple Deployment Failures

Open TheBoatyMcBoatFace opened this issue 2 years ago • 0 comments

Version

No response

Operating System

linux

Browser

No response

What steps will reproduce the bug?

Initially I deployed it locally on a Ubuntu Docker Container. I ended up with an error, the same I am seeing, so I spun up an ec2 instance and tried it there.

How to recreate the issue

I ran the following commands in the termal as the default ubuntu user in an AWS ec2 instance

sudo apt-get update
sudo apt-get upgrade -y
nano ~/.aws/credentials

The following file was created

[default]
aws_access_key_id = ACCESS_KEY_HERE
aws_secret_access_key = SECRETY_MCSECRET_FACE

Once the file was saved, I continued with the below

sudo apt-get install nodejs yarn npm curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

nvm install v16.16.0
corepack enable
yarn init -2
yarn set version 1.22.1

At this point, all prerequisites are satisfied. I attempt to launch my project

npx create-webiny-project my-new-project

I then selected my AWS region (us-east-1) and database type (DynamoDB)

What is the expected behavior?

I had hoped for sunshine and rainbows

What do you see instead?

Output

Initializing a new Webiny project in /home/ubuntu/my-new-project...
  ✔ Prepare project folder
  ✔ Setup yarn
  ✔ Install template package
  ✔ Initialize git
Starting @webiny/cwp-template-aws template ...

In order to setup your new Webiny project, please answer the following questions.

? Please choose the AWS region in which your new project will be deployed: us-east-1 (US East, N. Virginia)
? Please choose the database you wish to use with your Webiny project: DynamoDB (for small and medium sized projects)
⏳ Installing dependencies....

yarn install v1.22.1
[1/4] Resolving packages...
warning Resolution field "[email protected]" is incompatible with requested version "typescript@~3.7.3"
warning @webiny/cli-plugin-workspaces > @webiny/project-utils > react-native-web > [email protected]: Check out `lodash.merge` or `merge-options` instead.
warning @webiny/cli-plugin-workspaces > @webiny/project-utils > react-native-web > fbjs > [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning @webiny/cli-plugin-workspaces > @webiny/project-utils > @svgr/webpack > @svgr/plugin-svgo > svgo > [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
warning @webiny/serverless-cms-aws > @webiny/api-i18n > [email protected]: Please upgrade to v0.0.3+ as we have fixed missing ISO-639-1 codes
warning @webiny/serverless-cms-aws > @webiny/api-page-builder > @webiny/api-prerendering-service > [email protected]: Version no longer supported. Upgrade to @latest
warning [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: https://github.com/standard/standard/issues/1316
warning jest > @jest/core > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning jest > @jest/core > jest-haste-map > sane > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > [email protected]: standard 16.0.0 and eslint-config-standard 16.0.0 no longer require the eslint-plugin-standard package. You can remove it from your dependencies with 'npm rm eslint-plugin-standard'. More info here: https://github.com/standard/standard/issues/1316
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "[email protected]" is incompatible with requested version "codex-tooltip@^1.0.5"
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-headless-cms > @fortawesome/[email protected]: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-page-builder > @fortawesome/[email protected]: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-headless-cms > @fortawesome/[email protected]: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-page-builder > @fortawesome/[email protected]: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-headless-cms > @fortawesome/fontawesome-svg-core > @fortawesome/[email protected]: Please upgrade to 6.1.0. https://fontawesome.com/docs/changelog/
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-page-builder > [email protected]: This beta version is no longer supported. Please update to 1.1.0-beta.4
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning Resolution field "@types/[email protected]" is incompatible with requested version "@types/[email protected]"
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-form-builder > @webiny/ui > rc-tooltip > babel-runtime > [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-form-builder > @webiny/ui > react-ace > @babel/[email protected]: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-form-builder > @webiny/ui > react-ace > @babel/polyfill > [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning workspace-aggregator-bef67159-eebe-4d93-85c9-18902d2ec32d > admin > @webiny/app-admin-users-cognito > @webiny/app-admin-cognito > @aws-amplify/auth > @aws-amplify/core > @aws-sdk/client-cloudwatch-logs > @aws-sdk/middleware-retry > [email protected]: 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.
error Package "" refers to a non-existing file '"/home/ubuntu/my-new-project/rmwc/base"'.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Package "" refers to a non-existing file '"/home/ubuntu/my-new-project/rmwc/textfield"'.
    at /home/ubuntu/.yarn/releases/yarn-1.22.1.cjs:50710:15
    at Generator.next (<anonymous>)
    at step (/home/ubuntu/.yarn/releases/yarn-1.22.1.cjs:310:30)
    at /home/ubuntu/.yarn/releases/yarn-1.22.1.cjs:321:13

ERROR OUTPUT: 
----------------------------------------
Failed while installing project dependencies. Please check the above logs for more information.

SYSTEM INFORMATION: 
----------------------------------------
Operating System: linux
Node: 16.16.0
Yarn: 1.22.1
create-webiny-project: 5.29.0
Template: N/A
Template Options: {}

Please open an issue including the error output at https://github.com/webiny/webiny-js/issues/new.
You can also get in touch with us on our Slack Community: https://www.webiny.com/slack

Writing log to /home/ubuntu/cwp-logs.txt...
Cleaning up generated files and folders...
Done.

Additional information

No response

Possible solution

No response

TheBoatyMcBoatFace avatar Jul 08 '22 01:07 TheBoatyMcBoatFace