After a period of time, the MySQL node will return the error in the title. Same issue from this post:
What is the error message (if any)?
(SSH) Channel open failure: Too many open files
Resolution
Restarting n8n fixes the issue, but it inevitably comes back
Attempted Solution
I’ve tried increase the no file limits in /etc/security/limits.conf to the following:
soft nofile 4096
hard nofile 4096
I’ve also verified pam_limits is set correctly.
I then restarted it, but it still seems to be getting set to 1024
However, when I check ulimit -Sn it returns 1024. ulimit -Hn returns 4096
Bandaid Solution
I’ve been using the error trigger with the Execute Command node to restart n8n if it gets that error. Any long term solutions to this would be appreciated
Information on your n8n setup
n8n version: 1.75.2
Database (default: SQLite): postgresdb
n8n EXECUTIONS_PROCESS setting (default: own, main): Main
Running n8n via (Docker, npm, n8n cloud, desktop app): npm