Deployment Failed on NestJS / Container Restarts

Project id: 226d017d-497f-4e0a-88fc-b04f499967fb Hi! I'm getting a container event container died while deploying a NestJS application. The startup logs from my application are incomplete (screenshot attached). Reading other help threads, could it be possible that I ran out of memory? I updated my plan from trial to Hobby an hour ago. I redeployed the app several times, but the issue persists. Thanks for the help!
No description
Solution:
try setting a service variable NODE_OPTIONS=--max-old-space-size=4096
Jump to solution
8 Replies
Percy
Percy6mo ago
Project ID: 226d017d-497f-4e0a-88fc-b04f499967fb
Brody
Brody6mo ago
have you tried switching back to the legacy runtime?
Christian
ChristianOP6mo ago
on it
Christian
ChristianOP6mo ago
with the legacy runtime we get further, even listening to a port, but the container still stops after deployment.
No description
Brody
Brody6mo ago
I wouldn't say you got further, the v2 runtime has a bug right now where some log lines aren't picked up and it looks like that particular log line wasn't picked up on the v2 runtime. either way, this means it's not an issue with railway but an issue with your application it's trying to allocate more than 8gb of memory for some reason
Solution
Brody
Brody6mo ago
try setting a service variable NODE_OPTIONS=--max-old-space-size=4096
Christian
ChristianOP6mo ago
this worked! thanks for the quick help @Brody
Brody
Brody6mo ago
no problem! please don't close threads though
Want results from more Discord servers?
Add your server