-
Notifications
You must be signed in to change notification settings - Fork 825
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
Amplify Pull Request creates: Failed to pull the backend. #13386
Comments
Hey @phreitom, thank you for reaching out. Could you add the |
PS C:\rhyteItNew> amplify pull --appId ##### --envName prod --debug Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/ PullBackendFault: Failed to pull the backend. File at path: 'C:####\amplify#current-cloud-backend\amplify-meta.json' does not exist Session Identifier: d33b5d55-c253-401e-aaba-279a3e9509f8 |
If I try to do an amplify api push I get: PS C:#####> amplify api push -y -f --debug |
Hey @phreitom, thank you for the information. The zip in the S3 deployment bucket, seems to be missing the |
Could it be that #current-cloud_backend.zip has an extra folder in at the top CurrentCloudBackEnd. So amplify-meta.json is at a level deeper than expected? Ignore me if I have no idea what I am talking about :))) Bored and trying to help :)) |
@phreitom just a quick check, noticed |
just a quick check, noticed amplify#current-cloud-backend doesn't not have \ in the path. Was this mistakenly modified when removing the AppName? Yeah I noticed that too. I accidentally removed it while copying I guess. Because when I reran the pull, the proper folder structure was there. File at path: 'C:#####\amplify#current-cloud-backend\amplify-meta.json' does not exist Working on adding environment variable. Will get you output soon :) |
Here is the output with AMPLIFY_ENABLE_DEBUG_OUTPUT as true: |
I am still here :)) Looked like github issues down for a bit. :)) |
Hi Gang :) Any update? |
Hey @phreitom, Thank you for the information.
looking at the screenshot it appears the zip has a nested folder |
Just sent you a message on Discord :) |
Hey @phreitom, thank you for hopping on the call, it was amazing chatting with you. we noticed that the Closing the issue, please feel free in reaching out to us again. |
|
Thanks Ykethan for all your help!!! It was very appreciated! |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.18.0
Amplify CLI Version
12.7.1
What operating system are you using?
Windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
I have been going along nice and wonderfully using Amplify. This weekend, I decided to do something awesome and push a Mutation for a function that was generated outside of Amplify. It was a brilliant idea in my head and how much damage could it do if it did not work?
It did not work. It did a lot of damage.
I finally got my changes backed out from CloudFormation and Cloudformation was in a UPDATE SUCCESSFULL state.
Describe the bug
I have been going along nice and wonderfully using Amplify. This weekend, I decided to do something awesome and push a Mutation for a function that was generated outside of Amplify. It was a brilliant idea in my head and how much damage could it do if it did not work?
It did not work. It did a lot of damage.
I finally got my changes backed out from CloudFormation and Cloudformation was in a UPDATE SUCCESSFULL state.
Now...when I commit changes to github to kick of a new build, the build fails with:
🛑 Failed to pull the backend.
!!! Build Failed
!!! Non-Zero Exit Code detected.
...You can imagine my surprise. The coder was so out of his mind about the seriousness of this error that he put THREE exclamation marks BEFORE the message.
When I try to pull the backend through Amplify Pull on my laptop, I get:
🛑 Failed to pull the backend.
I think the coder had calmed down that they did not put any exclamation marks.
I know its Friday so everyone is fried and ready for the weekend. Unfortunately, I have lost a week on this issue and am trying to get caught up this weekend.
Any and all help is greatly appreciated. :))))
Expected behavior
I expected my Amplify pull to pull down the environment. And I expected the build to work in Amplify.
Reproduction steps
Commit changes to Github through Visual Code.
Watch build fail on Amplify Console.
Download build logs from Amplify console.
Try to pull enviromnent into a new environment on laptop
Project Identifier
Project Identifier: af45a07d874c083e1a72f541024c8c0c
Log output
Additional information
I
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: