Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing on patching AWS Amplify latest version #3917

Open
shilpigoodfin opened this issue Apr 2, 2024 · 1 comment
Open

Failing on patching AWS Amplify latest version #3917

shilpigoodfin opened this issue Apr 2, 2024 · 1 comment

Comments

@shilpigoodfin
Copy link

Describe the bug
The pipeline to deploy to staging is broken due to amplify latest version not getting patched.
2024-04-02T21:43:15.695Z [ERROR]: !!! Error patching NPM package '@aws-amplify/cli' to version latest. Verify the package name and version are correct, and retry the build. For help see our docs: https://docs.aws.amazon.com/amplify/latest/userguide/custom-build-image.html

Screenshots
Screenshot 2024-04-02 at 2 49 14 PM

2024-04-02T21:42:46.167Z [INFO]: # Cloning repository: git@github.com:goodfin/goodfin_aws.git
2024-04-02T21:42:48.253Z [INFO]:
2024-04-02T21:42:48.254Z [INFO]: Cloning into 'goodfin_aws'...
2024-04-02T21:42:48.254Z [INFO]: # Checking for Git submodules at: /codebuild/output/src3261265033/src/goodfin_aws/.gitmodules
2024-04-02T21:42:48.263Z [INFO]: # Retrieving environment cache...
2024-04-02T21:42:48.320Z [INFO]: # Retrieved environment cache
2024-04-02T21:42:48.320Z [INFO]: ---- Setting Up SSM Secrets ----
2024-04-02T21:42:48.320Z [INFO]: SSM params {"Path":"/amplify/d3jd584ikuog9o/staging/","WithDecryption":true}
2024-04-02T21:43:09.740Z [INFO]: # Node version 18 is available for installation
2024-04-02T21:43:09.859Z [INFO]: # Installing Node version 18
2024-04-02T21:43:14.150Z [INFO]: # Now using Node version 18
2024-04-02T21:43:15.119Z [WARNING]: Cannot find module '/root/.nvm/versions/node//lib/node_modules/@aws-amplify/cli/package.json'
Require stack:
- /snapshot/AWSMobilePioneerExecute/out/index.js
2024-04-02T21:43:15.120Z [INFO]: # Patching NPM package '@aws-amplify/cli' to 12.10.3...
2024-04-02T21:43:15.691Z [INFO]: node: /lib64/libm.so.6: version GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version GLIBC_2.28' not found (required by node)
2024-04-02T21:43:15.695Z [ERROR]: !!! Error patching NPM package '@aws-amplify/cli' to version latest. Verify the package name and version are correct, and retry the build. For help see our docs: https://docs.aws.amazon.com/amplify/latest/userguide/custom-build-image.html
2024-04-02T21:43:15.695Z [WARNING]: ! Unable to patch packages...
2024-04-02T21:43:15.695Z [INFO]: # Starting environment caching...
2024-04-02T21:43:15.695Z [INFO]: # Uploading environment cache artifact...
2024-04-02T21:43:15.794Z [INFO]: # Uploaded environment cache artifact
2024-04-02T21:43:15.794Z [INFO]: # Environment caching completed
2024-04-02T21:43:15.794Z [INFO]: # A new default build image based on Amazon Linux 2023 is now generally available. The image includes newer versions of Node.js, Python, and Ruby that you can use to build your app. To use the new image, select "Amazon Linux:2023" in the "Build settings" section for your app in the Amplify console.
Terminating logging...

@timngyn
Copy link
Member

timngyn commented Apr 2, 2024

👋 Hi @shilpigoodfin, this isn't the right place for this issue because this is the repo for the Amplify Documentation site, https://docs.amplify.aws/

You will get more help from here: https://github.com/aws-amplify/amplify-hosting, where you can reach out to AWS support to get some help or search through any of the existing issues related to Amplify Hosting to see if problem has already been solved: https://github.com/aws-amplify/amplify-hosting/issues

Looking at your PR description though, have you tried following the instructions for using the new build image at the bottom of your message?

A new default build image based on Amazon Linux 2023 is now generally available. The image includes newer versions of Node.js, Python, and Ruby that you can use to build your app. To use the new image, select "Amazon Linux:2023" in the "Build settings" section for your app in the Amplify console.

@hbuchel hbuchel transferred this issue from aws-amplify/docs Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants