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

Unable to pull backend #2280

Closed
2 tasks done
muratcali opened this issue Feb 2, 2024 · 13 comments
Closed
2 tasks done

Unable to pull backend #2280

muratcali opened this issue Feb 2, 2024 · 13 comments

Comments

@muratcali
Copy link

muratcali commented Feb 2, 2024

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v20.10.0

Amplify CLI Version

12.10.1

What operating system are you using?

MacOS 14.2.1

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No manual changes made

Describe the bug

We are not able to pull the amplify backend. When we run the pull command with or without app ID it failes with error: Failed to pull the backend without any further information. This happens on all of the laptops of our developers. Even when we try to build the project in amplify it failes with the same error. So we are also not able to build and publish something on Amplify. Ive added the error log when we run the amplify pull --appId *** --envName *** --debug command.

Deleting the Amplify folder doesnt solve the problem and when we run amplify init (with or without AppID) it doesnt recognise the backend. Also running amplify pull --appId *** --envName *** --debug in an empty folder doesnt work. Pulling new created environments works but pulling the existing one is not possible.

Looks like there is somewhere a bug which prevents us and AWS Amplify systems for pulling the backend from this environment.

Here a picture from the failed build:
AWS Build failed

Expected behavior

I expect the backend to be pulled from AWS Amplify.

Reproduction steps

  1. Running amplify pull --appId *** --envName *** --debug
  2. Returns with Failed to pull the backend on all devices + AWS Amplify build
  3. Tried the same within an empty folder and amplify init resulted with same error.

Project Identifier

No response

Log output

muratcaliskan@MacBook-Pro-van-Murat dashboard % amplify pull --appId *** --envName staging --debug
Opening link: https://eu-central-1.admin.amplifyapp.com/admin/***/staging/verify/?loginVersion=1
⠏ Confirm login in the browser or manually paste in your CLI login key:
Successfully received Amplify Studio tokens.
Amplify AppID found: ***. Amplify App name is: ***
Backend environment staging found in Amplify Console app: ***
? Choose your default editor: Visual Studio Code
✔ Choose the type of app that you're building · javascript
Please tell us about your project
? What javascript framework are you using react
? Source Directory Path:  src
? Distribution Directory Path: build
? Build Command:  npm run-script build
? Start Command: npm run-script start
🛑 Failed to pull the backend.

Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

PullBackendFault: Failed to pull the backend.
    at attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:55:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
    at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
    at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
    at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

File at path: '/Users/muratcaliskan/Projects/dashboard/amplify/backend/auth/TenderTracer/parameters.json' does not exist
Error: File at path: '/Users/muratcaliskan/Projects/dashboard/amplify/backend/auth/TenderTracer/parameters.json' does not exist
    at JSONUtilities.readJson (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-cli-core/lib/jsonUtilities.js:44:19)
    at StateManager.getData (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-cli-core/lib/state-manager/stateManager.js:327:56)
    at StateManager.getResourceParametersJson (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-cli-core/lib/state-manager/stateManager.js:149:25)
    at ensureAmplifyMetaFrontendConfig (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/on-category-outputs-change.js:105:60)
    at AmplifyToolkit.onCategoryOutputsChange (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/on-category-outputs-change.js:46:53)
    at generateFiles (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend-steps/a40-generateFiles.js:63:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:49:9)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
    at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
    at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
    at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

Session Identifier: 10e95ec8-c591-44f7-80cc-ffa852f5b60f


Additional information

No response

Before submitting, please confirm:

  • 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.
@ykethan
Copy link
Member

ykethan commented Feb 2, 2024

