2 years ago
Hey, the particular deployment was seamless until the last deployment. When trying to deploy the same service now, it fails at the build stage itself. It works perfectly fine on local.
Has anything changed on the railway configuration side?
ⓘ Deployment information is only viewable by project members and Railway employees.
5 Replies
2 years ago
10 7.329 npm error gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
10 7.329 npm error gyp ERR! find Python (accepted by both node-gyp and npm)
10 7.329 npm error gyp ERR! find Python - Set the environment variable PYTHON
10 7.329 npm error gyp ERR! find Python - Set the npm configuration variable python:
10 7.329 npm error gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
10 7.329 npm error gyp ERR! find Python For more information consult the documentation at:
10 7.329 npm error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
10 7.329 npm error gyp ERR! find Python **
10 7.329 npm error gyp ERR! find Python
10 7.329 npm error gyp ERR! configure error
10 7.329 npm error gyp ERR! stack Error: Could not find any Python installation to use
10 7.329 npm error gyp ERR! stack at PythonFinder.fail (/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/lib/find-python.js:306:11)
10 7.329 npm error gyp ERR! stack at PythonFinder.findPython (/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/lib/find-python.js:164:17)
10 7.329 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
10 7.329 npm error gyp ERR! stack at async configure (/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/lib/configure.js:27:18)
10 7.329 npm error gyp ERR! stack at async run (/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/bin/node-gyp.js:81:18)
10 7.329 npm error gyp ERR! System Linux 6.1.0-20-cloud-amd64
10 7.329 npm error gyp ERR! command "/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/bin/node" "/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
10 7.329 npm error gyp ERR! cwd /app/node_modules/better-sqlite3
10 7.329 npm error gyp ERR! node -v v22.2.0
10 7.329 npm error gyp ERR! node-gyp -v v10.1.0
10 7.329 npm error gyp ERR! not ok
10 7.330
10 7.330 npm error A complete log of this run can be found in: /root/.npm/logs/2024-05-24T071139899Z-debug-0.log
10 ERROR: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
[stage-0 6/8] RUN --mount=type=cache,id=s/0a61a1ea-ed91-4f7c-9a7d-7df391034386-/root/npm,target=/root/.npm npm ci:
7.329 npm error gyp ERR! stack at async configure (/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/lib/configure.js:27:18)
7.329 npm error gyp ERR! stack at async run (/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/bin/node-gyp.js:81:18)
7.329 npm error gyp ERR! System Linux 6.1.0-20-cloud-amd64
7.329 npm error gyp ERR! command "/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/bin/node" "/nix/store/m27q12bf02cz5d430382nbd700d0fx8z-nodejs-22.2.0/lib/nodemodules/npm/nodemodules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
7.329 npm error gyp ERR! cwd /app/node_modules/better-sqlite3
7.329 npm error gyp ERR! node -v v22.2.0
7.329 npm error gyp ERR! node-gyp -v v10.1.0
7.329 npm error gyp ERR! not ok
7.330
7.330 npm error A complete log of this run can be found in: /root/.npm/logs/2024-05-24T071139899Z-debug-0.log
Dockerfile:20
18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/0a61a1ea-ed91-4f7c-9a7d-7df391034386-/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
2 years ago
Hey guys, can we pleae look into this asap? Wuld want to start the service as soon as possible since it indexes the data that is time-sensitive. Nixpacks is failing for me. THe process used to work smoothly earlier.
2 years ago
It looks like Python is needed for some npm packages to be built. Can you please try adding a nixpacks.toml file with the contents
[phases.setup]
nixPkgs = ["...", "python3"]Status changed to Solved Railway • over 1 year ago