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

(lambda-python-alpha): cdk synth gets stuck forever #28135

Closed
gabriels1234 opened this issue Nov 26, 2023 · 5 comments
Closed

(lambda-python-alpha): cdk synth gets stuck forever #28135

gabriels1234 opened this issue Nov 26, 2023 · 5 comments
Labels
@aws-cdk/aws-lambda-python bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/small Small work item – less than a day of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@gabriels1234
Copy link

Describe the bug

version: 2.110.1a0

cdk synth gets stuck forever.
tried also creating a new project.
Tried with other assets, synth is ok. when adding a PythonLambda and then run cdk synth it gets stuck.
It was working before, So I'm trying to backtrack the issue to the cdk version, to the code (reduced the lambda to just do "hello world").
probably it's a non-issue, but since I've been trying for hours already, perhaps someone else finds it useful.

Expected Behavior

cdk synth should either:

  • exit with error
  • finish successfully
  • provide feedback on where is it, to understand where it got stuck

Current Behavior

cdk synth says nothing, for hours.

Reproduction Steps

"Tried with other assets, synth is ok. when adding a PythonLambda and then run cdk synth it gets stuck."

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.110.1a0

Framework Version

No response

Node.js Version

18.17.1

OS

Mac OS 13.4

Language

Python

Language Version

3.11

Other information

No response

@gabriels1234 gabriels1234 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 26, 2023
@gabriels1234
Copy link
Author

        lambda_function = _alambda.PythonFunction(
            self, "CdkAppLambda",
            entry="./lambda",
            index="main.py",
            handler="handler",
            runtime=_lambda.Runtime.PYTHON_3_7,
            timeout=Duration.seconds(300),
        )

this gets stuck, but only after the entry and index are correct, otherwise it will exit with error immediately.

@gabriels1234
Copy link
Author

FYI, cdk synth failed after quitting Docker Desktop.
Restarting docker desktop fixed the issue. (It was not self-evident, though)

@pahud
Copy link
Contributor

pahud commented Nov 27, 2023

It could because your local docker command just hanged without any response because the PythonFunction would bundle with docker.

@pahud pahud added p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. labels Nov 27, 2023
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Nov 29, 2023
@github-actions github-actions bot added closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Dec 4, 2023
@github-actions github-actions bot closed this as completed Dec 4, 2023
@douglascayers
Copy link

FYI, cdk synth failed after quitting Docker Desktop. Restarting docker desktop fixed the issue. (It was not self-evident, though)

Bless you, restarting Docker resolved the stuck cdk synth command for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda-python bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/small Small work item – less than a day of effort p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants