aws-samples / orthanc-cdk-deployment

MIT No Attribution
25 stars 7 forks source link

Deployment hangs #16

Closed classicPintus closed 1 month ago

classicPintus commented 1 month ago

Hello, I'm following the documentation, in order to try and learn more about CDK.

While executing the "deploy" command, the deployment hangs while deploying the orthanc stack. In the console I see the following from 3 hours...

Orthanc-ECSStack: deploying... [3/3] Orthanc-ECSStack: creating CloudFormation changeset... [███████████████████████████████████████████████████▏······] (15/17)

3:05:26 PM | CREATE_IN_PROGRESS | AWS::ECS::Service | OrthancService/Service/Service 3:05:26 PM | CREATE_IN_PROGRESS | AWS::CloudFormation::Stack | Orthanc-ECSStack

Which mistake I'm doing? How can I provide you more information?

santatamas commented 1 month ago

Hi! The ECS stack deployment probably hangs because it fails to spin up a healthy container. Please check your ECS task logs for errors. It could be misconfiguration, or something else. Please let me know what you find!

classicPintus commented 1 month ago

Hello, the error in the container is that the port is not numeric.

If I run the command "cdk synth" I see that in the ecs cloudformation the port of the orthanc configuration is null. I suppose that the following code is not working as expected Port: +props.rdsInstance.dbInstanceEndpointPort

santatamas commented 1 month ago

This is now fixed. Please pull the latest main and try again. Thank you for reporting this! It's really appreciated.

classicPintus commented 1 month ago

Now the container spools correctly.

Many thanks