I'm running n8n on AWS, but I'm facing a couple of issues. The first problem is that only one of my workflows activates at a time—when I enable one workflow, the other one stops responding. Both workflows are triggered by different Telegram bots, but they seem to conflict somehow. The second issue is that when I shut down my local computer, everything halts. Even though n8n is supposed to be running on AWS, the workflows and bots seem to stop working, and I have to manually restart them afterward. Can anyone help me figure out how to solve these problems?
3 Answers
Forget about using 'screen' for this; it’s not the best option. Instead, write a systemd unit file to manage n8n as a service. It takes a bit of effort to set up, but it’s a more reliable solution. Once it's configured, you shouldn't have to worry about it stopping when you log off.
Just a heads up, while something like `screen` might let you run it in the background, it could lead to problems down the road. Stick with proper service management like systemd. It’ll be more stable for running your workflows.
It sounds like you're running n8n in a way that ties it to your SSH session. When you disconnect, your workflows stop. You need to run n8n as a background service on your AWS instance. Try using something like `pm2` or `systemd` to ensure it stays live even when you're not connected. This should help with both issues you're having.
Related Questions
Fix Not Being Able To Add New Categories With Intuitive Category Checklist For Wordpress
Get Real User IP Without Installing Cloudflare Apache Module
How to Get Total Line Count In Visual Studio 2013 Without Addons
Install and Configure PhpMyAdmin on Centos 7
How To Setup PostfixAdmin With Dovecot and Postfix Virtual Mailbox
Dovecot Error Unknown database driver mysql