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