amplify-hosting icon indicating copy to clipboard operation
amplify-hosting copied to clipboard

Failed to deploy with no error messages

Open alexdemers opened this issue 2 years ago • 16 comments

Before opening, please confirm:

App Id

d3v5fhuza2jj3v

Region

ca-central-1

Amplify Hosting feature

Logging, Manual deploys

Describe the bug

Since about a week ago, every builds in the application complete but the deployment fails, then a few seconds later they complete. Because of this, it seems that the deployment is incomplete: the application responds with a blank page, then a few minutes later (and after clearing the browser cache) the application deployed correctly, even though amplify mentions that the deployment failed.

I have no error message except this in the Deploy tab:

2022-09-08T13:59:51 [INFO]: Starting Deployment
2022-09-08T13:59:51 [INFO]: Updating Edge config
2022-09-08T13:59:51 [ERROR]: Failed to deploy
 Got archive: 7602706 bytes
2022-09-08T13:59:53 [INFO]: Deployment complete

Expected behavior

Expected to deploy and verify successfully with the application being immediately available without any clearing of caches.

Reproduction steps

  1. Any deployment either manually with the console, or with automatically with new commits.

Build Settings

version: 1
frontend:
    phases:
        preBuild:
            commands:
                - yarn install --frozen-lockfile
        build:
            commands:
                - yarn run build
    artifacts:
        baseDirectory: public
        files:
            - '**/*'
    cache:
        paths:
            - node_modules/**/*

Additional information

No response

alexdemers avatar Sep 08 '22 14:09 alexdemers

Same, it's terrible, I have to redeploy 4 or 5 times for it to finally work. Kill this service AWS, it's a catastrophe.

bcastagna avatar Sep 12 '22 21:09 bcastagna

We also see failed builds. On the second failed one today (none have succeeded). Deploy seems to fail with error:

[ERROR]: Failed to deploy

Looking at the logs again a few minutes later, the log shows:

[INFO]: Deployment complete

At that point the logs don't show the failed message from before. Notifications are triggered as failed, so our platform does not fully finish the deployment.

Anyone from the Amplify team? Super disturbing to see reports like this go a week without any response.

houmark avatar Sep 16 '22 01:09 houmark

Hello @alexdemers @houmark @bcastagna 👋🏽 apologies for the delay. We are investigating this issue internally and will provide an update with next steps shortly. @houmark and @bcastagna please provide your App IDs as well so we can provide better assistance. Thank you!

ghost avatar Sep 27 '22 17:09 ghost

@hloriana thanks. What's the preferred email to use for sending app ID and more information?

houmark avatar Sep 27 '22 17:09 houmark

Hi @houmark 👋🏽 you can send this information to [email protected]. The team is still root causing this issue but we will update as soon as we have next steps. We appreciate your patience!

ghost avatar Sep 28 '22 22:09 ghost

@hloriana Our app ID is: d27sbj90esrqdg.

Build failed in both master and develop consistently, every time. It's quite embarrassing for AWS that it's now 21 days since this report, which has multiple others reporting the same issue, and they have just started looking into it. Are you not monitoring your platforms at all? I have a feeling the entire Amplify platform will soon be retired, it seems AWS has lost all interest in the product and reassigned all engineers to other tasks.

houmark avatar Sep 29 '22 06:09 houmark

Hi @houmark thanks for providing your app ID. Your deployments moving forward should be shown as successful now. Your feedback is much appreciated and has been shared with the team. Please confirm with us that you're unblocked or if you are continuing to experience this behavior. Thank you!

ghost avatar Sep 29 '22 23:09 ghost

Thank you @hloriana — I can confirm that we were able to build and deploy without issues on our development branch. Obviously curious to know what was the reason for this, but I expect it was a one-off and should not happen again?

houmark avatar Sep 30 '22 00:09 houmark

@houmark Thank you for your continued patience and we sincerely apologize for the inconvenience caused due to a delayed response on the issue. We have unblocked your Amplify app d27sbj90esrqdg and you can now redeploy your previous build and they should complete successfully.

@alexdemers We have also unblocked your Amplify app d3v5fhuza2jj3v. Kindly redeploy your previous build.

@bcastagna Can you provide us your Amplify app ID?

That being said, we are actively working on root causing this issue and we will let you know once we have a timeline on the fix. In the meantime, if other developers run into this issue please provide us your Amplify app ID so that we can unblock you.

Jay2113 avatar Sep 30 '22 03:09 Jay2113

It builds on my side. What was the fix? It would be very helpful what caused the issue. Thanks for letting us know.

alexdemers avatar Sep 30 '22 12:09 alexdemers

Hi there Amplify team! We are experiencing the same or similar issue - our deployment step is reported as successful, but then nothing happens; neither Cloudfront nor s3 buckets are updated. App ID dliunm6jxxnfd App ARN is arn:aws:amplify:eu-west-2:935417867901:apps/dliunm6jxxnfd The last definite successful build was Build 228 on the 23rd Nov. Possibly related; we moved onto the beta program on the 24th.

dkhuntrods avatar Dec 01 '22 15:12 dkhuntrods

+1 with "INFO]: [4/4] Building fresh packages..." fails with no error messages. And not only with build command, but also install. For example, add postinstall script or husky, flow just stops there and doesn't show those failures as errors. IMO, to show the full stderr shouldn't be that hard.

talaikis avatar Dec 12 '22 20:12 talaikis

Facing the same issue, App id: d3mmp4qranpgym

Its almost 3 days, the deployment keeps on failing without proper reason

fahidqashio avatar Apr 13 '23 07:04 fahidqashio

Same issue with our app, deployment is reported as failed but actually works :

2023-12-05T11:23:12 [INFO]: Beginning deployment for application xxxxxxxxxxxxx, branch:dev, buildId 0000000000
2023-12-05T11:23:12 [INFO]: Got archive: 9164468 bytes
2023-12-05T11:23:15 [INFO]: Deployment complete

dridri avatar Dec 05 '23 11:12 dridri

Same issue

image

jeong-sik avatar Dec 23 '23 15:12 jeong-sik

Having the same issue, build is successful but deployments are failing. Happens inconsistently across deployments that have identical codebases

AlexanderChiclana avatar May 16 '24 14:05 AlexanderChiclana