2 years ago
Any ideas what could be causing the below error:
[Region: us-west1]
Using Nixpacks
context: c1313c7ca0d4fc63ddfdc0127d517ead
╔════════ Nixpacks v1.26.0 ═══════╗
║ setup │ nodejs_18, npm-9_x ║
║─────────────────────────────────║
║ install │ npm ci ║
║─────────────────────────────────║
║ build │ npm run build ║
║─────────────────────────────────║
║ start │ npm run start ║
╚═════════════════════════════════╝
#0 building with "builder-mfCd" instance using docker-container driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.52kB done
#1 DONE 0.0s
#2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1722297819
#2 DONE 0.1s
#3 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1722297819@sha256:91bbbdf4bf734a471738c36a57b5ba191e5c81ad1d0e9d60d70da2d318639eb8
#3 resolve ghcr.io/railwayapp/nixpacks:ubuntu-1722297819@sha256:91bbbdf4bf734a471738c36a57b5ba191e5c81ad1d0e9d60d70da2d318639eb8 done
#3 DONE 0.0s
#4 [stage-0 2/8] WORKDIR /app/
#4 CACHED
#5 [internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s
#6 [internal] load build context
#6 transferring context: 11.78MB 0.1s done
#6 DONE 0.1s
#7 [stage-0 3/10] COPY .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix
#7 CACHED
#8 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix && nix-collect-garbage -d
#8 CACHED
#9 [stage-0 5/10] COPY . /app/.
#9 DONE 0.1s
#10 [stage-0 6/10] RUN --mount=type=cache,id=s/84e13f61-fcde-4744-bea9-dc5af67e3034-/root/npm,target=/root/.npm npm ci
#10 0.611 npm
WARN config production Use --omit=dev instead.
#10 84.52 npm ERR! code 1
#10 84.52 npm ERR! path /app/node_modules/node-sass
#10 84.52 npm ERR! command failed
#10 84.52 npm ERR! command sh -c node scripts/build.js
#10 84.52 npm ERR! Building: /nix/store/l6sykmmiavsfl44p16643x59282n78ll-nodejs-18.20.2/bin/node /app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
#10 84.52 npm ERR! gyp info it worked if it ends with ok
#10 84.52 npm ERR! gyp verb cli [
#10 84.52 npm ERR! gyp verb cli '/nix/store/l6sykmmiavsfl44p16643x59282n78ll-nodejs-18.20.2/bin/node',
#10 84.52 npm ERR! gyp verb cli '/app/node_modules/node-gyp/bin/node-gyp.js',
#10 84.52 npm ERR! gyp verb cli 'rebuild',
#10 84.52 npm ERR! gyp verb cli '--verbose',
#10 84.52 npm ERR! gyp verb cli '--libsass_ext=',
#10 84.52 npm ERR! gyp verb cli '--libsass_cflags=',
#10 84.52 npm ERR! gyp verb cli '--libsass_ldflags=',
#10 84.52 npm ERR! gyp verb cli '--libsass_library='
#10 84.52 npm ERR! gyp verb cli ]
#10 84.52 npm ERR! gyp info using node-gyp@8.4.1
#10 84.52 npm ERR! gyp info using node@18.20.2 | linux | x64
#10 84.52 npm ERR! gyp verb command rebuild []
#10 84.52 npm ERR! gyp verb command clean []
#10 84.53 npm ERR! gyp verb clean removing "build" directory
#10 84.53 npm ERR! gyp verb command configure []
#10 84.53 npm ERR! gyp verb find Python Python is not set from command line or npm configuration
#10 84.53 npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
#10 84.53 npm ERR! gyp verb find Python checking if "python3" can be used
#10 84.53 npm ERR! gyp verb find Python - executing "python3" to get executable path
#10 84.53 npm ERR! gyp verb find Python - "python3" is not in PATH or produced an error
#10 84.53 npm ERR! gyp verb find Python checking if "python" can be used
#10 84.53 npm ERR! gyp verb find Python - executing "python" to get executable path
#10 84.53 npm ERR! gyp verb find Python - "python" is not in PATH or produced an error
#10 84.53 npm ERR! gyp ERR! find Python
#10 84.53 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
#10 84.53 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
#10 84.53 npm ERR! gyp ERR! find Python checking if "python3" can be used
#10 84.53 npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
#10 84.53 npm ERR! gyp ERR! find Python checking if "python" can be used
#10 84.53 npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
#10 84.53 npm ERR! gyp ERR! find Python
#10 84.53 npm ERR! gyp ERR! find Python
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
2 years ago
Hi, seems you're using nixpacks and your code depends on python, which is not being autodetected. You can head over to your service -> settings -> build and add Python to the list of Providers, as such:
Attachments
Status changed to Awaiting User Response Railway • over 1 year ago
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Solved nico • over 1 year ago
