Reputation: 1
I’m running npx nx synth demo-tenant-workload-infra-assets
inside a build container, but it's failing with the following error:
npm ERR! code EBADF
npm ERR! syscall write
npm ERR! errno -9
npm ERR! EBADF: bad file descriptor, write
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2025-02-11T10_03_12_741Z-debug-0.log
EBADF: bad file descriptor, write
> NX Running target synth for project demo-tenant-workload-infra-assets failed
Failed tasks:
- demo-tenant-workload-infra-assets:synth
Hint: run the command with --verbose for more details.
[Container] 2025/02/11 10:14:38.635271 Command did not exit successfully npx nx synth demo-tenant-workload-infra-assets exit status 1
[Container] 2025/02/11 10:14:38.639160 Phase complete: BUILD State: FAILED
[Container] 2025/02/11 10:14:38.639183 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npx nx synth demo-tenant-workload-infra-assets. Reason: exit status 1
[Container] 2025/02/11 10:14:38.676236 Entering phase POST_BUILD
[Container] 2025/02/11 10:14:38.677906 Phase complete: POST_BUILD State: SUCCEEDED
[Container] 2025/02/11 10:14:38.677920 Phase context status code: Message:
[Container] 2025/02/11 10:14:38.723613 Set report auto-discover timeout to 5 seconds
[Container] 2025/02/11 10:14:38.723653 Expanding base directory path: .
[Container] 2025/02/11 10:14:38.725056 Assembling file list
[Container] 2025/02/11 10:14:38.725064 Expanding .
[Container] 2025/02/11 10:14:38.726464 Expanding file paths for base directory .
[Container] 2025/02/11 10:14:38.726472 Assembling file list
[Container] 2025/02/11 10:14:38.726474 Expanding **/*
[Container] 2025/02/11 10:14:42.119526 Found 180 file(s)
[Container] 2025/02/11 10:14:42.119565 Report auto-discover file discovery took 3.395952 seconds
[Container] 2025/02/11 10:14:42.121067 Phase complete: UPLOAD_ARTIFACTS State: SUCCEEDED
[Container] 2025/02/11 10:14:42.121085 Phase context status code: Message:
The build process goes through different phases, and while the POST_BUILD
and UPLOAD_ARTIFACTS
phases succeed, the BUILD
phase fails with:
Phase complete: BUILD State: FAILED
Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: npx nx synth demo-tenant-workload-infra-assets. Reason: exit status 1
I've checked the logs (/root/.npm/_logs/...-debug-0.log
), but the issue isn't clear.
I tried:
npm cache clean --force
rm -rf node_modules package-lock.json && npm install
I don't understand from where AWS code pipeline Give ERROR.
Upvotes: 0
Views: 9