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

Deployment fails with no log output #2121

Closed
4 tasks done
IvanLuchkin opened this issue Jul 31, 2021 · 6 comments
Closed
4 tasks done

Deployment fails with no log output #2121

IvanLuchkin opened this issue Jul 31, 2021 · 6 comments
Labels
archived This issue has been locked. deploy UX

Comments

@IvanLuchkin
Copy link

Before opening, please confirm:

App Id

drbq5wwyeeiy4

Region

eu-central-1

Amplify Console feature

Build settings

Describe the bug

I have created a plain CRA application and trying to deploy it using Amplify. Deployment stage of the pipeline fails as such:
image

Expected behavior

Pipeline should succeed

Reproduction steps

  1. Create a CRA app and push it to GitLab repo
  2. Connect the repo to Amplify
  3. Configure build settings (specified in the section below)
  4. Trigger deployment pipeline

Build Settings

`version: 1
backend:
  phases:
    build:
      commands:
        - '# Execute Amplify CLI with the helper script'
        - amplifyPush --simple
frontend:
  phases:
    preBuild:
      commands:
        - yarn install --frozen-lockfile
    build:
      commands:
        - yarn build
  artifacts:
    baseDirectory: build
    files:
      - '**/*'
test:
  phases:
    preTest:
      commands:
        - yarn install --frozen-lockfile
    test:
      commands:
        - yarn test:ci
  artifacts:
    baseDirectory: coverage
    files:
      - '**/*'
      `

Additional information

My Amplify app also contains a custom domain and a HelloWorld Lambda function on the backend.

@github-actions
Copy link

Hi 👋, thanks for opening! While we look into this...

If this issue is related to custom domains, be sure to check the custom domains troubleshooting guide to see if that helps. Also, there is a more general troubleshooting FAQ that may be helpful for other questions.

Lastly, please make sure you've specified the App ID and Region in the issue!

@Ronald03
Copy link

As of last night, I am experiencing the same problem, the EXACT same problem. My application size is not big at all, it's a simple static react page.

The only change made on my existing deployed app was to specify the Amplify version I used at the time of creating the app. After updating that, Amplify was able to create a successful Build (because it was failing) but the Deploy fails just like in the image shared above. This is not a brand new app, I already had this deployed and working fine, the problem started when I updated my Github repo.

@abhi7cr abhi7cr added the UX label Aug 5, 2021
@IsraelWebDev
Copy link

IsraelWebDev commented Aug 29, 2021

I'm experiencing the same issue after adding the test phase to my config. I am not using a custom domain.

region=us-west-2
App Id: d2it2wyaz5znpu
branch: tests

Currently I'm not seeing the test output though the error seemed to happen also when the tests ran and passed previously.

version: 1
frontend:
    phases:
        preBuild:
            commands:
                - yarn install
        build:
            commands:
                - REACT_APP_BASE_URL=${REACT_APP_BASE_URL}
                - yarn run build
    artifacts:
        baseDirectory: build
        files:
            - "**/*"
    cache:
        paths:
            - node_modules/**/*
test:
    phases:
        preTest:
            commands:
                - yarn install
        test:
            commands:
                - REACT_APP_BASE_URL=${REACT_APP_BASE_URL}
                - ./test.sh
    artifacts:
        baseDirectory: coverage

@ghost ghost added deploy s2 labels Jan 27, 2023
@ghost ghost removed the s2 label Mar 17, 2023
@Jay2113
Copy link
Contributor

Jay2113 commented Mar 7, 2024

Over the past several years, we have made significant improvements to the Amplify deployment process and this issue has been fixed.

@Jay2113 Jay2113 closed this as completed Mar 7, 2024
Copy link

github-actions bot commented Mar 7, 2024

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.

Copy link

github-actions bot commented Mar 7, 2024

This issue has been automatically locked.

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

No branches or pull requests

5 participants