How to solve inciden on execution workflow? 🤔

The problem:

When I run my wokflow from the url https://n8n.tangara.com.co it does not finish successfully until I stop it manually.
When I run my workflow from the ip http://176.57.188.53:5678 it does show the execution of each node until it finishes successfully.

Can you please tell me how to solve this incident?

You can see the scenario in the following link.

The test workflow:

Information on n8n setup

  • n8n version: 1.44.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 20.04

##Installed using the following command:

echo ‘N8N_TUNNEL_SUBDOMAIN=n8n
NODE_ENV=production
WEBHOOK_URL=https://n8n.mydomain.com.co
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=MyUser
N8N_BASIC_AUTH_PASSWORD=MyPass
N8N_EMAIL_MODE=smtp
N8N_SMTP_HOST=smtp.mysmtp.com
N8N_SMTP_PORT=465
N8N_SMTP_USER="[email protected]"
N8N_SMTP_PASS=“MyPassword”
N8N_SMTP_SENDER=N8N
N8N_SMTP_SSL=true
GENERIC_TIMEZONE=America/Bogota’ > ~/.env-n8n
docker volume create n8n_data
docker run -d --env-file ~/.env-n8n --name n8n --restart unless-stopped -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n:latest start

Hi @LordAchury ,

Based on what you describe and on how you’ve set up n8n, I think the issue might be that you need to set up the following environment variables according to n8n’s guide.

N8N_PATH
N8N_HOST
N8N_PORT

Could you give this a try and let me know how you get on?

Hi @mariana-na

I implemented the variables you indicate as:

N8N_HOST=redeshumanas.tangara.com.co
N8N_PORT=5678

I don’t use a path so I guess it will default as:

N8N_PATH=/

The incident persists installing that way.

Regards.

Are you using a reverse proxy? If so, you might need to check if the websockets are enabled.

To enable them you need to modify the proxy settings to specify your instance’s url.

2 Likes

Hello Mariana.

That was the problem.

Thank you for help.

If some one is using Nginx as a reverse Proxy might enable websockets.

Regards

1 Like

Thanks for adding your steps to get it to work!
This is great for other users with the same issue :muscle:

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