Webhook / workflows not responding in browser

I am currently self hosting on an EC2 instance , but having an issue where there is no feedback from n8n when testing the workflows. Webhook node for testing just sits there even though postman confirms a “workflow was started” , I can see the execution correctly receiving the data but the flow never updates to be able to make adjustments / work on the canvas itself.

Doing some research I found that this is potentially a websocket issue and to look into NGINX. Unfortunately I have very little experience specifically with NGINX. The server is additionally behind a load balancer / domain setup in aws, not sure if this could / would cause any additional issues. Which ports I need to have traffic on or if I am missing something entirely.

Information on your n8n setup

  • n8n Version1.69.2
  • Database SQLite
  • n8n EXECUTIONS_PROCESS setting own, main
  • Running n8n via Docker
  • **Operating system: Ubuntu **
# configuration file /etc/nginx/sites-enabled/n8n:
server {
    server_name my.domain.com;
    location / {
        proxy_pass http://localhost:5678;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        #proxy_set_header Host #host;
        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        proxy_cache off;
        # note the inclusion of the protocol 'https'
         add_header Access-Control-Allow-Methods "POST, GET, OPTIONS";
         add_header Access-Control-Allow-Headers "Origin, Authorization, Accept";
         add_header Access-Control-Allow-Credentials true;
         add_header Access-Control-Allow-Origin *;
#        add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
#        add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/my.domain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/imy.domain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


}
server {
    if ($host = my.domain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    server_name my.domain.com;
    return 404; # managed by Certbot


}

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi @BlankBrains

Thanks for posting here and welcome to the community! :cake:

Which URL are you using for the testing? Please note that there is a different URL for test executions and when using the webhook in production.

Have a look in our docs here:

I am using the test URL that way I can see the feedback in browser. But nothing happens. The same goes for when I click test workflow. I can see an execution in the execution tab but I don’t see it going step by step through the flow as it runs.