2 years ago
Im trying to add AppSignal to my nodejs server which requires a python builder as well. It was working well before with the same configurations but now I am having issues.
CONFIGS
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": [
"node",
"python",
"python"
]
}
},
"deploy": {
"numReplicas": 1,
"startCommand": "npm run sync",
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
Logs:
[Region: us-west1]
==============
Using Nixpacks
==============
context: 62d9416130b50da08098f80c19383a14
╔═════════════ Nixpacks v1.22.0 ═════════════╗
║ python:setup │ python38, gcc ║
║────────────────────────────────────────────║
║ setup │ nodejs18, npm-9x, openssl ║
║────────────────────────────────────────────║
║ install │ npm ci ║
║────────────────────────────────────────────║
║ start │ npm run sync ║
╚════════════════════════════════════════════╝
0 building with "default" instance using docker driver
1 [internal] load build definition from Dockerfile
1 transferring dockerfile: 3.12kB done
1 DONE 0.1s
2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1715645001
2 DONE 0.2s
3 [stage-0 1/8] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1715645001@sha256:0adbb12760de3fbd024031e191540449b0e9003d298dbf698b6b48708750530e
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: 2.28MB 0.0s done
6 DONE 0.1s
7 [stage-0 3/10] COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix
7 CACHED
8 [stage-0 4/10] RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d
8 CACHED
9 [stage-0 5/10] COPY .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix
9 CACHED
10 [stage-0 6/10] RUN nix-env -if .nixpacks/nixpkgs-bf446f08bff6814b569265bef8374cfdd3d8f0e0.nix && nix-collect-garbage -d
10 CACHED
11 [stage-0 7/10] COPY . /app/.
11 DONE 0.2s
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
2 years ago
Fixed it by specifying the nixpack version