Builds Failing - railpack process exited with an error
panickz1
PROOP

2 months ago

Builds are failing in different instances, atm I can't deploy.

scheduling build on Metal builder "production-builderv3-europe-west4-2bv8"

fetched snapshot sha256:b551f92e3cc5f3073ec135f7765773249c14adc19251a2098db533fbe7ea28e1 (18 MB bytes)

fetching snapshot17.3 MB697ms

unpacking archive23.4 MB120ms

using build driver railpack-v0.23.0

╭─────────────────╮

│ Railpack 0.23.0 │

╰─────────────────╯

↳ Detected Node

↳ Using pnpm package manager

Failed to resolve version 9 of pnpm

Cheers.

$20 Bounty

11 Replies

Railway
BOT

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 2 months ago


Try disabling Metal builder.


panickz1
PROOP

2 months ago

Nop. Same problem.


Try deploying your project with a Dockerfile, see if that helps.


panickz1
PROOP

2 months ago

I can't atm, I would appreciate a fiix...


domehane
FREE

2 months ago

Hello panickz1;

can you share your package.json?


panickz1
PROOP

2 months ago

All was working now is not, in terms of deploying, I've not changed anything in package.json. As i told I have two instances with the same problem. One in NestJS the other is NextJS. This problem in not on our end, but I might stand corrected.

Redeploying the live commit fails..


y-pakorn
PRO

2 months ago

got same problem here, still not fixed. happened in all node + pnpm services for me


cowchaindev
PRO

2 months ago

I got problem too on couple services which use pnpm. Anyone fix that?


redbeardapps
HOBBY

2 months ago

I have the same problem.


tradinghomerun
HOBBY

a month ago

Same problem


kryptocoder710
FREE

a month ago

This error means the build is trying to resolve pnpm from a bare major version ("9") and the resolver can't turn that into a concrete release. Corepack — which Railpack uses when it sees the packageManager field — requires an exact version, not a major. Fixes in order of likelihood:

In package.json, pin the exact version: "packageManager": "pnpm@9.15.9" (any full x.y.z you want — but it must be exact, pnpm@9 won't resolve). Delete any conflicting engines.pnpm entry while you're there.

If your pnpm version comes from engines.pnpm instead, change it from "9" to an exact "9.15.9" — the bare major hits the same resolution failure in the mise backend.

Alternatively add a mise.toml in the repo root with [tools] / pnpm = "9.15.9" — that overrides detection entirely.

If pinning doesn't fix it, it's the builder image's resolver cache (there have been broken mise/asdf backend states on builders — same family as the "Failed to resolve version 1.22.22 of yarn" threads). Since you already toggled Metal: a Dockerfile (FROM node:22-slim, RUN npm i -g pnpm@9.15.9, copy, install, build) bypasses Corepack/Railpack resolution completely and is the reliable escape hatch.

If option 1 fixes it, the root cause was the non-exact packageManager version — newer Railpack versions are stricter about it than older ones, which is why it "suddenly" broke.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...