Skip to content

Amplify version 13.0.0 GLIBC not found #14127

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

Closed
bob-lee opened this issue Feb 26, 2025 · 5 comments
Closed

Amplify version 13.0.0 GLIBC not found #14127

bob-lee opened this issue Feb 26, 2025 · 5 comments
Labels
pending-triage Issue is pending triage question General question

Comments

@bob-lee
Copy link

bob-lee commented Feb 26, 2025

Amplify CLI Version

13.0.0

Question

Our project (App ID: d3e09syp3jtf2a) has been using AWS Amplify console for CI/CD for years.

Yesterday we experienced a series of failures to deploy and found "Backend Build" phase failed with below error:

# Patching NPM package '@aws-amplify/cli' from 10.5.2 to 13.0.0...
/root/.amplify/bin/amplify: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by /root/.amplify/bin/amplify)

Today I clicked Redeploy button on failed Deployment and it just worked ok with previous version:

# Patching NPM package '@aws-amplify/cli' from 10.5.2 to 12.14.4...

I believe we have no control on which version of CLI to use, some kind explanation will be appreciated.

@bob-lee bob-lee added pending-triage Issue is pending triage question General question labels Feb 26, 2025
@ykethan
Copy link
Member

ykethan commented Feb 26, 2025

Hey @bob-lee, thank you for reaching out and apologizes on the issue caused by this. The version 13.0.0 was immediately rolled back to 12.14.4 as latest.

As part of the latest new release we are expecting to use Node.js v22 as the default version which would require newer GLIBC. From the error message provided it appears your build settings currently use Amazon Linux 2 which does not provide newer GLIBC as part of the build image. I would suggest updating your build setting to use the latest default image Amazon Linux 2023 which does provide newer GLIBC.

If you would like to set a specific version of Amplify CLI like 12.14.4, you can use the _LIVE_UPDATES environment variable in Amplify console. Refer to the Amplify console environment variables documentation providing this information: https://docs.aws.amazon.com/amplify/latest/userguide/environment-variables.html
Alternatively, you can also install a specific version of Amplify CLI as part of your build specification amplify.yml file in the backend phase. For example:

backend:
 phases:
  build:
   commands:
    - npm i -g @aws-amplify/cli@12.14.4

Refer to the Amplify console build specification documentation: https://docs.aws.amazon.com/amplify/latest/userguide/edit-build-settings.html

Do let us know if you have any other questions or concerns. We're here to help ensure a smooth experience as you continue developing with AWS Amplify.

@ykethan ykethan added the pending-response Issue is pending response from the issue author label Feb 26, 2025
@bob-lee
Copy link
Author

bob-lee commented Feb 27, 2025

Thanks for clarification and extra info @ykethan , we have practical reason to stick to old versions such as node@18, vue@2.7, etc. plus this cli@12.14.4. Following your advice:

  • changed Build image to Amazone Linux 2023
  • took amplify.yml approach and deploy went smooth using specified version.
[INFO]: ## Starting Backend Build
# Starting phase: build
# Executing command: npm i -g @aws-amplify/cli@12.14.4

@github-actions github-actions bot removed the pending-response Issue is pending response from the issue author label Feb 27, 2025
@bob-lee bob-lee closed this as completed Feb 27, 2025
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

@warrenmcquinn
Copy link
Contributor

Just experienced this issue today - setting Live package updates value to 12.14.4 instead of latest resolved the issue for me on Amazon Linux 2.

@ykethan ykethan changed the title A series of Deplyments failed yesterday with version 13.0.0 Amplify version 13.0.0 GLIBC not found Mar 18, 2025
@ykethan ykethan pinned this issue Mar 18, 2025
@ykethan
Copy link
Member

ykethan commented Mar 19, 2025

Update:
If your Amplify application uses a backend from a different Amplify application or configured to automatically generate the Amplify config files at build time.
https://docs.aws.amazon.com/amplify/latest/userguide/amplify-config-autogeneration.html

The GLIBC message may not appear with the build logs as following causing the aws-exports.js or amplifyconfiguration.json to not generate as during build the amplify commands are run internally.

Image

similar to the pevious comment, I would suggest updating your build setting to use the latest default image Amazon Linux 2023 which does provide newer GLIBC.
If you would like to set a specific version of Amplify CLI like 12.14.4, you can use the _LIVE_UPDATES environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Issue is pending triage question General question
Projects
None yet
Development

No branches or pull requests

3 participants