Nodejs & Docker Issues
Anonymous
FREEOP

a month ago

Hello i have this issue for a while i'm new to Railway and everytime i try to build or push the deployment it fails , i had the service already running on replit but now i want to host it on Railway , i get errors regarding the Nodesjs version 22 , 24 , 20 etc and also regarding the Docker , i tried a lot of fixes but nothing is working

Screenshot_2026-04-14_233603.png

Screenshot_2026-04-14_233535.png

45 Replies

Have you checked out line 4 (or in that area) of your Nixpacks config?


(Also, I'd recommend migrating to Docker or Railpack as Nixpacks is deprecated)


Anonymous
FREEOP

a month ago

for some reason i'm getting this Vite error even though BASE_PATH: Set this to /

variable DATABASE_URL: set to my Neon PostgreSQL connection string (including ?sslmode=require at the end).

image.png

Attachments


Anonymous
FREEOP

a month ago

hitting a very specific version requirement: Vite 7 requires Node 22.12+, but your current environment is providing 22.11.0.

image.png

Attachments


Does your code compile locally?


Anonymous
FREEOP

a month ago

YE


Through Nixpacks?


Anonymous
FREEOP

a month ago

it compiles locally on Replit. The build failure on Railway is due to Vite 7's Node.js engine requirements. My project requires Node v22.12+, but the current Nixpacks environment is providing v22.11.0, which Vite rejects.

image.png

Attachments


Have you tried manually setting the Node version to 22.12 through environment variables? ()


Anonymous
FREEOP

a month ago

yeah i did

image.png

Attachments


Locally, delete node_modules and pnpm-lock.yaml. Then, run pnpm i.

After, commit the new lockfile.

Additionally, I would suggest using pnpm ci as your install command instead of what you currently have now.


Anonymous
FREEOP

a month ago

yeah my project is using Drizzle ORM but for some reason on railway it was trying to find Prisma schema


I’d make sure none of your deploy/predeploy commands involve Prisma, as well as any database operations in your codebase.


Anonymous
FREEOP

a month ago

the build work now all good thanks but the only issue that still here is deployment issue


Can you provide deployment logs?


Anonymous
FREEOP

a month ago

(no markdown available for this content)

Attachments


I'd start a vite dev server locally and debug from there.


Anonymous
FREEOP

a month ago

he error is happening because path-to-regexp (the library used by Express and other routers) no longer supports the unnamed wildcard () in newer versions. It now requires every parameter, including wildcards, to have a name. tried to change '/crm/'

to:

'/crm/:path*)'

Downgrading Node.js from version 22 to 20 didn't work either


Anonymous
FREEOP

a month ago

he issue is likely that your project is still pulling in Express 5 (beta/stable) or path-to-regexp v8+ via your package.json or package-lock.json

i will try Force Downgrade to Express 4


Try something like /crm/{*splat} instead of /crm/*.


Anonymous
FREEOP

a month ago

yeah i tried /crm/:path*


Have you tried the braces though?


Anonymous
FREEOP

a month ago

will try now


Anonymous
FREEOP

a month ago

whats wrong with the variables when one of them is purple everytime i change it it resets back to the old value even if i delete it it just pops back again with the wrong old value bro even after redeploying

image.png

Attachments


Anonymous
FREEOP

a month ago

alright ty bro


Anonymous
FREEOP

a month ago

@pepper any idea ?


I assume you fixed it?


a month ago

@♛ Adams ♛ The link that was sent there is malicious!!!! Do not go there


Anonymous
FREEOP

a month ago

yeah i assumed , that guy account seemed so sus


Anonymous
FREEOP

a month ago

yeah all working fine now thank you 🙂


ricardocidale
HOBBY

19 days ago

Railway's own diagnosis confirms what we already saw — this is on Railway's infrastructure side, not your code. There's nothing for me to fix or plan as a task here.

Your two paths forward, in order of effort:

Try first (30 seconds, sometimes works):

Make any tiny commit to the repo (even a one-character whitespace change in the README) and push it. A fresh GitHub webhook event sometimes shakes Railway's snapshot fetcher loose when manual retriggers won't.

If that doesn't work (the real fix):

Open Railway support and give them this exact info:

Service: H-Analytics

Environment: production

Deployment ID: 1d55cf98-20a9-4fcf-a2f2-fc0e9a5b654d

Symptom: Snapshot step times out at 60s. Repeated 9+ times. Repo Norfolk-Group/H-Analytics is accessible.


ricardocidale
HOBBY

19 days ago

😩 Please help. Have been on this for 12 hours.


Anonymous
FREEOP

18 days ago

i have this same issue again man , Nixpack.toml , Railway and Railpack.json and Package.json also Docker all these files kinda conflict as i have Monorepo + another python service all living in the same project as 2 repo i might need to split them on 2 work spaces


Anonymous
FREEOP

18 days ago

@pepper


You can use different railway.json files for each "subservice."

Eg, you can name it like subservice1.railway.json, subservice2.railway.json, etc.


You'll need to manually declare which config file to use in your Railway dashboard though.


Anonymous
FREEOP

17 days ago

wow really ? that could solve my issues but idk how to do that


You can lookup how to configure the json files here:

To declare which specific configuration to use in your service, go to its settings and scroll all the way down, and you'll see a place to put the path to the Railway config file.


Something like this:

61194.png

Attachments


Anonymous
FREEOP

17 days ago

thanks that would help , also do i need Nixpack.toml and Dockerfile etc ? or just railway.json ?


If you wish to use Dockerfile to build your application, then yes you'd still need it.

Also, I'd recommend migrating from Nixpack to Railpack as Nixpack is deprecated.


Anonymous
FREEOP

17 days ago

idk if it would even work on Railpack i mean it was working till recently


Anonymous
FREEOP

17 days ago

i don't even know why its using Dockerfile its a python Playwright + Crawl4AI service


Anonymous
FREEOP

17 days ago

it choose that automatically


Anonymous
FREEOP

17 days ago

image.png

Attachments


Welcome!

Sign in to your Railway account to join the conversation.

Loading...