aws-samples / aws-samples/aws-ai-phi-deidentification

Error: spawnSync docker ENOENT

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Error: spawnSync docker ENOENT
at Object.spawnSync (node:internal/child_process:1110:20)
at Object.spawnSync (node:child_process:871:24)
at dockerExec (/home/ec2-user/idp-de-identification/node_modules/aws-cdk-lib/core/lib/bundling.js:1:4869)
at DockerImage.fromBuild (/home/ec2-user/idp-de-identification/node_modules/aws-cdk-lib/core/lib/bundling.js:1:3494)
at new Bundling (/home/ec2-user/idp-de-identification/node_modules/aws-cdk-lib/aws-lambda-nodejs/lib/bundling.js:1:1897)
at Bundling.bundle (/home/ec2-user/idp-de-identification/node_modules/aws-cdk-lib/aws-lambda-nodejs/lib/bundling.js:1:2733)
at new NodejsFunction (/home/ec2-user/idp-de-identification/node_modules/aws-cdk-lib/aws-lambda-nodejs/lib/function.js:1:1229)
at new AmplifyAssetDeploymentProvider (/home/ec2-user/idp-de-identification/node_modules/@aws-cdk/aws-amplify-alpha/lib/branch.js:89:25)
at AmplifyAssetDeploymentProvider.getOrCreate (/home/ec2-user/idp-de-identification/node_modules/@aws-cdk/aws-amplify-alpha/lib/branch.js:128:62)
at new Branch (/home/ec2-user/idp-de-identification/node_modules/@aws-cdk/aws-amplify-alpha/lib/branch.js:49:62) {
errno: -2,
code: 'ENOENT',
syscall: 'spawnSync docker',
path: 'docker',
spawnargs: [
'build',
'-t',
'cdk-05b39ba031b514ce05f864d7a4b34c4ad5b040e0aabe3d29987d0b55f3aeb108',
'--platform',
'linux/amd64',
'--build-arg',
'IMAGE=public.ecr.aws/sam/build-nodejs14.x',
'--build-arg',
'ESBUILD_VERSION=0',
'/home/ec2-user/idp-de-identification/node_modules/aws-cdk-lib/aws-lambda-nodejs/lib'
]
}

Node.js v18.16.0

Subprocess exited with error 1
npm ERR! Lifecycle script `cdk-deploy` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: ccra-cdk-app@0.1.0
npm ERR! at location: /home/ec2-user/idp-de-identification/idp-cdk-app

Contributor guide

Open the contributing guide

Research direction

Start with the cdk-deploy lifecycle script in the idp-cdk-app workspace and review the Node.js child_process and AWS CDK bundling stack trace. Confirm what environment is expected for the Docker invocation; done means cdk-deploy no longer exits with spawnSync docker ENOENT.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, javascript, node.js
Domain
build-system, cloud, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.