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

cdk: EEXIST: file already exists cdk.out/asset. #32405

Closed
1 task
niqo01 opened this issue Dec 6, 2024 · 2 comments
Closed
1 task

cdk: EEXIST: file already exists cdk.out/asset. #32405

niqo01 opened this issue Dec 6, 2024 · 2 comments
Assignees
Labels
@aws-cdk/aws-lambda Related to AWS Lambda bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@niqo01
Copy link

niqo01 commented Dec 6, 2024

Describe the bug

Once in a while my cdk pipeline build stage fails with `Error: EEXIST: file already exists, mkdir '/codebuild/output/src1655296161/src/infra/app/cdk.out/asset.0c431533151ced7f801fc37929756c810f2c25f05688ef27239525941184764e'

If I retry the stage the error goes away or can fails again.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

No build stage failure.

Current Behavior

Error: EEXIST: file already exists, mkdir '/codebuild/output/src1655296161/src/infra/app/cdk.out/asset.0c431533151ced7f801fc37929756c810f2c25f05688ef27239525941184764e'
--
158 | at Object.mkdirSync (node:fs:1391:3)
159 | at AssetStaging.stageAsset (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:6636)
160 | at AssetStaging.stageByCopying (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:4287)
161 | at stageThisAsset (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:2788)
162 | at Cache.obtain (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/core/lib/private/cache.js:1:242)
163 | at new AssetStaging (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:3125)
164 | at new Asset (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/aws-s3-assets/lib/asset.js:1:1141)
165 | at AssetCode.bind (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/aws-lambda/lib/code.js:5:4287)
166 | at new Function (/tmp/jsii-kernel-VsmgpX/node_modules/aws-cdk-lib/aws-lambda/lib/function.js:1:10020)
167 | at Kernel._Kernel_create (/tmp/jsii-java-runtime11241269664451585625/lib/program.js:9127:25)
168 | at software.amazon.jsii.JsiiRuntime.processErrorResponse(JsiiRuntime.java:150)
169 | at software.amazon.jsii.JsiiRuntime.requestResponse(JsiiRuntime.java:116)
170 | at software.amazon.jsii.JsiiClient.createObject(JsiiClient.java:89)
171 | at software.amazon.jsii.JsiiEngine.createNewObject(JsiiEngine.java:614)
172 | at software.amazon.awscdk.services.lambda.Function.<init>(Function.java:53)
173 | at software.amazon.awscdk.services.lambda.Function$Builder.build(Function.java:1409)
174 | at enki.hangoutspipeline.stacks.ApiStack.createAliasRecord(ApiStack.kt:428)
175 | at enki.hangoutspipeline.stacks.ApiStack.createARecords(ApiStack.kt:181)
176 | at enki.hangoutspipeline.stacks.ApiStack.<init>(ApiStack.kt:75)
177 | at enki.hangoutspipeline.AppStage.<init>(AppStage.kt:61)
178 | at enki.hangoutspipeline.PipelineStack.buildStage(PipelineStack.kt:80)
179 | at enki.hangoutspipeline.PipelineStack.<init>(PipelineStack.kt:65)
180 | at enki.hangoutspipeline.AppKt.setupPipeline(App.kt:21)
181 | at enki.hangoutspipeline.AppKt.main(App.kt:13

Reproduction Steps

I am not able to reproduce on my laptop and the issue is reproducible 30-40% on Aws pipeline.
I will try to build a minimal project.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.171.1

Framework Version

No response

Node.js Version

the one with Linux STANDARD_7_0

OS

Linux STANDARD_7_0

Language

Java

Language Version

No response

Other information

No response

@niqo01 niqo01 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 6, 2024
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Dec 6, 2024
@ashishdhingra
Copy link
Contributor

@niqo01 Good afternoon. Please share the minimal CDK project and steps to reproduce the issue, including provisioning of CodeBuild project and CodePipeline.
Do you get this issue consistently or at random?

Thanks,
Ashish

@ashishdhingra ashishdhingra added p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-triage This issue or PR still needs to be triaged. labels Dec 6, 2024
@ashishdhingra ashishdhingra self-assigned this Dec 6, 2024
Copy link

github-actions bot commented Dec 9, 2024

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 closing-soon This issue will automatically close in 4 days unless further comments are made. 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 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda Related to AWS Lambda bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. 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

2 participants