Hey @muratcali, thank you for reaching out. From the logs provided the error message stands out: '/Projects/dashboard/amplify/backend/auth/TenderTracer/parameters.json' does not exist.
Do you observe the error message on a local amplify push?
locally, under the amplify/auth/build folder do you observe a parameters.json file? if you do not see one, could try adding a empty parameters.json, run amplify build to verify if the file gets populated and then push.
additionally, on the AWS S3 console, could you open the S3 bucket amplify-<appName>-<envName>-<randomHash>-deployment, download the #current-cloud-backend.zip and extract it.
In the #current-cloud-backend, under the auth folder do you observe a parameters.json file?

@muratcali
Copy link
Author

muratcali commented Feb 5, 2024

Hi @ykethan, Thanks for your message.

Ive deleted the whole amplify folder to do a clean pull so there is right now no amplify folder available in my project. So its not possible for me to da a push right now.

If I download and open the #current-cloud-backend.zip file it doesn't have an auth map. It only has an auth map inside the map awscloudformation, which doesnt have the parameters.json file. Ive added pictures from this map structure down below.

Ive noticed that there are a lot of duplicate files.

Screenshot at Feb 06 00-08-38 Screenshot at Feb 06 00-08-54 Screenshot at Feb 06 00-09-06

@ykethan
Copy link
Member

ykethan commented Feb 6, 2024

Hey @muratcali, is the project in a google/icloud drive folder? as the issue appears to be similar to aws-amplify/amplify-cli#13335, to mitigate this you can download the #current-cloud-backend.zip archive, unzip, remove duplicate files, re-zip, and re-upload.

@muratcali
Copy link
Author

Hi @ykethan , Thanks for your message. Ive tried the option you mentioned and now im getting the following error:

muratcaliskan@MacBook-Pro-van-Murat dashboard % amplify pull --appId*** --envName *** --debug
Opening link: https://eu-central-1.admin.amplifyapp.com/admin/***/***/verify/?loginVersion=1
⠇ Confirm login in the browser or manually paste in your CLI login key:
Successfully received Amplify Studio tokens.
Amplify AppID found: ***. Amplify App name is: ***
Backend environment staging found in Amplify Console app: ***
🛑 Failed to pull the backend.

Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

PullBackendFault: Failed to pull the backend.
    at attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:55:15)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
    at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
    at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
    at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

File at path: '/Users/muratcaliskan/Projects/dashboard/amplify/#current-cloud-backend/amplify-meta.json' does not exist
Error: File at path: '/Users/muratcaliskan/Projects/dashboard/amplify/#current-cloud-backend/amplify-meta.json' does not exist
    at JSONUtilities.readJson (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-cli-core/lib/jsonUtilities.js:44:19)
    at AmplifyToolkit.readJsonFile (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/read-json-file.js:6:45)
    at ensureAmplifyMeta (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-provider-awscloudformation/lib/attach-backend.js:127:46)
    at Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-provider-awscloudformation/lib/attach-backend.js:118:36)
    at async Object.attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-provider-awscloudformation/lib/index.js:196:3)
    at async queryProvider (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend-steps/a10-queryProvider.js:36:5)
    at async attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:43:9)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
    at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
    at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
    at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

Session Identifier: 0aee2b19-d393-4064-a728-c8dddb3b8da3

As mentioned in the error before it returns:
Error: File at path: '/Users/muratcaliskan/Projects/dashboard/amplify/#current-cloud-backend/amplify-meta.json' does not exist

But this file exists inside the S3 bucket see image:
image

Also ive mentioned alot of other directories inside this S3 bucket which i never saw before. Here is a picture from the bucket. Are these required files? Or is something wrong here?
image

@ykethan
Copy link
Member

ykethan commented Feb 7, 2024

Hey @muratcali, just to ensure this isnt the case. Could you download the #current-cloud-backend.zip from the S3 bucket as when re-zipping this tends to create a nested folder that may cause this error message. similar issue: aws-amplify/amplify-cli#13386
The steps in the gist provides an example.

The files at the root of the S3 bucket are expected as they get utilized by services such as Amplify Studio.

@muratcali
Copy link
Author

@ykethan Ah that makes sense. That problem is fixed but im still getting the '/Projects/dashboard/amplify/backend/auth/TenderTracer/parameters.json' does not exist error even after deleting the duplicates. There is no auth folder with parameters.json inside the #current-cloud-backend.zip.

See image:
image

@ykethan
Copy link
Member

ykethan commented Feb 8, 2024

Hey @muratcali, interesting. could you try zipping the #current-cloud-backend with a local copy of the project resources?
For example:
image

@muratcali
Copy link
Author

Hi @ykethan, Thanks for your help. It solved the pull problem but now im not able to push. After doing the solution you provided and pulling the backend it worked as usual but after running amplify push ive got the following error:

muratcaliskan@MBP-van-Murat dashboard % amplify push
⠸ Fetching updates to backend environment: staging from the cloud.⚠️ Your instance type for OpenSearch is t2.small.elasticsearch, you may experience performance issues or data loss. Consider reconfiguring with the instructions here https://docs.amplify.aws/cli/graphql/search-and-result-aggregations/#set-up-opensearch-for-production-environments
⠏ Fetching updates to backend environment: staging from the cloud.⚠️ WARNING: owners may reassign ownership for the following model(s) and role(s): Company: [owner], User: [owner], CpvCompany: [owner], AiCpvs: [owner], CompanyPhase: [owner], CompanyTender: [owner], CompanyUser: [owner]. If this is not intentional, you may want to apply field-level authorization rules to these fields. To read more: https://docs.amplify.aws/cli/graphql/authorization-rules/#per-user--owner-based-data-access.
⠴ Fetching updates to backend environment: staging from the cloud.✅ GraphQL schema compiled successfully.

Edit your schema at /Users/muratcaliskan/Projects/dashboard/amplify/backend/api/TenderTracer/schema.graphql or place .graphql files in a directory at /Users/muratcaliskan/Projects/dashboard/amplify/backend/api/TenderTracer/schema
✔ Successfully pulled backend environment staging from the cloud.

    Current Environment: staging
    
┌──────────┬──────────────────────────┬───────────┬───────────────────┐
│ Category │ Resource name            │ Operation │ Provider plugin   │
├──────────┼──────────────────────────┼───────────┼───────────────────┤
│ Auth     │ TenderTracer             │ Update    │ awscloudformation │
├──────────┼──────────────────────────┼───────────┼───────────────────┤
│ Api      │ TenderTracer             │ No Change │ awscloudformation │
├──────────┼──────────────────────────┼───────────┼───────────────────┤
│ Storage  │ s3tendertracerphasefiles │ No Change │ awscloudformation │
└──────────┴──────────────────────────┴───────────┴───────────────────┘
⚠️ Amplify CLI now supports verifying a Cognito user email address that has been changed and will automatically update your auth configuration. Read more: https://docs.amplify.aws/lib/auth/manageusers/q/platform/js/#updating-and-verifying-a-cognito-user-email-address
✔ Are you sure you want to continue? (Y/n) · yes

Deployment failed.
Deploying root stack TenderTracer [ ====================-------------------- ] 2/4
        amplify-tendertracer-staging-… AWS::CloudFormation::Stack     UPDATE_ROLLBACK_IN_PROGRESS    Thu Feb 08 2024 19:48:46…     
        storages3tendertracerphasefil… AWS::CloudFormation::Stack     UPDATE_COMPLETE                Thu Feb 08 2024 19:48:32…     
        authTenderTracer               AWS::CloudFormation::Stack     UPDATE_COMPLETE                Thu Feb 08 2024 19:48:33…     
        apiTenderTracer                AWS::CloudFormation::Stack     UPDATE_FAILED                  Thu Feb 08 2024 19:48:46…     
Deployed auth TenderTracer [ ======================================== ] 6/6

🛑 The following resources failed to deploy:
Resource Name: GraphQLAPITransformerSchema3CB2AE18 (AWS::AppSync::GraphQLSchema)
Event Type: update
Reason: The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: H697F1FSR8Q1Z91X; S3 Extended Request ID: o2rMs61NdgJJDz0a35qtiUx1mYAmlyAh4d7tnETqG2+boglDfpKJ4ISiGFFBV3GaFy1T7bstA7c=; Proxy: null)
URL: https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/arn%3Aaws%3Acloudformation%3Aeu-central-1%3A038513821510%3Astack%2Famplify-tendertracer-staging-105946-apiTenderTracer-288DHQ315JFI%2F171a4e10-e8e8-11ed-9f4d-022bb19ae942/events


🛑 Resource is not in the state stackUpdateComplete
Name: GraphQLAPITransformerSchema3CB2AE18 (AWS::AppSync::GraphQLSchema), Event Type: update, Reason: The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ID: H697F1FSR8Q1Z91X; S3 Extended Request ID: o2rMs61NdgJJDz0a35qtiUx1mYAmlyAh4d7tnETqG2+boglDfpKJ4ISiGFFBV3GaFy1T7bstA7c=; Proxy: null), IsCustomResource: false


Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Session Identifier: 1f5e5a08-8236-461a-818f-6485887195ff

After this problem, everytime i run amplify push again it returns the following error:

muratcaliskan@MBP-van-Murat dashboard % amplify push --debug
TypeError: Cannot read properties of undefined (reading 'localEnvInfo')
⠋ Fetching updates to backend environment: staging from the cloud.Overrides functionality is not implemented for this category
⠋ Building resource api/TenderTracer⚠️ Your instance type for OpenSearch is t2.small.elasticsearch, you may experience performance issues or data loss. Consider reconfiguring with the instructions here https://docs.amplify.aws/cli/graphql/search-and-result-aggregations/#set-up-opensearch-for-production-environments
⠹ Building resource api/TenderTracer[WARNING] aws-cdk-lib.aws_elasticsearch.Domain is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.DomainProps#version is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.DomainProps#domainName is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.DomainProps#ebs is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.EbsOptions#enabled is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.EbsOptions#volumeSize is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.EbsOptions#volumeType is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.DomainProps#enforceHttps is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.DomainProps#nodeToNodeEncryption is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.DomainProps#removalPolicy is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.DomainProps#zoneAwareness is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_elasticsearch.ZoneAwarenessConfig#enabled is deprecated.
  use opensearchservice module instead
  This API will be removed in the next major release.
[WARNING] aws-cdk-lib.aws_appsync.ExtendedDataSourceProps#elasticsearchConfig is deprecated.
  - use `openSearchConfig`
  This API will be removed in the next major release.
⚠️ WARNING: owners may reassign ownership for the following model(s) and role(s): Company: [owner], User: [owner], CpvCompany: [owner], AiCpvs: [owner], CompanyPhase: [owner], CompanyTender: [owner], CompanyUser: [owner]. If this is not intentional, you may want to apply field-level authorization rules to these fields. To read more: https://docs.amplify.aws/cli/graphql/authorization-rules/#per-user--owner-based-data-access.
⠧ Building resource api/TenderTracer✅ GraphQL schema compiled successfully.

Edit your schema at /Users/muratcaliskan/Projects/dashboard/amplify/backend/api/TenderTracer/schema.graphql or place .graphql files in a directory at /Users/muratcaliskan/Projects/dashboard/amplify/backend/api/TenderTracer/schema
✔ Successfully pulled backend environment staging from the cloud.

    Current Environment: staging
    
┌──────────┬──────────────────────────┬───────────┬───────────────────┐
│ Category │ Resource name            │ Operation │ Provider plugin   │
├──────────┼──────────────────────────┼───────────┼───────────────────┤
│ Auth     │ TenderTracer             │ Update    │ awscloudformation │
├──────────┼──────────────────────────┼───────────┼───────────────────┤
│ Api      │ TenderTracer             │ No Change │ awscloudformation │
├──────────┼──────────────────────────┼───────────┼───────────────────┤
│ Storage  │ s3tendertracerphasefiles │ No Change │ awscloudformation │
└──────────┴──────────────────────────┴───────────┴───────────────────┘
⚠️ Amplify CLI now supports verifying a Cognito user email address that has been changed and will automatically update your auth configuration. Read more: https://docs.amplify.aws/lib/auth/manageusers/q/platform/js/#updating-and-verifying-a-cognito-user-email-address
✔ Are you sure you want to continue? (Y/n) · yes

Deploying resources into staging environment. This will take a few minutes. ⠹
Deploying root stack TenderTracer [ ---------------------------------------- ] 0/4
Deploying auth TenderTracer [ ---------------------------------------- ] 0/6
🛑 Stack:arn:aws:cloudformation:eu-central-1:038513821510:stack/amplify-tendertracer-staging-105946/73760dd0-e8d8-11ed-a958-0a51bfc470b2 is in UPDATE_ROLLBACK_FAILED state and can not be updated.

Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

DeploymentFault: Stack:arn:aws:cloudformation:eu-central-1:038513821510:stack/amplify-tendertracer-staging-105946/73760dd0-e8d8-11ed-a958-0a51bfc470b2 is in UPDATE_ROLLBACK_FAILED state and can not be updated.
    at Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-provider-awscloudformation/lib/push-resources.js:362:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/push-resources.js:137:16
    at async Promise.all (index 0)
    at async providersPush (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/push-resources.js:133:5)
    at async AmplifyToolkit.pushResources (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/push-resources.js:107:13)
    at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
    at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
    at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
    at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

Stack:arn:aws:cloudformation:eu-central-1:038513821510:stack/amplify-tendertracer-staging-105946/73760dd0-e8d8-11ed-a958-0a51bfc470b2 is in UPDATE_ROLLBACK_FAILED state and can not be updated.
ValidationError: Stack:arn:aws:cloudformation:eu-central-1:038513821510:stack/amplify-tendertracer-staging-105946/73760dd0-e8d8-11ed-a958-0a51bfc470b2 is in UPDATE_ROLLBACK_FAILED state and can not be updated.
    at Request.extractError (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/protocol/query.js:50:29)
    at Request.callListeners (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:686:14)
    at Request.transition (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /snapshot/amplify-cli/build/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:688:12)
    at Request.callListeners (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at Request.emit (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:686:14)
    at Request.transition (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /snapshot/amplify-cli/build/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/request.js:688:12)
    at Request.callListeners (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at callNextListener (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/sequential_executor.js:96:12)
    at IncomingMessage.onEnd (/snapshot/amplify-cli/build/node_modules/aws-sdk/lib/event_listeners.js:417:13)
    at IncomingMessage.emit (node:events:525:35)
    at IncomingMessage.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Session Identifier: aef5dd34-5b63-4581-ad04-583178a26fe5

@josefaidt
Copy link
Contributor

Hey @muratcali 👋 if you check the CloudFormation console for this stack, do you see the previous deployment failure and reason (under the "Events" tab)? Does it show a reason for the rollback failure?

@muratcali
Copy link
Author

@josefaidt Thanks for your message. I see the following errors:

image

@ykethan
Copy link
Member

ykethan commented Feb 16, 2024

Hey @muratcali , apologies on the delay in a response. Transferring the issue to our API repository for additional assistance as the error appears to be an error on the GraphQL API resource.

@ykethan ykethan transferred this issue from aws-amplify/amplify-cli Feb 16, 2024
@phani-srikar
Copy link
Contributor

Hi @muratcali, thanks for attaching the CFN log screenshot. I you see the bottom most UPDATE_FAILED, it points to a failure in the nested API stack. You would need to go to that stack and look for the failure reason in events tab. Can you share that with us, so we can see what exactly went wrong?

Copy link

github-actions bot commented Jul 1, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants