5 months ago
When Pushing code to repo, I get a 2 deployements and one crashing (sugify/6128767 - last one when opening this ticket )
Deploy logs :
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/83fa9c77-b776-4c98-acd2-e08d2676c5e9/vol_yrlol2epo7lcnhri
Starting Container
npm warn config production Use --omit=dev instead.
> sugify@0.1.0 start
> next start
▲ Next.js 14.2.8 - Local: http://localhost:8080
✓ Starting...
✓ Ready in 399ms
Stopping Container
Stopping Container
npm error signal SIGTERM
npm error command sh -c next start
npm error
A complete log of this run can be found in: /root/.npm/_logs/2025-07-04T08_43_31_478Z-debug-0.log
npm error path /app npm error command failed
1 Replies
5 months ago
Hello,
This is caused when running the application via npm; npm will not pass down the graceful exit signals, and so your application will outright crash.
This can be solved simply by starting your application directly with the node binary set in your start command within the service settings.
Best,
Brody
Status changed to Awaiting User Response Railway • 5 months ago
4 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 4 months ago