Build Error - NixPacks and Docker failures

jared-leddyHOBBY

4 months ago

We just started getting this error yesterday when trying to deploy new code. The build process was working on Railway just fine before that. I'm not really sure what's going on here. For reference, the local build for our NodeJS app works seamlessly.

npm error A complete log of this run can be found in: /root/.npm/_logs/2025-02-01T05_46_10_089Z-debug-0.log
✕ [stage-0  6/10] RUN --mount=type=cache,id=s/70266f24-cef9-4084-a87c-fc64c22137ad-/root/npm,target=/root/.npm npm ci 
process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
Dockerfile:20
-------------------
18 |     ENV NIXPACKS_PATH=/app/node_modules/.bin:$NIXPACKS_PATH
19 |     COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/70266f24-cef9-4084-a87c-fc64c22137ad-/root/npm,target=/root/.npm npm ci
21 |
22 |     # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
Error: Docker build failed
Solved

0 Replies

4 months ago

try adding python to your list of providers.


jared-leddyHOBBY

4 months ago

That worked. Thank you.

My biggest question is "why"? We have several APIs all developed in the exact same manner, all but one started as a clone of the first one. So, it's strange that this would be required to work, when none of the other ones need it. As for included NPM packages for each project, they are virtually identical with few differences.


4 months ago

I'm sorry but i cannot speak to why your project needed python, its simply what the logs said was needed, and thats all i have to go off of


4 months ago

!s


Status changed to Solved brody 4 months ago