-
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
aws cdk commands fail with error "Subprocess exited with error null" #28637
Comments
I am not sure if this is related to the notice cache( Can you try that and see if it is fixed? |
Hi, just tried it and still getting the same error. The notices.json just gets recreated each time |
Please run with The line about notices might be misleading. That's likely just the last thing that worked. |
Still immediately exiting with error when running cdk commands |
Sorry I didn't clearly state this before @ddev1122 : Running with |
Hi Mrgrain, I am not seeing any stack trace. |
Hmm, @ddev1122 so in your first post you got this stack trace:
Are you still getting this? But with |
Correct - if i use |
Alright, so apparently you need to run |
Sure, here is the output running
I believe this is the code from the cdk lib thats raising that error (cxapp/exec.js)
|
Okay, I think your cdk app doesn't synthesize correctly. Obviously the error should be more helpful. In the meantime:
|
When executing the CDK app program fails, we don't print any useful debug information. This makes sense because we are passing all output from the program to the shell, expecting this would be enough to debug any faults. However the program might be faulty in a way that no (useful) output is printed. To help with this case print the failing command when `--debug` is enabled. This might require a follow up with a better DX for the generic non debug case. For now this will improve the situation. Related to #28637 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
It tells us the following:
I'm not a Python expert, but found this when googling, maybe it's https://blog.richard.do/2018/03/18/how-to-debug-segmentation-fault-in-python/ You can probably use standard debugging techniques to find the offending code.
Do you know if this ever worked? |
Finally got the commands to run.. |
|
Describe the bug
When I run any cdk command, it fails with the following error and exit code 1:
Subprocess exited with error null
No extra helpful information is printed out.
However, when I use --verbose it raises the following info
Example running cdk ls --verbose
:
Expected Behavior
List stacks or show a more helpful error message.
Current Behavior
Fails with subprocess exited with error null
Reproduction Steps
I have been able to run cdk ls, synth and deploy in other repository's, but not this one
Possible Solution
No response
Additional Information/Context
I have tried different combinations of version of node (20, 14) , npm, and aws-cdk but still running into the same issue.
I am able to run cdk and deploy this same code/repo on a windows machine
I am using pyenv and nvm for version management, and running these cdk commands within a python poetry environment
CDK CLI Version
2.118
Framework Version
No response
Node.js Version
18.19.0
OS
Mac Sonoma 14.2.1
Language
Python
Language Version
3.8.10
Other information
No response
The text was updated successfully, but these errors were encountered: