aws-cdk: Asset publishing fails randomly #24870
Labels
@aws-cdk/assets
Related to the @aws-cdk/assets package
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
We have a system with 10+ stacks in a single App. To speed up deployments, we have started to use parallel deployments but it fails randomly.
Running
cdk deploy --all --concurrency 10 --asset-parallelism --asset-prebuild=true
fails to publish assets for some (random) stacks every now and then (fail: ENOENT: no such file or directory
).We have tried also without
--asset-prebuild=true
but that doesn't help.Not sure if its any way related but please notice how some lines have
current_account-current_region
at the end, and not the real AWS account + region?Any help or fixes would be much appreciated!
Expected Behavior
All assets are published successfully and all stacks are deployed.
Current Behavior
Reproduction Steps
Unfortunately not sure what triggers this, and how to reliably reproduce it.
At least we have seen it with an App which contains several Stacks with lots of AWS cloud resources.
Turning
--concurrency
off fixes this issue.Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.72.0 (build 397e46c)
Framework Version
No response
Node.js Version
v18.15.0
OS
Linux Ubuntu 20/22.04, https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/standard/6.0
Language
Typescript
Language Version
4.7.3
Other information
Similar case was described in #24298. #24298 (comment) mentioned of a possible fix in CDK v2.64.0 but we still have the issue even with v2.67.0 and v2.72.0.
The text was updated successfully, but these errors were encountered: