Not able to execute the workflow after integrating n8n into the product

Not able to execute the workflow after integrating n8n into my product. It’s loading for long time and is not running. I am using docker version, can you give any example of how to solve this issue

Hi @praveen, I am sorry to hear you’re having trouble.

Can you please share the exact steps that would allow us to reproduce the problem you are having so we can understand what’s goinig on and help you?

I am afraid not. How exactly are you integrating n8n on the page shown on the screenshot? Are you simply using an iframe? How did you deploy n8n itself?

Yeah I am using iframes. I deployed n8n using docker.

Alright, I opened the below HTML page on my side:


<iframe src="http://localhost:5678" style="height:400px;width:800px;" title="Iframe Example"></iframe>


Then fired up an n8n docker instance using docker run -it --rm --name n8n -p 5678:5678 n8nio/n8n:latest

I could run workflows just fine:

So based on the information you have provided so far I am unfortunately not able to reproduce the problem. So, if you could provide the exact steps required to reproduce your problem that’d be much appreciated and would make it much easier to help you.

Following is my docker compose

version: "3"
    image: n8nio/n8n
    restart: always
    # ports:
    #   - "5678:5678"
      - DB_TYPE=${DB_TYPE}
      - N8N_PATH=/n8n/
      - N8N_BASIC_AUTH_ACTIVE=false
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - N8N_SSL_CERT=/etc/ssl/certs/server.crt
      - N8N_SSL_KEY=/etc/ssl/certs/server.key

      - ./nginx/ssl:/etc/ssl/certs
      - ./docker/  

    image: nginx:latest
      - "443:443"
      - ./nginx/ssl:/etc/nginx/certs
      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf

Below is my Nginx.conf file

server {
        listen 443 ssl http2 default_server;
        listen [::]:443 ssl http2 default_server;
        ssl_certificate /etc/nginx/certs/server.crt;
        ssl_certificate_key /etc/nginx/certs/server.key;

        location / {
                proxy_pass https://n8n:5678/;


We want to route traffic from Nginx to N8N, If we are doing the above settings, then nodes execution is not working.

Please do the above setting in order to reproduce the scenario

Hi @yasin.tahasildar, first thing I’d check after looking at your files would be the nginx directives in use. I wouldn’t expect an n8n instance behind a proxy configured like this to work even without the additional headache an iframe might cause. Perhaps you can try a config as suggested here?

Also, you probably don’t need to bother with certificates in n8n if you’re already using nginx as an endpoint for encrypted traffic. So, you could simplify things by removing the https/SSL configuration from n8n itself and leave the SSL termination to nginx seeing they both run on the same machine anyway.

1 Like

Hi @MutedJam, Thanks for your response after your suggestion we made the changes in the N8N Nginx configuration and started working. It’s a great help

1 Like

Amazing, glad to hear this helps!

I shall mark this topic as resolved, thanks so much for confirming!

1 Like

Hi @MutedJam

I am trying to get a token from sessionStorage but while running N8N is throwing an error of not defined. following is error

Error: There was an error: sessionStorage is not defined

Hey @yasin.tahasildar, this sounds like a very different issue already posted over here: How to get token from sessionstorage to custom nodes - Questions - n8n

So, you might want to follow that thread for any responses/updates.

Thanks for your response I will follow that thread @MutedJam

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