Describe the problem/error/question
We are running N8N Business self-hosted in AWS ECS using Postgres on RDS. We have AWS ELB sitting in front of it and have already set N8N_PROXY_HOPS=1. We have had a series of container restarts, approximately every couple of hours. The logs show a SFTP timeout error coming from a failed workflow followed by a series of alternating “Database connection timed out” then “Database connection recovered” messages, finally resulting in “Received SIGTERM. Shutting down…”.
What is the error message (if any)?
Here are some examples from our logs:
n8n-database-timeout-shutdown-example-1.csv
n8n-database-timeout-shutdown-example-2.csv
n8n-database-timeout-shutdown-example-3.csv
Please share your workflow/screenshots/recording
{
“nodes”: [
{
“parameters”: {
“protocol”: “sftp”,
“operation”: “list”,
“path”: “/fresho_orders”,
“options”: {}
},
“type”: “n8n-nodes-base.ftp”,
“typeVersion”: 1,
“position”: [
16,
-192
],
“id”: “195270b1-342f-4ed3-bf77-ac33c226632f”,
“name”: “FTP”,
“credentials”: {}
}
],
“connections”: {
“FTP”: {
“main”: [
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “ef610acf512397dca651e5b5c1be697e6e28c40b43cf6389616d7126cb300b8b”
}
}
{
“nodes”: [
{
“parameters”: {
“protocol”: “sftp”,
“operation”: “list”,
“path”: “/fresho_exports/product_availability_standard_pricing/”,
“options”: {}
},
“type”: “n8n-nodes-base.ftp”,
“typeVersion”: 1,
“position”: [
-2304,
160
],
“id”: “4d780249-0579-48f8-b218-835ae729739a”,
“name”: “Get Fresho Product List1”,
“credentials”: {}
}
],
“connections”: {
“Get Fresho Product List1”: {
“main”: [
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “ef610acf512397dca651e5b5c1be697e6e28c40b43cf6389616d7126cb300b8b”
}
}
{
“nodes”: [
{
“parameters”: {
“protocol”: “sftp”,
“path”: “/customer_list/customer_list.csv”,
“options”: {}
},
“type”: “n8n-nodes-base.ftp”,
“typeVersion”: 1,
“position”: [
-1904,
128
],
“id”: “6593ff4e-b0c0-4857-960c-3c2809eaee3a”,
“name”: “Get Suppliers list S3”,
“retryOnFail”: true,
“credentials”: {}
}
],
“connections”: {
“Get Suppliers list S3”: {
“main”: [
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “ef610acf512397dca651e5b5c1be697e6e28c40b43cf6389616d7126cb300b8b”
}
}
Share the output returned by the last node
#[details=“instance information”]
Debug info
core
-
n8nVersion: 2.4.8
-
platform: docker (self-hosted)
-
nodeJsVersion: 22.21.1
-
nodeEnv: production
-
database: postgres
-
executionMode: regular
-
concurrency: -1
-
license: enterprise (production)
storage
-
success: all
-
error: all
-
progress: true
-
manual: true
-
binaryMode: filesystem
pruning
-
enabled: true
-
maxAge: 336 hours
-
maxCount: 10000 executions
client
-
userAgent: mozilla/5.0 (windows nt 10.0; win64; x64; rv:147.0) gecko/20100101 firefox/147.0
-
isTouchDevice: false
Generated at: 2026-02-17T04:42:00.945Z}
[/details]