felipedrumond
PROOP

2 years ago

My builds are failing frequently, and the logs won't tell me exactly why, just that "process ___ did not complete successfully: exit code: 1"

The partial log is below:

[Region: us-west1]

Using Nixpacks

context: ba95047c70926fe515e4d421975f991d

╔════════════ Nixpacks v1.26.0 ════════════╗

║ setup │ nodejs_18, npm-8_x ║

║──────────────────────────────────────────║

║ install │ npm ci ║

║──────────────────────────────────────────║

║ build │ nx run api:build:production ║

║──────────────────────────────────────────║

║ start │ node dist/apps/api/main.js ║

╚══════════════════════════════════════════╝

#0 building with "builder-t6XB" instance using docker-container driver

#1 [internal] load build definition from Dockerfile

#1 transferring dockerfile: 3.74kB done

#1 DONE 0.0s

#2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1722297819

#2 DONE 0.2s

#3 [stage-0 1/10] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1722297819@sha256:91bbbdf4bf734a471738c36a57b5ba191e5c81ad1d0e9d60d70da2d318639eb8

#3 resolve ghcr.io/railwayapp/nixpacks:ubuntu-1722297819@sha256:91bbbdf4bf734a471738c36a57b5ba191e5c81ad1d0e9d60d70da2d318639eb8 0.0s done

[...]

#3 DONE 2.7s

#4 [stage-0 2/10] WORKDIR /app/

#4 DONE 0.0s

#5 [internal] load .dockerignore

#5 transferring context: 2B done

#5 DONE 0.0s

#6 [internal] load build context

#6 transferring context: 7.16MB 0.1s done

#6 DONE 0.1s

#7 [stage-0 3/10] COPY .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix

#7 DONE 0.2s

#8 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix && nix-collect-garbage -d

#8 20.00 installing 'bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env'

#8 20.77 these 6 derivations will be built:

[...]

#8 24.12 building '/nix/store/dl56n6gv24nks1bfhsgpph4b6fg8n2ij-libraries.drv'...

#8 24.37 building '/nix/store/fk5klk8gya7yxizshp3s684v7sd4xkj9-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv'...

#8 24.59 building '/nix/store/5169f24q2knmiyn2h2haj87imy6fd6kb-npm-8.19.4.tgz.drv'...

#8 28.12 setting SOURCE_DATE_EPOCH to timestamp 499162500 of file package/package.json

#8 28.12 Running phase: installPhase

#8 28.60 building '/nix/store/aw5is7gmyb4hsdw4hblhsxmvdb3vlfa8-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv'...

#8 28.65 created 30 symlinks in user environment

#8 28.87 building '/nix/store/c10bj2njj1qh1daf44ym3x5pb4k2agrb-user-environment.drv'...

#8 28.98 removing old generations of profile /nix/var/nix/profiles/per-user/root/profile

#8 28.98 removing profile version 1

[...]

#8 28.98 finding garbage collector roots...

#8 28.98 removing stale link from '/nix/var/nix/gcroots/auto/lzjbmb2ry0z7lma2fvpqprb12921pnb5' to '/nix/var/nix/profiles/per-user/root/profile-1-link'

#8 28.98 deleting garbage...

ore/xwcf1rw3ackqp2vxms9myf9jq2ny6ynv-bzip2-1.0.8'

#8 30.54 deleting unused links...

#8 30.54 note: currently hard linking saves -0.00 MiB

#8 30.58 60 store paths deleted, 512.32 MiB freed

#8 DONE 30.9s

#9 [stage-0 5/10] COPY . /app/.

#9 DONE 0.3s

#10 [stage-0 6/10] RUN --mount=type=cache,id=s/d35d478c-05ca-4e5d-8c2a-ca2907a4443e-/root/cache/Cypress,target=/root/.cache/Cypress --mount=type=cache,id=s/d35d478c-05ca-4e5d-8c2a-ca2907a4443e-/root/npm,target=/root/.npm npm ci

#10 0.307 npm

WARN config production Use --omit=dev instead.

#10 DONE 69.1s

#11 [stage-0 7/10] COPY . /app/.

#11 DONE 0.7s

#12 [stage-0 8/10] RUN --mount=type=cache,id=s/d35d478c-05ca-4e5d-8c2a-ca2907a4443e-node_modules/cache,target=/app/node_modules/.cache nx run api:build:production

#12 63.68

#12 63.68 > NX Nx Cloud: Workspace is disabled #12 63.68 #12 ERROR: process "/bin/bash -ol pipefail -c nx run api:build:production" did not complete successfully: exit code: 1

[stage-0 8/10] RUN --mount=type=cache,id=s/d35d478c-05ca-4e5d-8c2a-ca2907a4443e-node_modules/cache,target=/app/node_modules/.cache nx run api:build:production:

63.68

63.68 > NX Nx Cloud: Workspace is disabled

63.68


Dockerfile:24

22 | # build phase 23 | COPY . /app/. 24 | >>> RUN --mount=type=cache,id=s/d35d478c-05ca-4e5d-8c2a-ca2907a4443e-node_modules/cache,target=/app/node_modules/.cache nx run api:build:production 25 | 26 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c nx run api:build:production" did not complete successfully: exit code: 1

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...