I have n8n deployed on Railway. It was working fine until I hit my usage limit, and they shut my instance down. Now I can’t seem to get the worker back up without having it crash a few minutes after restarting/redeploying.
Currently active workflows:
- My Today v2 - create tomorrow (ID: 8ssJPegdqwv2hRUz)
- My Today (ID: U6QrHG15fhm3BHq0)
- My Today v2 - create today (ID: Uo42WFEAkbikxc3g)
[Recovery] Logs available, amended execution
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Found unfinished executions: 875
This could be due to a crash of an active workflow or a restart of n8n.
Currently active workflows:
- My Today v2 - create tomorrow (ID: 8ssJPegdqwv2hRUz)
- My Today (ID: U6QrHG15fhm3BHq0)
- My Today v2 - create today (ID: Uo42WFEAkbikxc3g)
[Recovery] Logs available, amended execution
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
[JobProcessor] Starting job 522 (execution 875)
User settings loaded from: /home/node/.n8n/config
Last session crashed
Found unfinished executions: 875
This could be due to a crash of an active workflow or a restart of n8n.
Currently active workflows:
- My Today v2 - create tomorrow (ID: 8ssJPegdqwv2hRUz)
- My Today (ID: U6QrHG15fhm3BHq0)
- My Today v2 - create today (ID: Uo42WFEAkbikxc3g)
[Recovery] Logs available, amended execution
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Found unfinished executions: 875
This could be due to a crash of an active workflow or a restart of n8n.
Currently active workflows:
- My Today v2 - create tomorrow (ID: 8ssJPegdqwv2hRUz)
- My Today (ID: U6QrHG15fhm3BHq0)
- My Today v2 - create today (ID: Uo42WFEAkbikxc3g)
[Recovery] Logs available, amended execution
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')
User settings loaded from: /home/node/.n8n/config
Last session crashed
Error: Worker exiting due to an error.
TypeError: Cannot read properties of undefined (reading 'subscribe')```
We don’t officially support Railway but looking at that error I suspect the issue is likely to be with the connection to the Redis instance, Can you make sure you have the environment options correctly set
Railway can F you badly. I was running my first several instances here and it would keep crushing out of the blues and became sort of unstable. (Thats one way I lost a client)
I’d advice moving to a server setup ( Thought a bit technical) with a postgres DB eg supabase. The costs are always predictable unlike railway where they bump you with a $10 bill then the next month a $20 one
I tried the digital Ocean 1 GB package and my n8n was a but slow as I have lots of workflows and execution data. Moved to a new 6GB server and its super fast than before. No bugs, no downtimes etc.
Also to note If posible,
Store the env AND yaml in a safe place that you can always duplicate easily
Save the encryption key to have a constant credential recovery or transfer to new instances
Use a postgres database over the inbuilt sqlite database. You will have more control and “portability” over the data
Get minimum 2 GB RAM if you are looking to build some cmplex or large workflows.
Set the SMTP to send emails. Will come in handy the day you forget your password or wanna invite new users to your n8n
Dont forget to set the data volumes n8n_data for data persistence
These will give you a better run
For newbies
There is an app called easypanel(.)io. They have a oneclick n8n setup. The downside is when I tried it, the postgres variables didnt work for me. If you are loking for the basic functionalities, this would be a good place to start
Kind regards,
Imperol
PS: If you are looking to move or host n8n, feel free to reach out