BucketDeployment: SIGKILL 9 during S3 sync step #33512
Labels
@aws-cdk/aws-s3
Related to Amazon S3
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p3
Describe the bug
After a recent CDK update, I started seeing this error on some deploys when using
BucketDeployment
:The error seems to occur at random, forcing me to frequently retry failed deploys.
I've searched for this same error message but haven't been able to find it. The closest I've found is the issue described at #29862, which is also a SIGKILL but occurs when running the
'aws s3 cp'
command rather than'aws s3 sync'
. Also, I'm not sure why I'd be running out of memory: The total size of the files I'm deploying is only about 30MB, so I'd expect the 128MB default to be plenty.I can't say definitively whether this error is caused by a change in CDK or in some other piece of AWS infrastructure.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Deploys using
BucketDeployment
should either work or provide a clear error message in the logs when something goes wrong.Current Behavior
The error message above is all I see in the logs. It's followed up by a report that says:
That suggests that the default memory limit may be the issue… except that I see the same values in the logs when the deploy succeeded. And, again, the files I'm uploading total only 30MB, so what could be using all that memory?
Reproduction Steps
It's unclear how to reproduce, since the bug is non-deterministic.
Possible Solution
The improvement proposed at #29898 might address this.
Additional Information/Context
I'm going to try raising
memoryLimit
to see if it prevents the issue for me. At this point, I don't know.CDK CLI Version
2.178.2 (build 89c49cc)
Framework Version
No response
Node.js Version
20.16.0
OS
macOS
Language
Java
Language Version
Java (17)
Other information
No response
The text was updated successfully, but these errors were encountered: