coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
31.11k stars 1.58k forks source link

[Bug]: Nixpacks fails with vite: not found #2923

Closed pjarnfelt closed 2 weeks ago

pjarnfelt commented 1 month ago

Description

I have had building Sveltekit projects with Nixpacks running without problems before, but now (since I have Coolify autoupdate) it no longer wants to build.

Minimal Reproduction (if possible, example repository)

following this guide to get it up and running https://dev.to/mandrasch/deploy-sveltekit-with-ssr-on-coolify-hetzner-vps-24c5 and then suddently it doesn't work anymore.

Exception or Error

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 127

[2024-Jul-23 16:17:21.308638] Oops something is not okay, are you okay? 😢

[2024-Jul-23 16:17:21.313903] #0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 968B done
#1 DONE 0.0s

#2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1716249803
#2 DONE 0.3s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [ 1/11] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1716249803@sha256:5ef4d2021c418fcaabb56cea5ea9e24a5fdedfe27f58062d9689214dfed45c46
#4 DONE 0.0s

#5 [ 2/11] WORKDIR /app/
#5 CACHED

#6 [internal] load build context
#6 transferring context: 779.09kB 0.0s done
#6 DONE 0.0s

#7 [ 3/11] COPY .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix
#7 DONE 0.0s

#8 [ 4/11] RUN nix-env -if .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix && nix-collect-garbage -d
#8 32.91 installing 'bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env'
#8 33.45 these 5 derivations will be built:
#8 33.45 /nix/store/qvpln5d3x4bz4gm9flcdclsd6i22fffr-libraries.drv
#8 33.45 /nix/store/6skqfl1krblr4p679avzlamm1aggxfww-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv
#8 33.45 /nix/store/jjf0c11rv2hhvcvr4gjy2mm53vqlynyi-builder.pl.drv
#8 33.45 /nix/store/mds66j2fq89q17v0nqx2r3rmfrwn2siy-yarn.drv
#8 33.45 /nix/store/hys31z2yn7z49v3nkz38adm70v6q6ci2-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv
#8 33.45 these 58 paths will be fetched (97.70 MiB download, 500.05 MiB unpacked):
#8 33.45 /nix/store/ndaag5w95krszi6g7c8jsddhd0agdhar-acl-2.3.2
#8 33.45 /nix/store/lg6iq8irnjadx6274aqk96jzmkp51hr4-attr-2.5.2
#8 33.45 /nix/store/1fzg4cl3k2n9yq80vg6y1vcmvx3qm682-bash-5.2p26
#8 33.45 /nix/store/v71nlgkf8g6d36gac9r44pmlx54mdql3-binutils-2.41
#8 33.45 /nix/store/xpl0bwc8z68mb4vwv5gq3kv3amlyq5vl-binutils-2.41-lib
#8 33.45 /nix/store/5pfllkhmmdrwi5z1da1009lx128kfbbq-binutils-wrapper-2.41
#8 33.45 /nix/store/hi9f8lm3g3hy52drhxzjq4knbwwrlyji-bzip2-1.0.8
#8 33.45 /nix/store/h4r8ccs1bxdma16rxypyf896h4sa8zg5-bzip2-1.0.8-bin
#8 33.45 /nix/store/bm07wi55028wb8qm46kb2wg75vik3fwx-coreutils-9.5
#8 33.45 /nix/store/20d4w79na9xmj8fqqcvxfq0nk8f4mlwb-diffutils-3.10
#8 33.45 /nix/store/rw848rqvmkgi2xmk8bv3jp2963hv41sq-ed-1.20.2
#8 33.45 /nix/store/zj6hlrm720vhmzw1xfi80a4gf6jcgajn-expand-response-params
#8 33.45 /nix/store/mxd5m6nvyrd031qflg2mw4nkjp2d435l-file-5.45
#8 33.45 /nix/store/zpihacm37rszgn64jcrj2qry17nlvzml-findutils-4.9.0
#8 33.45 /nix/store/hcdfvbyv0f0x8hicy9x4qn6q4wc735d0-gawk-5.2.2
#8 33.45 /nix/store/i9w3plvhpwk8x37i5dwqxlfp0knv2zcj-gcc-13.2.0
#8 33.45 /nix/store/66qm2gvcb3img7faxli0jv10dahg61qa-gcc-13.2.0-lib
#8 33.45 /nix/store/4ik4dws0cfl45aj6qv9kk50q8wnxzzvy-gcc-13.2.0-libgcc
#8 33.45 /nix/store/bqwjxqdz2ywf5zy5lw7wbbkbswwbb26x-gcc-wrapper-13.2.0
#8 33.45 /nix/store/27fg1mkiymj2b344j80kygsbxfcdl5qi-glibc-2.39-52
#8 33.45 /nix/store/pz1sk0dk0x1k844nlrc6zhi1hck0d2s4-glibc-2.39-52-bin
#8 33.45 /nix/store/9jsq80ap1ni35q444zsqq41pb3pj5nyc-glibc-2.39-52-dev
#8 33.45 /nix/store/6ks5vqrhhln240g5nczx2c6shlfcxdnx-gmp-6.3.0
#8 33.45 /nix/store/mxb1bh01yrfp0abrik27gc8x510226zd-gmp-with-cxx-6.3.0
#8 33.45 /nix/store/mj498xj850if5fhc39gx6dkwpbag3yxk-gnu-config-2024-01-01
#8 33.45 /nix/store/h792fsk266s45ijczib9ml3l69k705v4-gnugrep-3.11
#8 33.45 /nix/store/c5fgpic4pq8rmw0gvgbnsbambfd7wgdj-gnumake-4.4.1
#8 33.45 /nix/store/gcizalgh6kmyyv7ssp7y8q3bv9rwxkfw-gnused-4.9
#8 33.45 /nix/store/kp7286vzrhb24j1frd7kk6bvpsrph4iq-gnutar-1.35
#8 33.45 /nix/store/yrn2br8yajgg9vg3cnbxlzs2j924lyi1-gzip-1.13
#8 33.45 /nix/store/zp4i00v623q5schw5g4q2jgrick1g0l5-icu4c-73.2
#8 33.45 /nix/store/vil0svww2022dcc0kpn619mdchnsj7jl-icu4c-73.2-dev
#8 33.45 /nix/store/hdig25751pcssrw0fnxnp6wjqqiyri32-isl-0.20
#8 33.45 /nix/store/wvcr4k2l6ba83y80pyvjnisnpj4c75wy-libidn2-2.3.7
#8 33.45 /nix/store/576ylnqagyqjh83hz99wc3n9dj2i9kmx-libmpc-1.3.1
#8 33.45 /nix/store/p3vmkyxfvd8flmgi6jr38vwl48lz96wq-libunistring-1.1
#8 33.45 /nix/store/p6rl6h7h9b62mjnzlqw88gkfyma36pjl-libuv-1.48.0
#8 33.45 /nix/store/vhs9np5yin2phvgfgm3kj6w3906y2s0n-libuv-1.48.0-dev
#8 33.45 /nix/store/m3vg89p81gjgavjxlfgh8d0036ydda01-libxcrypt-4.4.36
#8 33.45 /nix/store/kvh6bs5k1bkp1pmgnlbphsqna5xarcdl-linux-headers-6.7
#8 33.45 /nix/store/fb44l4w7y5ikd9kxycvnm3z38shc53hg-mpfr-4.2.1
#8 33.45 /nix/store/lpvidxshdc4ibdhqrp1z7p5zg1z40f43-nodejs-18.20.2
#8 33.45 /nix/store/5w3rfrj9k76pwjl94vld4qwn76j3b6pq-openssl-3.0.13
#8 33.45 /nix/store/84xzrrx5q8rn8x3dh7fn2rr25s950x24-openssl-3.0.13-bin
#8 33.45 /nix/store/bg32md5al6phba4fq8cm7b1rjfr7ylrf-openssl-3.0.13-dev
#8 33.45 /nix/store/5fycavbrpq4xlbfw6724195apdb7l7j3-patch-2.7.6
#8 33.45 /nix/store/m921a1vhjlrbwpjdlgrwp6f7dh04a1nx-patchelf-0.15.0
#8 33.45 /nix/store/87qbyf42723y3faz8w02mk4mrcqqir15-pcre2-10.43
#8 33.45 /nix/store/isj0n0mba2yxdax1fdxgbk0shfng6322-perl-5.38.2
#8 33.45 /nix/store/1sz5phz4i7lbaq3kg7iks29n70fglk3b-stdenv-linux
#8 33.45 /nix/store/awyrbj9n0di7b7dx1w7w98iyk4i3k9pn-stdenv-linux
#8 33.45 /nix/store/044a283yy51ijdhqhmpbsvsx0cnxhwmz-update-autotools-gnu-config-scripts-hook
#8 33.45 /nix/store/ikj27dh6lrrarmnmvay26d6b246nykz4-xgcc-13.2.0-libgcc
#8 33.45 /nix/store/k0wiplr20nqdrk158vl4wzmy4cfx27w5-xz-5.4.6
#8 33.45 /nix/store/8l969253d0cvsfb5dbnvnk6xzl3w7i83-xz-5.4.6-bin
#8 33.45 /nix/store/vlvg5xhhbjr9lpgqwz1a21pfaajz3xgx-yarn-1.22.22.tgz
#8 33.45 /nix/store/67zz1fxgn27y2726blaghi26vl6gd1ry-zlib-1.3.1
#8 33.45 /nix/store/vbjpvh4ksxrbi396gk7hfghnh73mmpan-zlib-1.3.1-dev
#8 33.47 copying path '/nix/store/4ik4dws0cfl45aj6qv9kk50q8wnxzzvy-gcc-13.2.0-libgcc' from 'https://cache.nixos.org'.../
#8 33.47 copying path '/nix/store/mj498xj850if5fhc39gx6dkwpbag3yxk-gnu-config-2024-01-01' from 'https://cache.nixos.org'.../
#8 33.47 copying path '/nix/store/ikj27dh6lrrarmnmvay26d6b246nykz4-xgcc-13.2.0-libgcc' from 'https://cache.nixos.org'.../
#8 33.47 copying path '/nix/store/p3vmkyxfvd8flmgi6jr38vwl48lz96wq-libunistring-1.1' from 'https://cache.nixos.org'.../
#8 33.47 copying path '/nix/store/vlvg5xhhbjr9lpgqwz1a21pfaajz3xgx-yarn-1.22.22.tgz' from 'https://cache.nixos.org'.../
#8 33.48 copying path '/nix/store/kvh6bs5k1bkp1pmgnlbphsqna5xarcdl-linux-headers-6.7' from 'https://cache.nixos.org'.../
#8 33.48 copying path '/nix/store/044a283yy51ijdhqhmpbsvsx0cnxhwmz-update-autotools-gnu-config-scripts-hook' from 'https://cache.nixos.org'.../
#8 33.52 copying path '/nix/store/wvcr4k2l6ba83y80pyvjnisnpj4c75wy-libidn2-2.3.7' from 'https://cache.nixos.org'.../
#8 33.55 copying path '/nix/store/27fg1mkiymj2b344j80kygsbxfcdl5qi-glibc-2.39-52' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/lg6iq8irnjadx6274aqk96jzmkp51hr4-attr-2.5.2' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/pz1sk0dk0x1k844nlrc6zhi1hck0d2s4-glibc-2.39-52-bin' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/c5fgpic4pq8rmw0gvgbnsbambfd7wgdj-gnumake-4.4.1' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/6ks5vqrhhln240g5nczx2c6shlfcxdnx-gmp-6.3.0' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/gcizalgh6kmyyv7ssp7y8q3bv9rwxkfw-gnused-4.9' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/p6rl6h7h9b62mjnzlqw88gkfyma36pjl-libuv-1.48.0' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/1fzg4cl3k2n9yq80vg6y1vcmvx3qm682-bash-5.2p26' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/hi9f8lm3g3hy52drhxzjq4knbwwrlyji-bzip2-1.0.8' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/rw848rqvmkgi2xmk8bv3jp2963hv41sq-ed-1.20.2' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/m3vg89p81gjgavjxlfgh8d0036ydda01-libxcrypt-4.4.36' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/5w3rfrj9k76pwjl94vld4qwn76j3b6pq-openssl-3.0.13' from 'https://cache.nixos.org'.../
#8 34.22 copying path '/nix/store/zj6hlrm720vhmzw1xfi80a4gf6jcgajn-expand-response-params' from 'https://cache.nixos.org'.../
#8 34.23 copying path '/nix/store/87qbyf42723y3faz8w02mk4mrcqqir15-pcre2-10.43' from 'https://cache.nixos.org'.../
#8 34.23 copying path '/nix/store/hcdfvbyv0f0x8hicy9x4qn6q4wc735d0-gawk-5.2.2' from 'https://cache.nixos.org'.../
#8 34.23 copying path '/nix/store/66qm2gvcb3img7faxli0jv10dahg61qa-gcc-13.2.0-lib' from 'https://cache.nixos.org'.../
#8 34.23 copying path '/nix/store/k0wiplr20nqdrk158vl4wzmy4cfx27w5-xz-5.4.6' from 'https://cache.nixos.org'.../
#8 34.24 copying path '/nix/store/67zz1fxgn27y2726blaghi26vl6gd1ry-zlib-1.3.1' from 'https://cache.nixos.org'.../
#8 34.25 copying path '/nix/store/5fycavbrpq4xlbfw6724195apdb7l7j3-patch-2.7.6' from 'https://cache.nixos.org'.../
#8 34.33 copying path '/nix/store/h4r8ccs1bxdma16rxypyf896h4sa8zg5-bzip2-1.0.8-bin' from 'https://cache.nixos.org'.../
#8 34.33 copying path '/nix/store/ndaag5w95krszi6g7c8jsddhd0agdhar-acl-2.3.2' from 'https://cache.nixos.org'.../
#8 34.36 copying path '/nix/store/vhs9np5yin2phvgfgm3kj6w3906y2s0n-libuv-1.48.0-dev' from 'https://cache.nixos.org'.../
#8 34.39 copying path '/nix/store/hdig25751pcssrw0fnxnp6wjqqiyri32-isl-0.20' from 'https://cache.nixos.org'.../
#8 34.39 copying path '/nix/store/fb44l4w7y5ikd9kxycvnm3z38shc53hg-mpfr-4.2.1' from 'https://cache.nixos.org'.../
#8 34.42 copying path '/nix/store/kp7286vzrhb24j1frd7kk6bvpsrph4iq-gnutar-1.35' from 'https://cache.nixos.org'.../
#8 34.44 copying path '/nix/store/8l969253d0cvsfb5dbnvnk6xzl3w7i83-xz-5.4.6-bin' from 'https://cache.nixos.org'.../
#8 34.48 copying path '/nix/store/xpl0bwc8z68mb4vwv5gq3kv3amlyq5vl-binutils-2.41-lib' from 'https://cache.nixos.org'.../
#8 34.48 copying path '/nix/store/mxd5m6nvyrd031qflg2mw4nkjp2d435l-file-5.45' from 'https://cache.nixos.org'.../
#8 34.48 copying path '/nix/store/vbjpvh4ksxrbi396gk7hfghnh73mmpan-zlib-1.3.1-dev' from 'https://cache.nixos.org'.../
#8 34.50 copying path '/nix/store/h792fsk266s45ijczib9ml3l69k705v4-gnugrep-3.11' from 'https://cache.nixos.org'.../
#8 34.73 copying path '/nix/store/576ylnqagyqjh83hz99wc3n9dj2i9kmx-libmpc-1.3.1' from 'https://cache.nixos.org'.../
#8 34.74 copying path '/nix/store/yrn2br8yajgg9vg3cnbxlzs2j924lyi1-gzip-1.13' from 'https://cache.nixos.org'.../
#8 34.76 copying path '/nix/store/9jsq80ap1ni35q444zsqq41pb3pj5nyc-glibc-2.39-52-dev' from 'https://cache.nixos.org'.../
#8 34.76 copying path '/nix/store/84xzrrx5q8rn8x3dh7fn2rr25s950x24-openssl-3.0.13-bin' from 'https://cache.nixos.org'.../
#8 34.89 copying path '/nix/store/bg32md5al6phba4fq8cm7b1rjfr7ylrf-openssl-3.0.13-dev' from 'https://cache.nixos.org'.../
#8 35.09 copying path '/nix/store/i9w3plvhpwk8x37i5dwqxlfp0knv2zcj-gcc-13.2.0' from 'https://cache.nixos.org'.../
#8 35.09 copying path '/nix/store/v71nlgkf8g6d36gac9r44pmlx54mdql3-binutils-2.41' from 'https://cache.nixos.org'.../
#8 35.09 copying path '/nix/store/mxb1bh01yrfp0abrik27gc8x510226zd-gmp-with-cxx-6.3.0' from 'https://cache.nixos.org'.../
#8 35.09 copying path '/nix/store/zp4i00v623q5schw5g4q2jgrick1g0l5-icu4c-73.2' from 'https://cache.nixos.org'.../
#8 35.09 copying path '/nix/store/m921a1vhjlrbwpjdlgrwp6f7dh04a1nx-patchelf-0.15.0' from 'https://cache.nixos.org'.../
#8 35.18 copying path '/nix/store/bm07wi55028wb8qm46kb2wg75vik3fwx-coreutils-9.5' from 'https://cache.nixos.org'.../
#8 36.15 copying path '/nix/store/20d4w79na9xmj8fqqcvxfq0nk8f4mlwb-diffutils-3.10' from 'https://cache.nixos.org'.../
#8 36.15 copying path '/nix/store/zpihacm37rszgn64jcrj2qry17nlvzml-findutils-4.9.0' from 'https://cache.nixos.org'.../
#8 36.15 copying path '/nix/store/isj0n0mba2yxdax1fdxgbk0shfng6322-perl-5.38.2' from 'https://cache.nixos.org'.../
#8 36.24 copying path '/nix/store/5pfllkhmmdrwi5z1da1009lx128kfbbq-binutils-wrapper-2.41' from 'https://cache.nixos.org'.../
#8 36.54 copying path '/nix/store/1sz5phz4i7lbaq3kg7iks29n70fglk3b-stdenv-linux' from 'https://cache.nixos.org'.../
#8 36.56 copying path '/nix/store/vil0svww2022dcc0kpn619mdchnsj7jl-icu4c-73.2-dev' from 'https://cache.nixos.org'.../
#8 36.80 building '/nix/store/jjf0c11rv2hhvcvr4gjy2mm53vqlynyi-builder.pl.drv'...
#8 36.95 building '/nix/store/qvpln5d3x4bz4gm9flcdclsd6i22fffr-libraries.drv'...
#8 37.29 building '/nix/store/6skqfl1krblr4p679avzlamm1aggxfww-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv'...
#8 37.56 copying path '/nix/store/lpvidxshdc4ibdhqrp1z7p5zg1z40f43-nodejs-18.20.2' from 'https://cache.nixos.org'.../
#8 40.24 copying path '/nix/store/bqwjxqdz2ywf5zy5lw7wbbkbswwbb26x-gcc-wrapper-13.2.0' from 'https://cache.nixos.org'.../
#8 40.26 copying path '/nix/store/awyrbj9n0di7b7dx1w7w98iyk4i3k9pn-stdenv-linux' from 'https://cache.nixos.org'.../
#8 40.31 building '/nix/store/mds66j2fq89q17v0nqx2r3rmfrwn2siy-yarn.drv'...
#8 40.37 Running phase: unpackPhase
#8 40.38 unpacking source archive /nix/store/vlvg5xhhbjr9lpgqwz1a21pfaajz3xgx-yarn-1.22.22.tgz
#8 40.44 source root is package
#8 40.45 setting SOURCE_DATE_EPOCH to timestamp 499162500 of file package/preinstall.js
#8 40.45 Running phase: installPhase
#8 40.53 building '/nix/store/hys31z2yn7z49v3nkz38adm70v6q6ci2-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6-env.drv'...
#8 40.66 created 19 symlinks in user environment
#8 40.71 building '/nix/store/0v5x3y19blq35p18mdcjvwknm98n66fr-user-environment.drv'...
#8 40.98 removing old generations of profile /nix/var/nix/profiles/per-user/root/channels
#8 40.98 removing old generations of profile /nix/var/nix/profiles/per-user/root/profile
#8 40.98 removing profile version 1
#8 40.98 removing old generations of profile /nix/var/nix/profiles/per-user/root/channels
#8 40.98 removing old generations of profile /nix/var/nix/profiles/per-user/root/profile
#8 40.99 finding garbage collector roots...
#8 40.99 removing stale link from '/nix/var/nix/gcroots/auto/lzjbmb2ry0z7lma2fvpqprb12921pnb5' to '/nix/var/nix/profiles/per-user/root/profile-1-link'
#8 40.99 deleting garbage...
#8 41.00 deleting '/nix/store/p58klrifci8l79c8ng1iw5pdbvwi14hn-user-environment.drv'
#8 41.00 deleting '/nix/store/dj7dd4bqrkfykbng2qr2wcy4mjw3baba-user-environment'
#8 41.01 deleting '/nix/store/2lh6n5gg5x1pvkb5qaciimdwkh7lnhrb-env-manifest.nix'
#8 41.02 deleting '/nix/store/awyrbj9n0di7b7dx1w7w98iyk4i3k9pn-stdenv-linux'
#8 41.02 deleting '/nix/store/1sz5phz4i7lbaq3kg7iks29n70fglk3b-stdenv-linux'
#8 41.02 deleting '/nix/store/mxd5m6nvyrd031qflg2mw4nkjp2d435l-file-5.45'
#8 41.02 deleting '/nix/store/nr2asm4r5y8c040j7v1qqzlph7ma4vqq-source'
#8 41.02 deleting '/nix/store/m921a1vhjlrbwpjdlgrwp6f7dh04a1nx-patchelf-0.15.0'
#8 41.03 deleting '/nix/store/bqwjxqdz2ywf5zy5lw7wbbkbswwbb26x-gcc-wrapper-13.2.0'
#8 41.03 deleting '/nix/store/5pfllkhmmdrwi5z1da1009lx128kfbbq-binutils-wrapper-2.41'
#8 41.03 deleting '/nix/store/gcizalgh6kmyyv7ssp7y8q3bv9rwxkfw-gnused-4.9'
#8 41.03 deleting '/nix/store/044a283yy51ijdhqhmpbsvsx0cnxhwmz-update-autotools-gnu-config-scripts-hook'
#8 41.04 deleting '/nix/store/mj498xj850if5fhc39gx6dkwpbag3yxk-gnu-config-2024-01-01'
#8 41.04 deleting '/nix/store/isj0n0mba2yxdax1fdxgbk0shfng6322-perl-5.38.2'
#8 41.11 deleting '/nix/store/m3vg89p81gjgavjxlfgh8d0036ydda01-libxcrypt-4.4.36'
#8 41.11 deleting '/nix/store/h4r8ccs1bxdma16rxypyf896h4sa8zg5-bzip2-1.0.8-bin'
#8 41.12 deleting '/nix/store/hi9f8lm3g3hy52drhxzjq4knbwwrlyji-bzip2-1.0.8'
#8 41.12 deleting '/nix/store/h792fsk266s45ijczib9ml3l69k705v4-gnugrep-3.11'
#8 41.12 deleting '/nix/store/87qbyf42723y3faz8w02mk4mrcqqir15-pcre2-10.43'
#8 41.12 deleting '/nix/store/20d4w79na9xmj8fqqcvxfq0nk8f4mlwb-diffutils-3.10'
#8 41.13 deleting '/nix/store/i9w3plvhpwk8x37i5dwqxlfp0knv2zcj-gcc-13.2.0'
#8 41.20 deleting '/nix/store/hdig25751pcssrw0fnxnp6wjqqiyri32-isl-0.20'
#8 41.20 deleting '/nix/store/576ylnqagyqjh83hz99wc3n9dj2i9kmx-libmpc-1.3.1'
#8 41.20 deleting '/nix/store/fb44l4w7y5ikd9kxycvnm3z38shc53hg-mpfr-4.2.1'
#8 41.20 deleting '/nix/store/6ks5vqrhhln240g5nczx2c6shlfcxdnx-gmp-6.3.0'
#8 41.20 deleting '/nix/store/kp7286vzrhb24j1frd7kk6bvpsrph4iq-gnutar-1.35'
#8 41.21 deleting '/nix/store/c7v81hsah7kcj8zdiy09x764hi4nwp4w-builder.pl'
#8 41.21 deleting '/nix/store/zpihacm37rszgn64jcrj2qry17nlvzml-findutils-4.9.0'
#8 41.21 deleting '/nix/store/zj6hlrm720vhmzw1xfi80a4gf6jcgajn-expand-response-params'
#8 41.21 deleting '/nix/store/8l969253d0cvsfb5dbnvnk6xzl3w7i83-xz-5.4.6-bin'
#8 41.21 deleting '/nix/store/k0wiplr20nqdrk158vl4wzmy4cfx27w5-xz-5.4.6'
#8 41.22 deleting '/nix/store/v71nlgkf8g6d36gac9r44pmlx54mdql3-binutils-2.41'
#8 41.23 deleting '/nix/store/3aiwp69d5ypc79qra1r8j7mp0bwbz4f2-source'
#8 44.25 deleting '/nix/store/9jsq80ap1ni35q444zsqq41pb3pj5nyc-glibc-2.39-52-dev'
#8 44.26 deleting '/nix/store/kvh6bs5k1bkp1pmgnlbphsqna5xarcdl-linux-headers-6.7'
#8 44.29 deleting '/nix/store/c5fgpic4pq8rmw0gvgbnsbambfd7wgdj-gnumake-4.4.1'
#8 44.29 deleting '/nix/store/yrn2br8yajgg9vg3cnbxlzs2j924lyi1-gzip-1.13'
#8 44.29 deleting '/nix/store/5fycavbrpq4xlbfw6724195apdb7l7j3-patch-2.7.6'
#8 44.29 deleting '/nix/store/rw848rqvmkgi2xmk8bv3jp2963hv41sq-ed-1.20.2'
#8 44.29 deleting '/nix/store/pz1sk0dk0x1k844nlrc6zhi1hck0d2s4-glibc-2.39-52-bin'
#8 44.29 deleting '/nix/store/xpl0bwc8z68mb4vwv5gq3kv3amlyq5vl-binutils-2.41-lib'
#8 44.29 deleting '/nix/store/6i38wjyp05hi3m1zv8njjnc5n6nlc1p4-libraries'
#8 44.29 deleting '/nix/store/vlvg5xhhbjr9lpgqwz1a21pfaajz3xgx-yarn-1.22.22.tgz'
#8 44.29 deleting '/nix/store/hcdfvbyv0f0x8hicy9x4qn6q4wc735d0-gawk-5.2.2'
#8 44.30 deleting unused links...
#8 44.30 note: currently hard linking saves -0.00 MiB
#8 44.32 44 store paths deleted, 483.80 MiB freed
#8 DONE 44.4s

#9 [ 5/11] RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends curl wget
#9 0.229 Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB]
#9 0.394 Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [128 kB]
#9 0.431 Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [127 kB]
#9 0.469 Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [129 kB]
#9 0.537 Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 Packages [17.2 MB]
#9 5.234 Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages [1758 kB]
#9 5.687 Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/restricted arm64 Packages [24.2 kB]
#9 5.708 Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse arm64 Packages [224 kB]
#9 5.762 Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [1349 kB]
#9 6.136 Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages [2013 kB]
#9 6.680 Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 Packages [2121 kB]
#9 7.336 Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 Packages [29.5 kB]
#9 7.395 Get:13 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [31.7 kB]
#9 7.421 Get:14 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [80.6 kB]
#9 7.460 Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 Packages [24.1 kB]
#9 7.467 Get:16 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 Packages [1757 kB]
#9 7.940 Get:17 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 Packages [1065 kB]
#9 8.225 Get:18 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 Packages [2059 kB]
#9 8.872 Fetched 30.4 MB in 9s (3477 kB/s)
#9 8.872 Reading package lists...
#9 9.955 Reading package lists...
#9 10.93 Building dependency tree...
#9 11.19 Reading state information...
#9 11.69 curl is already the newest version (7.81.0-1ubuntu1.16).
#9 11.69 The following NEW packages will be installed:
#9 11.69 wget
#9 11.83 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
#9 11.83 Need to get 334 kB of archives.
#9 11.83 After this operation, 926 kB of additional disk space will be used.
#9 11.83 Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 wget arm64 1.21.2-2ubuntu1.1 [334 kB]
#9 12.14 debconf: delaying package configuration, since apt-utils is not installed
#9 12.19 Fetched 334 kB in 0s (1331 kB/s)
#9 12.22 Selecting previously unselected package wget.
#9 12.22 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 10737 files and directories currently installed.)
#9 12.26 Preparing to unpack .../wget_1.21.2-2ubuntu1.1_arm64.deb ...
#9 12.26 Unpacking wget (1.21.2-2ubuntu1.1) ...
#9 12.30 Setting up wget (1.21.2-2ubuntu1.1) ...
#9 DONE 12.4s

#10 [ 6/11] COPY . /app/.
#10 DONE 0.0s

#11 [ 7/11] RUN npm ci --omit dev
#11 1.887
#11 1.887 up to date, audited 1 package in 1s
#11 1.889
#11 1.889 found 0 vulnerabilities
#11 1.891 npm notice
#11 1.891 npm notice New minor version of npm available! 10.5.0 -> 10.8.2
#11 1.891 npm notice Changelog: <[https://github.com/npm/cli/releases/tag/v10.8.2>](https://github.com/npm/cli/releases/tag/v10.8.2%3E)
#11 1.891 npm notice Run `npm install -g npm@10.8.2` to update!
#11 1.892 npm notice
#11 DONE 1.9s

#12 [ 8/11] COPY . /app/.
#12 DONE 0.0s

#13 [ 9/11] RUN npm run build
#13 0.490
#13 0.490 > digital-optur-cms@1.0.4 build
#13 0.490 > vite build
#13 0.490
#13 0.497 sh: 1: vite: not found
#13 ERROR: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 127
------
> [ 9/11] RUN npm run build:
0.490
0.490 > digital-optur-cms@1.0.4 build
0.490 > vite build
0.490
0.497 sh: 1: vite: not found
------
Dockerfile:24
--------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN npm run build
25 |
26 |
--------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 127
[2024-Jul-23 16:17:21.319408] Deployment failed. Removing the new version of your application.

