Skip to content

Error: ENOENT: no such file or directory, open '/home/sbx_user1051/.cdk/cache/notices.json' #84

@ryanranft

Description

@ryanranft

I am working on configuring this repo in AWS codecatalyst and trying to perform a CDK deploy, I have configured workflows at my end where the CDK bootstrap was successful but the CDK deploy fails with below error -

=====
Failed to store notices in the cache: Error: ENOENT: no such file or directory, open '/home/sbx_user1051/.cdk/cache/notices.json'

[06:33:59] Error: --app is required either in command-line, in cdk.json or in ~/.cdk.json
at execProgram (/tmp/opt/npm/lib/node_modules/aws-cdk/lib/index.js:469:48635)
at async CloudExecutable.synthesizer (/tmp/opt/npm/lib/node_modules/aws-cdk/lib/index.js:525:52237)
at async CloudExecutable.doSynthesize (/tmp/opt/npm/lib/node_modules/aws-cdk/lib/index.js:469:42230)
at async CloudExecutable.synthesize (/tmp/opt/npm/lib/node_modules/aws-cdk/lib/index.js:469:42023)
at async CdkToolkit.selectStacksForDeploy (/tmp/opt/npm/lib/node_modules/aws-cdk/lib/index.js:472:3462)
at async CdkToolkit.deploy (/tmp/opt/npm/lib/node_modules/aws-cdk/lib/index.js:470:176508)
at async exec4 (/tmp/opt/npm/lib/node_modules/aws-cdk/lib/index.js:525:53102)
--app is required either in command-line, in cdk.json or in ~/.cdk.json
--app is required either in command-line, in cdk.json or in ~/.cdk.json

::set-output name=ACTION_RUN_SUMMARY::[{text:CDK_DEPLOY_COMMAND_ERROR,level:Error,message:"The AWS CDK deploy action failed to perform one or more commands. Check the action logs for more information."}]
Error: The AWS CDK deploy action failed to perform one or more commands. Check the action logs for more information.

[Container] 2024/11/24 06:33:59.431265 Command failed with exit status 1
[Container] 2024/11/24 06:33:59.431324 Failed to run action due to exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions