-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Deployment fails with no actionable error feedback #29367
Comments
Some more info... By making other changes to my stack I was able to get one of these panels, with a confirmation prompt:
After confirming I do then see a meaningful error displayed briefly, while the deployment is still in progress. But, after it finishes, the progress text is cleared away and all I see is the generic message from my original post. I think this is the root of the problem behaviour - it is unhelpful that these "in progress" error messages (which are the ones that contain the actual error info) get cleared away after the deploy finishes failing - so you have to watch the deploy like a hawk to spot an error that is only displayed for a few seconds. And also they are not displayed at all in the case that there is no "IAM Statement Changes" confirmation prompt. |
Are you able to scroll up and see the deploy error messages? You may also try |
No, that's what I'm saying - there's nothing to scroll up to, they get overwritten in the terminal during the deploy process. They are only shown as sort of progress message for individual steps of the deployment, but when it finishes that gets wiped away and just a generic summary is displayed. |
Here is a video demonstrating the problem in action... Screen.Recording.2024-04-23.at.14.15.50.movThe real error ("Export with name ifm-ssa-loadbalancer-dns-name-qa-eu is already exported by stack") is only displayed briefly before it disappears and is replaced by a generic stack trace. In fact I had to capture the screen recording to get a good look at the error. |
Does CFN show an error? |
Unfortunately I've since destroyed and redeployed the stack so it's hard to know But I would assume that cdk deploy is making cloud formation apt requests under the hood, rather than shelling out to another tool? Seems to me the issue is with how error output is printed to the terminal rather than source of the error |
Describe the bug
When I try to deploy my stack I get the following error:
Expected Behavior
It either just works (better) or, if it fails, it returns some information about what went wrong (acceptable)
Current Behavior
Notably the message contains no information about what went wrong. Only that the tool may have also left some crap lying around that I have to clean up manually.
Reproduction Steps
I doubt it is possible to make a minimal reproduction, I certainly don't have the time or resources to whittle down my stack in a separate environment, sorry 😢
Possible Solution
presumably somewhere in the region of the code in the traceback cdk is swallowing the actual error and replacing it with this generic message
so maybe don't do that
Additional Information/Context
No response
CDK CLI Version
2.131.0 (build 92b912d)
Framework Version
No response
Node.js Version
v18.18.0
OS
macOS 14.3.1
Language
Python
Language Version
3.11.5
Other information
No response
The text was updated successfully, but these errors were encountered: