Skip to content

Bug: SAM Deploy freezes with no output #7893

Open
@vaujo6y

Description

@vaujo6y

Description:

When running sam deploy (lambda) on a specific deployment, I get a small amount of text output, but then nothing, I can leave the deploy running for a few hours and nothing occurs. I check for a new/updated stack and there's nothing present.

Steps to reproduce:

sam deploy --debug --template-file /home/octopus/Work/20250217122150-5136753-2697/xdm-xxx-xxx/package.yml --stack-name codedeploylambda-development-vdm-xdm-xxx-xxx --capabilities CAPABILITY_IAM --tags businessline=xxxx-device-manager  vzc:cicd:octopus:projectname=xdm-xxx-xxx  version=0.0.5-cicd.5  vzc:cicd:octopus:releasedate=2025-02-17t12:22:10.000z  name=xdm-xxx-xxx  vzc:component:name=vdm  cft=xx  vzc:component:owner=xx  vzc:architecture:vastid=26064  product=platform  vzc:cicd:octopus:releaseversion=0.0.5-cicd.5  octopusproject=xdm-xxx-xxx  environment=development  application=vdm  vzc:architecture:product=platform  vzc:cicd:octopus:deployedby=bamboo --no-progressbar --region eu-west-1 --parameter-overrides 'Parameters="{\\\"env_name\\\":\\\"development\\\",\\\"region\\\":\\\"eu-west-1\\\",\\\"env\\\":\\\"development\\\",\\\"account_number\\\":\\\"0000000000000\\\"}"  Layer2="arn:aws:lambda:eu-west-1:00000000000:layer:Powershell_7_2_13_LambdaRuntime:1"  KinesisBisectBatchOnError="false"  KinesisMaxRetryAttempt="5"  TestRoleArn=""  EventSourceParallelizationFactor="2"  FunctionName="development-vdm-xdm-xxx-xxx"  KinesisEventBatchSize="5000"  SubnetIds="subnet-0000000,subnet-00000000,subnet-000000000"  SecurityGroupIds="sg-000000000"  Timeout="900"  FunctionRoleArn="arn:aws:iam::000000000000:role/security-lambda-xxxxxx-platform-development"  KinesisEventMaximumBatchingWindow="2"  Layer1="arn:aws:lambda:eu-west-1:00000000:layer:xdm-xxx-xxx:2"  Handler="handler.ps1::handler"  FunctionNameShort="development-vdm-xdm-ingre"  DeploymentType="Linear10PercentEvery1Minute"  Runtime="provided.al2"'

Observed result:

2025-02-17 12:22:29,301 | Using SAM Template at /home/octopus/Work/20250217122150-5136753-2697/xdm-ingress-lambda/package.yml
2025-02-17 12:22:29,302 | No config file found in this directory.
2025-02-17 12:22:29,302 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/home/octopus/Work/20250217122150-5136753-2697/xdm-ingress-lambda/samconfig.toml'
2025-02-17 12:22:29,302 | Config file location: /home/octopus/Work/20250217122150-5136753-2697/xdm-ingress-lambda/samconfig.toml
2025-02-17 12:22:29,302 | Config file '/home/octopus/Work/20250217122150-5136753-2697/xdm-ingress-lambda/samconfig.toml' does not exist
<no more output>

Expected result:

I have other deploys with the debug flag that deploys as expected, with similar output, yet they don't freeze

SAM CLI update available (1.133.0); (1.132.0 installed)
To download: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
2025-02-17 12:56:59,204 | Using SAM Template at /home/octopus/Work/20250217125630-5136857-2919/reveal.externaltoken.api/package.yml
2025-02-17 12:56:59,205 | No config file found in this directory.
2025-02-17 12:56:59,205 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/home/octopus/Work/20250217125630-5136857-2919/reveal.externaltoken.api/samconfig.toml'
2025-02-17 12:56:59,205 | Config file location: /home/octopus/Work/20250217125630-5136857-2919/reveal.externaltoken.api/samconfig.toml
2025-02-17 12:56:59,205 | Config file '/home/octopus/Work/20250217125630-5136857-2919/reveal.externaltoken.api/samconfig.toml' does not exist
2025-02-17 12:56:59,243 | OSError occurred while reading TOML file: [Errno 2] No such file or directory: '/home/octopus/Work/20250217125630-5136857-2919/reveal.externaltoken.api/samconfig.toml'
2025-02-17 12:56:59,267 | Using config file: samconfig.toml, config environment: default
2025-02-17 12:56:59,267 | Expand command line arguments to:
<snip>

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Amazon Linux
  2. sam --version: 1.132.0
  3. AWS region: eu-west-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/more-info-neededMore info is needed from the requester. If no response in 14 days, it will become stale.stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions