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

Frontend build fails: amplify.sh: line 22: node: command not found #3762

Closed
5 tasks done
tanyageorgieva opened this issue Oct 19, 2023 · 11 comments
Closed
5 tasks done
Assignees
Labels

Comments

@tanyageorgieva
Copy link

tanyageorgieva commented Oct 19, 2023

Before opening, please confirm:

  • I have checked to see if my question is addressed in the FAQ.
  • I have searched for duplicate or closed issues.
  • I have read the guide for submitting bug reports.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

App Id

d1nw87xs6xnvpy

AWS Region

us-east-1

Amplify Hosting feature

Frontend builds

Frontend framework

Other

Next.js version

N/A

Next.js router

N/A

Describe the bug

The AWS Amplify Console Web Preview step on PRs started to fail with Frontend build failure: [WARNING]: /codebuild/output/src2100266492/src/flows-sdk/amplify.sh: line 22: node: command not found without changing build configurations.

Expected behavior

The AWS Amplify Console Web Preview step should build successfully on git push.

Reproduction steps

Git Push on PRs

Build Settings

version: 1
frontend:
  phases:
    build:
      commands: [
          'pip install -r requirements-dev.txt',
          './run_build_docs.sh',
      ]
  artifacts:
    baseDirectory: /docs/build
    files:
      - '**/*'
  cache:
    paths: []

Log output

     The HTML pages are in docs/build.
2023-10-19T10:33:40.370Z [INFO]: 3. Validating well-known backlinks exist
2023-10-19T10:33:40.370Z [INFO]: /codebuild/output/src2100266492/src/flows-sdk/docs/build/pages/python_packages.html validated to exist
                                 # Completed phase: build
2023-10-19T10:33:40.372Z [WARNING]: /codebuild/output/src2100266492/src/flows-sdk/amplify.sh: line 22: node: command not found
2023-10-19T10:33:40.373Z [ERROR]: !!! Build failed
2023-10-19T10:33:40.373Z [ERROR]: !!! Non-Zero Exit Code detected
2023-10-19T10:33:40.373Z [INFO]: # Starting environment caching...
2023-10-19T10:33:40.373Z [INFO]: # Environment caching completed
Terminating logging...


Additional information

No response

@tanyageorgieva
Copy link
Author

Tried to open a PR for a new/another branch in the same repository, but the issue persists.

@Xavientois
Copy link

We are experiencing this issue as well. The build was working before and with no functional changes to our code or config, it now fails with this error:

/codebuild/output/src1338011394/src/asdfqwerty/amplify.sh: line 61: node: command not found

@jsarafajr
Copy link

This happens when you use a custom image that doesn't have node installed.

@Xavientois
Copy link

We use public.ecr.aws/sam/build-python3.9:1 as the build container, so that makes sense. What I am confused about is the fact that it used to work fine, and nothing was changed on our end. Did AWS post about this change somewhere?

@jsarafajr
Copy link

@Xavientois not that I'm aware of. This hurts me as well. I use custom build image to build flutter app that doesn't have node in it.

@thogerb
Copy link

thogerb commented Oct 20, 2023

Experiencing the same issue here. Fails all builds on same code as before.

When did the same code work?

17/10/2023 was last that we deployed with success.

When did the same code start to fail?

19/10/2023 it started failing. Same code base.

@Jay2113
Copy link
Contributor

Jay2113 commented Oct 20, 2023

Hi everyone 👋 , thanks for raising this with us and sorry for the inconvenience caused due to it.

We are actively investigating into this and will keep you posted with any updates.

@ferdingler
Copy link
Contributor

We rolled back the defective commit on all regions. For those affected, we have notified your AWS accounts via Health Dashboard.

@Jay2113
Copy link
Contributor

Jay2113 commented Oct 20, 2023

We have root caused the issue and it has been mitigated. Please redeploy your apps.

As mentioned by @ferdingler, we have also notified the impacted AWS accounts via the Health Dashboard.

Between Oct 12 12:18 PM PT and Oct 20 09:11 AM PT we experienced increased build error rates with custom images. This issue has been resolved and the service is operating normally.

We really appreciate your continued patience and cooperation. Thank you.

@Jay2113 Jay2113 closed this as completed Oct 20, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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.

@github-actions
Copy link

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Oct 20, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants