N8n crashing in railway

Describe the problem/error/question

Deployed n8n with worker + redis + postgres template on railway.com.
It has crashed multiple times.

  • The canvas becomes non responsive
  • Takes very long to respond to an action
  • occasionally continues running a command ( example executing )

This has happened during following scenarios

  • When adding a tag

    Upon pressing enter nothing happened for 10-20 seconds. Tried again no response. Page refresh does not help. Logs show error that duplicate tag creation request. So the first request got completed but never returned to UI . And subsequent requests failed.

  • When running n8n-get many workflows

    Runs ok 1st time. Subsequent runs fail. Canvas does not respond. Keeps executing.

What is the error message (if any)?

railway logs



this credential is already there , still reported missing

Please share your workflow

{
“nodes”: [
{
“parameters”: {},
“id”: “480faafc-f2c0-43b8-89db-63d03334168a”,
“name”: “On clicking ‘execute’”,
“type”: “n8n-nodes-base.manualTrigger”,
“position”: [
-440,
-60
],
“typeVersion”: 1
},
{
“parameters”: {
“rule”: {
“interval”: [
{
“field”: “hours”,
“hoursInterval”: 4
}
]
}
},
“id”: “14d4a036-f070-4d35-84c8-019801032afc”,
“name”: “Schedule Trigger”,
“type”: “n8n-nodes-base.scheduleTrigger”,
“position”: [
-440,
120
],
“typeVersion”: 1.2,
“disabled”: true
},
{
“parameters”: {
“options”: {
“reset”: false
}
},
“type”: “n8n-nodes-base.splitInBatches”,
“typeVersion”: 3,
“position”: [
220,
60
],
“id”: “68b1266c-cd1c-475c-8175-2edb46283dc6”,
“name”: “Loop Over Items”
},
{
“parameters”: {
“workflowId”: {
“__rl”: true,
“value”: “={{ $workflow.id }}”,
“mode”: “id”
},
“workflowInputs”: {
“mappingMode”: “defineBelow”,
“value”: {},
“matchingColumns”: ,
“schema”: ,
“attemptToConvertTypes”: false,
“convertFieldsToString”: true
},
“options”: {
“waitForSubWorkflow”: true
}
},
“type”: “n8n-nodes-base.executeWorkflow”,
“typeVersion”: 1.2,
“position”: [
520,
60
],
“id”: “65ffdad9-1681-4e70-822c-40251f2dfdf3”,
“name”: “Execute Workflow”
},
{
“parameters”: {
“filters”: {},
“requestOptions”: {}
},
“type”: “n8n-nodes-base.n8n”,
“typeVersion”: 1,
“position”: [
-60,
60
],
“id”: “45dbf5ea-eae6-4be0-aa2d-bfcd17d279ad”,
“name”: “n8n”,
“credentials”: {
“n8nApi”: {
“id”: “mAQ5sn0VBctUpNZm”,
“name”: “n8n account”
}
}
},
{
“parameters”: {},
“type”: “n8n-nodes-base.noOp”,
“typeVersion”: 1,
“position”: [
480,
-100
],
“id”: “33900f3c-df23-400b-9e4f-ffa84b537c9c”,
“name”: “No Operation, do nothing”
}
],
“connections”: {
“On clicking ‘execute’”: {
“main”: [
[
{
“node”: “n8n”,
“type”: “main”,
“index”: 0
}
]
]
},
“Schedule Trigger”: {
“main”: [
[
{
“node”: “n8n”,
“type”: “main”,
“index”: 0
}
]
]
},
“Loop Over Items”: {
“main”: [
[
{
“node”: “No Operation, do nothing”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Execute Workflow”,
“type”: “main”,
“index”: 0
}
]
]
},
“Execute Workflow”: {
“main”: [
[
{
“node”: “Loop Over Items”,
“type”: “main”,
“index”: 0
}
]
]
},
“n8n”: {
“main”: [
[
{
“node”: “Loop Over Items”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “909d35603579f8f8d652488d4d2d2691f16a87320e72bf87d2f9bd031564fbe1”
}
}

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: latest
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): queue
  • Running n8n via (Docker, npm, n8n cloud, desktop app): railway.com
  • Operating system: NA

Hi @manishkhanna Welcome to n8n :n8n: community :tada:

It looks like this might be a hardware or resource issue. Could you share your server specs?

It is the hobby plan on railway.com. 8GB w/ 8vcpu. I used the top n8n template. ( n8n w/ worker by jack ) .

Another thing I noticed was that postgres DB spiked to 1.5 gb when I started working on my 2nd automation.

Since the issue kept on coming, eventually I wiped everything and now use another template n8n (workers + internal Redis + webhook processor) by avgsoft.

This looks stable for now

2 Likes

Hi,

If this is solved can you mark a solution please

Reg,
J.

I’ve done that.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.