-
Notifications
You must be signed in to change notification settings - Fork 120
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 Hosting console (default) Build broken for "api/team" at latest TEAM IDC APP v1.2.2 ? #343
Comments
I am also facing same issue |
By my reckoning, all sample builds of this TEAM IDC APP (from v1.1.2+) using Amplify Hosting now fail with this dependency error !? Can we have a response to confirm or correct this assertion please ? |
Attempting to upgrade the TEAM IDC app from version 1.1.0 to 1.2.2, but encountering the same issue. |
Acknowledged. Investigating the cause of the issue. |
Hi Taiwo, much appreciated, I imagine this build breakage will impact a lot of folks, including those attempting first time setup of sample app... |
Hi there @tawoyinfa any progress or timeframes on this AWS Amplify Hosting build-breakage pls ? I suspect this may be due to broken depedencies on the api/team resource graphql-ttl-transformer but have no evidence thus far... am trying the amplify init/push (build) from VSCode env to see if this sheds any light ? |
I am working actively with the AWS Amplify team on this issue. I will provide updates as soon as I make progress. |
There seems to be a similar Amplify hosting issue aws-amplify/amplify-cli#13931 which is yet to be resolved. |
Interesting, we use npm - the standard TEAM IDC APP v1.2.2 release has a couple of yarn.lock files present in the amplify directory - will try removing the 3 JIT function yarn.lock files & retry our build ... |
@tawoyinfa - Was a long-shot but tried removing the yarn.lock files from the three functions ^^ but the Amplify Hosting build still fails the exact same way. Should these function yarn.lock files be part of the build ? |
@gbayfield-em can you add the |
I just ran a deploy (new deploy, not an upgrade) with
|
We also are facing the same issue on our side. The main culprit seems to be the override.ts that configures the logging of the AppSync API. Removing this config (i.e. renaming) makes the build run successfully on our setup again, it's however less than ideal to lose the logging config. I tested with different versions of Amplify CLI and couldn't get it running with the override. |
@lukasgabi you are right. The override.ts file is the root cause of the issue. I am investigating if there is a workaround. Alternatively we can remove the override (in the mean time) and add instructions in the documentation on how to re-enable logging manually on the console. |
Ok awesome, so the (temp) workaround, pending further progress, is to remove the offending override.ts file from the build, namely iam-identity-center-team/amplify/backend/api/team/override.ts |
Hi all, I have released a new version 1.3.0 that resolves this issue by removing the override.ts configuration. |
Describe the bug
The TEAM Amplify/Hosting Console initial (fresh new) deployment using default Amplify Build Spec (Unchanged) now fails across TEAM IDC APP v1.2.2 & our automated prior build of the v1.1.2 version. Was running fine for months, suddenly and consistently now fails to build the "api/team" resource using the default amplify.yaml file (not overridden) which is unchanged for v1.1.2 through v1.2.2. Amplify Hosting console Build gets as far as "Executing command: /usr/local/bin/pip3.9 install --user pipenv==2023.6.12" then fails with the following Build Output shown below...
In terms of the build content, its the unchanged AWS TEAM IDC APP Codebase at latest v1.2.2 here, no Build or Source file changes on the default 'main' codebase (run from CodeCommit Repo per TEAM setup instructions). This Amplify Build Failure is really early on, just attempting to setup the pipenv env (so we dont need to worry about the complexities associated with setting up the IdC APP, we dont get that far now ?)
From the attached amplify.yaml Build Spec, the default build is now failing on the line
... [INFO]: # Executing command: /usr/local/bin/pip3.9 install --user pipenv==2023.6.12
...
"Deployment 1"
2025-01-08T14:18:24.167Z [WARNING]: - Uploading files.
2025-01-08T14:18:25.205Z [WARNING]: - Initializing your environment: main
2025-01-08T14:18:25.311Z [WARNING]: - Building resource api/team
2025-01-08T14:18:36.470Z [WARNING]: ✖ Initializing your environment: main
2025-01-08T14:18:36.477Z [WARNING]: ✖ There was an error initializing your environment.
2025-01-08T14:18:36.477Z [INFO]: 🛑 Packaging overrides failed.
Learn more at: https://docs.amplify.aws/cli/graphql/override/
2025-01-08T14:18:36.489Z [INFO]:
2025-01-08T14:18:36.490Z [INFO]: Session Identifier: 1ad6c553-8c16-45db-8d9d-728d23b43a92
2025-01-08T14:18:36.553Z [ERROR]: !!! Build failed
2025-01-08T14:18:36.553Z [ERROR]: !!! Error: Command failed with exit code 1
2025-01-08T14:18:36.553Z [INFO]: # Starting environment caching...
2025-01-08T14:18:36.553Z [INFO]: # Environment caching completed
...
"Deployment 2"
Attempting to redeploy using Amplify console (button) produces same error (with another msg to fetch something "from the cloud" >?! These messages are not helpful :/ )
....
2025-01-08T09:10:46.653Z [INFO]: �[0mBackend environment main found in Amplify Console app: TEAM-IDC-APP�[0m
2025-01-08T09:10:47.688Z [WARNING]: - Fetching updates to backend environment: main from the cloud.
2025-01-08T09:10:48.005Z [WARNING]: - Building resource api/team
2025-01-08T09:10:57.277Z [WARNING]: ✖ Fetching updates to backend environment: main from the cloud.
2025-01-08T09:10:57.282Z [WARNING]: ✖ There was an error initializing your environment.
2025-01-08T09:10:57.295Z [INFO]: 🛑 Packaging overrides failed.
2025-01-08T09:10:57.296Z [INFO]: Learn more at: https://docs.amplify.aws/cli/graphql/override/
amplify.yaml attached (same for v1.1.2 thru v1.2.2)
![image](https://private-user-images.githubusercontent.com/178780543/401209182-9fd28557-7262-4356-86a1-3127f48debb5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDA2MTMsIm5iZiI6MTczOTM0MDMxMywicGF0aCI6Ii8xNzg3ODA1NDMvNDAxMjA5MTgyLTlmZDI4NTU3LTcyNjItNDM1Ni04NmExLTMxMjdmNDhkZWJiNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNjA1MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04OGNjNWUxZDA2NDViZmI0ZGUwM2FhMWI1ZTQ3YzY1MjMxN2FlZjg2MTViMjQyOTJkZTFiYmFlYzgwYTdjOGM4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Nmi1I8rKXAVhRTpjmRX8SsazWfmwEFNFBobzyA8-zm4)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Previously the Amplify Build successfully completed.
Screenshots
![image](https://private-user-images.githubusercontent.com/178780543/401217171-b918d7e9-6cc4-40bc-bc96-4238d12c9e5d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDA2MTMsIm5iZiI6MTczOTM0MDMxMywicGF0aCI6Ii8xNzg3ODA1NDMvNDAxMjE3MTcxLWI5MThkN2U5LTZjYzQtNDBiYy1iYzk2LTQyMzhkMTJjOWU1ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNjA1MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZmFmYzZhMDQ3ZTAwNzM0ZjU4ZTYwY2ExMzNhZjUwMjk2MDM5NWNiMGJhYWM3YWU2Yzc2NTU3N2MwYWVkODNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.wLud3G7ST_LDMj1Jhn-PiBaDU9chTd9xaoVJsmhFmvs)
Desktop (please complete the following information):
AWS Console- Amplify Hosting env build output...
Smartphone (please complete the following information):
Additional context
![image](https://private-user-images.githubusercontent.com/178780543/401219951-86ff3d89-76e7-4fe0-abf4-18059f75c3a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDA2MTMsIm5iZiI6MTczOTM0MDMxMywicGF0aCI6Ii8xNzg3ODA1NDMvNDAxMjE5OTUxLTg2ZmYzZDg5LTc2ZTctNGZlMC1hYmY0LTE4MDU5Zjc1YzNhOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNjA1MTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMTA0MmM2Yjk2ZTAxYzdmYWQ5OWY4ZGQyZWI3MWE2ZjY0YTEzNmRmMzI0MTgwZjVkNWE5MDMzOWJlYzRlMGI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.LbySQlIBBcWkedORPnh_36nd-8JpJlxNRKS1IF_Y8rk)
Build was working thru to Dec timeframes
All comments welcome ...
The text was updated successfully, but these errors were encountered: