NextJS Build fails
micovi
TRIALOP

a year ago

Hello,

The build works locally, I can't wrap my head around and understand why the railway build fails.

I am trying to build ./apps/frontend using bun

You reached the start of the range → Aug 23, 2024 10:47 AM

[Region: europe-west4]

==============

Using Nixpacks

==============

context: 15cb2879f0591fe43e9ac2f912177cde

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

║ setup │ nodejs_20, bun ║

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

║ install │ bun i --no-save ║

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

║ build │ bun run frontend:build ║

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

║ start │ bun run frontend:start ║

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

0 building with "builder-LJOK" instance using docker-container driver

1 [internal] load build definition from Dockerfile

1 transferring dockerfile: 2.82kB done

1 DONE 0.0s

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

2 DONE 0.4s

3 [internal] load .dockerignore

3 transferring context: 2B done

3 DONE 0.0s

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

4 resolve ghcr.io/railwayapp/nixpacks:ubuntu-1722297819@sha256:91bbbdf4bf734a471738c36a57b5ba191e5c81ad1d0e9d60d70da2d318639eb8 done

4 DONE 0.0s

5 [internal] load build context

5 transferring context: 21.05MB 0.2s done

5 DONE 0.2s

6 [stage-0 2/10] WORKDIR /app/

6 CACHED

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

7 DONE 0.0s

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

8 23.51 installing 'bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env'

8 24.08 these 4 derivations will be built:

8 24.08 /nix/store/48ydqchh516p152b461mmal38p5i8vkx-libraries.drv

8 24.08 /nix/store/6hy6gsf89qr4729bs71zdxnbvpjrsda1-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv

8 24.08 /nix/store/s27nsrfqbxzg3pbgdphawddz6v4lrh9h-builder.pl.drv

8 24.08 /nix/store/bhmy629f346zdv18f1hwb0llrkh84vrx-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv

8 24.08 these 44 paths will be fetched (70.40 MiB download, 332.59 MiB unpacked):

8 24.08 /nix/store/mjgi65m3hgzqqvqcix848gskkw5zzwi9-acl-2.3.2

8 24.08 /nix/store/5nk2ga7i2f030am4qpcdsd8qlk6i3z83-attr-2.5.2

8 24.08 /nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26

8 24.08 /nix/store/ds8rhlmlmd68b8gh6fgldv3hxrn4pyi5-bun-1.1.9

8 24.08 /nix/store/xwcf1rw3ackqp2vxms9myf9jq2ny6ynv-bzip2-1.0.8

8 24.08 /nix/store/mxcq77rlan82dzpv3cgj0fh6qvv8ncil-bzip2-1.0.8-bin

8 24.08 /nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5

8 24.08 /nix/store/i34mknsjgrfyy71k2h79gda0bvagzc2j-diffutils-3.10

8 24.08 /nix/store/1sffjkg6c6ff16fz5yr0pnz3j7vja42h-ed-1.20.2

8 24.08 /nix/store/xx7x1dwybpssfhq8yikvzz38bh3yrq97-file-5.45

8 24.08 /nix/store/jjcsr5gs4qanf7ln5c6wgcq4sn75a978-findutils-4.9.0

8 24.08 /nix/store/8vvkbgmnin1x2jkp7wcb2zg1p0vc4ks9-gawk-5.2.2

8 24.08 /nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib

8 24.08 /nix/store/0rxb3ixzk4zaqivc9s795m0a3679wbw2-gcc-13.2.0-libgcc

8 24.08 /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52

8 24.08 /nix/store/7ivacs3m2fm19hyxdmrs05xisj82v6y5-gmp-with-cxx-6.3.0

8 24.08 /nix/store/4i0j14zymvlngyyhq2254f4g9m9my98y-gnu-config-2024-01-01

8 24.08 /nix/store/28gpmx3z6ss3znd7fhmrzmvk3x5lnfbk-gnugrep-3.11

8 24.08 /nix/store/cdzpn0rdq810aknww3w9fy3wmw9ixr66-gnumake-4.4.1

8 24.08 /nix/store/5zjms21vpxlkbc0qyl5pmj2sidfmzmd7-gnused-4.9

8 24.08 /nix/store/rik7p68cq7yzlj5pmfpf4yv6jnrpvlgf-gnutar-1.35

8 24.08 /nix/store/j5chw7v1x3vlmf3wmdpdb5gwh9hl0b80-gzip-1.13

View Deploy details

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

1 Replies

brody
EMPLOYEE

a year ago

Hey, when debugging build logs, please be sure to read the entire contents.

Looks like you have some Cannot read properties of null errors.


Loading...