Version

v4.0.0-beta.314

Cloud?

staticdreams commented 1 month ago

I had more or less the same problem, but then I realised that vite was not in my packages.json file. It may be in your file under devDependencies, but since you're executing npm ci --omit dev it is omitted and hence unavailable. Try moving it into dependencies or running just npm ci

andrasbacsai commented 1 month ago

I had more or less the same problem, but then I realised that vite was not in my packages.json file.

It may be in your file under devDependencies, but since you're executing npm ci --omit dev it is omitted and hence unavailable. Try moving it into dependencies or running just npm ci

@pjarnfelt Could you check this?

pjarnfelt commented 1 month ago

Thank you. This fixes it in v4.0.0-beta.318. Still had problems in v4.0.0-beta.317.

syedkhairi commented 1 month ago

I encountered the same issue today following the exact tutorial and even copied the same github repo of the tutorial to try it out in case it is my project causing the issue. What I found works is to just set my install command to npm install rather than npm ci or npm ci --omit dev. I'm on the cloud, so v4.0.0-beta.317, haven't tried on v4.0.0-beta.318.

peaklabs-dev commented 2 weeks ago

@syedkhairi and @pjarnfelt is this still a problem on the latest version? Could you please test again. Thank you.

pjarnfelt commented 2 weeks ago

Fixed in on of the latter builds!