Nuxt Build Issue
kinguk
HOBBYOP

2 years ago

I am having issues with my deployment, I have just made some upgrades to some packages and it no longer completes the build phase. The console shows its completed but the deploy phase doesnt take over..

8 Replies

kinguk
HOBBYOP

2 years ago

ccd6abb7-bb57-4595-aba7-cdc3db5dcbde


kinguk
HOBBYOP

2 years ago

Nuxt build finishes with:
#12 103.5 [success] [nitro] You can preview this build using 'node .output/server/index.mjs'

Then the Deploy log tab shows:

Waiting for deploy to finish…

Here is schema:
{ "$schema": "[https://railway.app/railway.schema.json](https://railway.app/railway.schema.json)", "build": { "builder": "NIXPACKS", "buildCommand": "yarn build" }, "deploy": { "numReplicas": 1, "startCommand": "yarn start", "sleepApplication": false, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } }


brody
EMPLOYEE

2 years ago

do you have a failing health check?


kinguk
HOBBYOP

2 years ago

I don’t think I have ever configured healthchecks in the past. Is this what you mean?

https://docs.railway.app/guides/healthchecks-and-restarts


kinguk
HOBBYOP

2 years ago

I just checked one of my failed builds. And the error shows as: Deployment Failed during build process..
I don’t see any errors in the console though, apart from Build Timed Out


kinguk
HOBBYOP

2 years ago

I've discovered the issue through a Reddit post, it was with the scheduler package that was trying to run during the build process.


kinguk
HOBBYOP

2 years ago

Appreciate your time @Brody 🫡


brody
EMPLOYEE

2 years ago

no problem! happy you found the issue!


Loading...