Why Does Only One Workflow in n8n on AWS Work at a Time?

0
3
Asked By TechyTiger42 On

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

Answered By ServerSage88 On

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.

Answered By BinaryBard5 On

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.

Answered By CloudNinja99 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.