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 CodePipleine: Unable to find .dot file in cdk.out directory running cdk deploy #28320

Closed
austinegri opened this issue Dec 11, 2023 · 4 comments
Labels
@aws-cdk/aws-codepipeline Related to AWS CodePipeline bug This issue is a bug. p2

Comments

@austinegri
Copy link

austinegri commented Dec 11, 2023

Describe the bug

I cannot run some cdk commands. When running cdk ls or 'cdk deploy' I get the following response:

I am trying to follow the basic instructions at https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html to institute a cdk pipeline. I have the exact code listed in the tutorial. I get the same issue when using cdk deploy.

Expected Behavior

CDK to list stacks

Current Behavior

Run:

Error: ENOENT: no such file or directory, open '<projectdir>/cdk.out/<projectName>326AA0B4.dot'
    at Object.writeFileSync (node:fs:2352:20)
    at CodePipeline.doBuildPipeline (<projectdir>/node_modules/aws-cdk-lib/pipelines/lib/codepipeline/codepipeline.js:1:5821)
    at CodePipeline.buildPipeline (<projectdir>/node_modules/aws-cdk-lib/pipelines/lib/main/pipeline-base.js:1:2477)
    at CodePipeline.buildJustInTime (<projectdir>/node_modules/aws-cdk-lib/pipelines/lib/main/pipeline-base.js:1:2544)
    at Object.visit (<projectdir>/node_modules/aws-cdk-lib/pipelines/lib/main/pipeline-base.js:1:1489)
    at recurse (/<projectdir>/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2:2282)
    at recurse (<projectdir>/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2:2646)
    at recurse (<projectdir>/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2:2646)
    at invokeAspects (<projectdir>/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:2:1906)
    at synthesize (<projectdir>/node_modules/aws-cdk-lib/core/lib/private/synthesis.js:1:1450) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '<projectdir>cdk.out/<projectName>326AA0B4.dot'
}

Subprocess exited with error 1

Reproduction Steps

run cdk ls or cdk deploy

cdk --version
2.113.0 (build ccd534a)
nodejs --version
v21.3.0
npm --version
10.2.4

Ubuntu 22.04.3 LTS

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.113.0 (build ccd534a)

Framework Version

No response

Node.js Version

v21.3.0

OS

Ubuntu 22.04.3 LTS

Language

TypeScript

Language Version

No response

Other information

No response

@austinegri austinegri added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 11, 2023
@github-actions github-actions bot added the @aws-cdk/aws-codepipeline Related to AWS CodePipeline label Dec 11, 2023
@austinegri austinegri changed the title (module name): (short issue description) CDK CodePipleine: Unable to find .dot file running cdk ls Dec 11, 2023
@austinegri austinegri changed the title CDK CodePipleine: Unable to find .dot file running cdk ls CDK CodePipleine: Unable to find .dot file in cdk.out directory running cdk ls Dec 11, 2023
@austinegri austinegri changed the title CDK CodePipleine: Unable to find .dot file in cdk.out directory running cdk ls CDK CodePipleine: Unable to find .dot file in cdk.out directory running cdk deploy Dec 11, 2023
@pahud
Copy link
Contributor

pahud commented Dec 12, 2023

Looks like you are using node v21 but it's not fully tested in CDK.

Have you tried node v20 and let us know if it works for you?

@pahud pahud added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 and removed needs-triage This issue or PR still needs to be triaged. labels Dec 12, 2023
@pahud
Copy link
Contributor

pahud commented Dec 12, 2023

probably related to #28242

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Dec 12, 2023
@austinegri
Copy link
Author

This seems to bypass the issue thank you! I mustve missed the node version requirement

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-codepipeline Related to AWS CodePipeline bug This issue is a bug. p2
Projects
None yet
Development

No branches or pull requests

2 participants