V2 is not saving the workflows

Either the workflow gets saved but I can’t access it (the simplest manual trigger node is all the workflow), or I can’t save a complex workflow at all.

Running a fresh new installation of 2.0.0 in a cloud VM, under a custom HTTP port, and accessing with the IP PORT url.

The same scenario is not failing in a fresh installation of version 1.123.4

1 Like

Hello,

How did you install n8n ?
docker ? docke-compose ?
Is it possible to see you yml ?

Is it possible to see docker logs ? (docker logs -f n8n….)

I tried it and I can save without any issue on n8n 2.0.


volumes:
  n8n_v2_data:
  n8n_test_data:


services:
  n8n-test:
    image: docker.n8n.io/n8nio/n8n:1.123.4
    restart: unless-stopped
    volumes:
      - n8n_test_data:/home/node/.n8n
    ports:
      - "5679:5678"
    environment:
      - N8N_HOST=IP
      - N8N_PORT=5678
      - N8N_PROTOCOL=http

      - WEBHOOK_URL=http://IP:5679
      - N8N_EDITOR_BASE_URL=http://IP:5679

      - N8N_SECURE_COOKIE=false
      - DB_SQLITE_VACUUM_ON_STARTUP=true

      - GENERIC_TIMEZONE=Asia/Dubai
      - TZ=Asia/Dubai

      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true


  n8n-v2:
    image: docker.n8n.io/n8nio/n8n:2.0.0
    restart: unless-stopped
    volumes:
      - n8n_v2_data:/home/node/.n8n
    ports:
      - "5678:5678"
    environment:
      - N8N_HOST=IP
      - N8N_PORT=5678
      - N8N_PROTOCOL=http

      - WEBHOOK_URL=http://IP:5678
      - N8N_EDITOR_BASE_URL=http://IP:5678

      - N8N_SECURE_COOKIE=false
      - DB_SQLITE_VACUUM_ON_STARTUP=true

      - GENERIC_TIMEZONE=Asia/Dubai
      - TZ=Asia/Dubai

      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
      - N8N_RUNNERS_ENABLED=true


and the only logs that I see are these:

(node:7) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

But these logs are not coming when I am saving or accessing the workflows. I just see the UI errors.

1 Like

Installing v2 on localhost does NOT cause the error and works fine

services:
  n8n:
    image: n8nio/n8n:2.0.0
    restart: always
    ports:
      - "5678:5678"
    environment:
      - N8N_HOST=localhost
      - N8N_PORT=5678
      - N8N_PROTOCOL=http
      - WEBHOOK_URL=http://localhost:5678/
      - GENERIC_TIMEZONE=UTC
    volumes:
      - n8n_data:/home/node/.n8n

Your local network ip is treated as insecure. The ‘digest’ should refer to “crypto.subtle.digest’“ from “Web APIs”. From the configuration, it looks like you’re using http and not https. So, usage of http and local ip is causing this.

You would need to force chrome or whatever browser to treat the local network ip as secure.

I can see a similar issue:

Khem

2 Likes

To force chrome to treat your local network ip as secure do this. Make sure this is what you want:

For chrome, go here:

chrome://flags/#unsafely-treat-insecure-origin-as-secure

Enable the setting,

In the text box below it, enter your n8n URLs (comma separated): http://IP:5678,http://IP:5679

Then, “Relaunch” button at the bottom to restart Chrome.

This should work now– should be able to save and view workflows.

More info

localhost is treated as secure, that’s why you’re not seeing the issue. I used your docker-compose to standup n8n the same way you did. The issue appeared when I hit my local network ip 192.168.50.*

If IP is not your local network IP and actually is something that is publically accessible, you should just go ahead and setup HTTPS. I would avoid this entirely.

If you want to avoid the above, you would need to use https.

Khem

3 Likes

Thanks for your help. The question now would be why the 1.123.4 version running in the same machine, with the same IP, but a different port, works fine, not having the issue of “crypto.subtle.digest“. Not big deal, but just to understand what is different with the version 2

n8n is big with security, as expected. Unfortunately, I wouldn’t be able to tell you the design decision for v2 regarding this.

Let me know if this “workaround” helped.

2 Likes

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