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

Deployments failing with no error message #1784

Open
4 tasks done
amirhajimirsadeghi opened this issue Apr 28, 2021 · 3 comments
Open
4 tasks done

Deployments failing with no error message #1784

amirhajimirsadeghi opened this issue Apr 28, 2021 · 3 comments

Comments

@amirhajimirsadeghi
Copy link

Before opening, please confirm:

Describe the bug

This is the only message I see in my deployment step:

2021-04-28T23:05:35 [INFO]: Starting Deployment
2021-04-28T23:05:35 [ERROR]: Failed to deploy

This is happening for my qa and prod environments. I tried disconnecting the branch and reconnecting, deploying old version, redploying. It just keeps getting to the deployment stage and not giving me any info. Just failinh

Expected behavior

To either deploy the app successfully or give a more descriptive message

Reproduction steps

  1. Go to my amplify application
  2. Click redeploy this version

Build Settings

version: 0.1
backend:
  phases:
    build:
      commands:
        - '# Execute Amplify CLI with the helper script'
        - amplifyPush --simple
frontend:
  phases:
    preBuild:
      commands:
        - yarn install
    build:
      commands:
        - yarn run build:$USER_BRANCH
  artifacts:
    baseDirectory: build
    files:
      - '**/*'

Additional information

No response

@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.

@ac3charland
Copy link

ac3charland commented Apr 29, 2021

Was experiencing this same issue and was able to find a fix. I discovered I was using the latest version Amplify CLI in my build settings, which must have recently introduced a breaking change.

To fix:

In the Amplify console, go to Build settings > Build image settings > Edit
Specify the version of Amplify CLI that's in your project's package.json (e.g. 4.29.4)

Source: #1298 (comment)
Screen Shot 2021-04-29 at 4 21 12 PM

@amirhajimirsadeghi
Copy link
Author

Thanks, @ac3charland I put it to 4.49.0 and that did it for me! I wonder if this is an issue with CLI version 4.50.0

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