Deployment restarts constantly error
mihai373
PROOP

2 years ago

Project ID: 4d88bd05-8122-4159-90e0-4dc061af6807

I'm hosting an n8n instance on Railway and unfortunately every few hours the Railway deployment restarts, causing an error in our n8n and crashing our active n8n workflows. At the time of the crash, Railway showed this error I've screenshotted. How can we make sure the deployment doesn't restart constantly?

Closed

14 Replies

2 years ago

is this a Worker or the Primary service?


mihai373
PROOP

2 years ago

Primary


mihai373
PROOP

2 years ago

1342531289118543905


mihai373
PROOP

2 years ago

Primary


2 years ago

what's the ram usage like?



2 years ago

seems related


2 years ago

yeah they havent hit their limit, thats what i was gonna recommend too, set a service variable - NODE_OPTIONS=--max_old_space_size=8192


mihai373
PROOP

2 years ago

Thanks.

Does it make sense to set this variable for Worker too?


2 years ago

yes i would definitely set it on the worker too, regardless, it wont hurt


mihai373
PROOP

2 years ago

thanks!


2 years ago

the template has now been updated with these by default


mihai373
PROOP

2 years ago

Hi guys,

I implemented these changes to both worker and primary, and I upgraded to pro plan and increased the Postgres rhythm volume to 20gb instead of 5gb

Since then, navigating through n8n, as well as the workflow executions, became extremely slow

I removed these variables to see if it would get back to normal, and it works even slower now

What might be the reason?


2 years ago

Are all your services in the same region?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...