I have swapped to a different machine recently, however, when starting n8n locally I repeatedly get 401 on almost every action.
When setting up the Owner account it gives me a 401.
Problem setting up owner
Request failed with status code 401
If I skip setting up an owner, I won’t be able to create any workflow as it prompts 401 and a never ending loading screen when I click on Workflows/New
Init Problem
There was a problem loading init data:
*Request failed with status code 401*
When I click on Workflows/Open, I also get the following:
Problem loading workflows
Request failed with status code 401
Could not load active workflows
Request failed with status code 401
Hi @cccc, I am sorry to hear you’re having trouble.
Could you upgrade to n8n version 0.180.0 or later? You should then hopefully be able to use the user-management:reset CLI command to reset your user management data and set up an owner as expected.
It seems that I had accidentally run install, bootstrap, or build with node18 at some stage.
The problem is resolved after I cleaned up everything and redo them with my nvm set to node 16.
Hello I have realised this issue only occurs when using Safari (running locally with rpm), however, the exact same code works perfectly fine with docker.
The only errors I got in console were TypeError: this.getSearchedWorkflows is not a function. (In 'this.getSearchedWorkflows(this.query)', 'this.getSearchedWorkflows' is undefined)
and the rest being 401
Hello, I also encountered this problem.
using n8n 1.1.1 on k8s with default sqlite
I’ve tried
n8n user-management:reset
I can set up new account successfully, but after login, the workflow page still shows:
Init problem:
There was a problem loading init data: Request failed with status code 401
Besides, I also encountered “Connection lost” problem after I bind a domain to access it.
Are you going direct to your n8n instances IP or through the domain? If you are going through the domain have you configured your reverse proxy to allow websockets?
I am also having this problem. Accessing straight via IP
Information on n8n setup
n8n version: 1.31.1
Database : Postgres
Running: n8n via Docker
docker logs -f d5ddb52dffd7
User settings loaded from: /home/node/.n8n/config
Initializing n8n process
n8n ready on 0.0.0.0, port 5678
Version: 1.31.1
Editor is now accessible via:
http://localhost:5678/
Are you accessing your n8n instance over HTTP or HTTPS? If you are using HTTP you may see this issue and it would be worth trying to set the N8N_SECURE_COOKIE env option to false and seeing if that helps.
root@n8n:~# export N8N_SECURE_COOKIE=false
root@n8n:~# n8n start
User settings loaded from: /root/.n8n/config
Initializing n8n process
n8n ready on 0.0.0.0, port 5678
Version: 1.31.2
Editor is now accessible via:
http://localhost:5678/
Press "o" to open in Browser.
Owner was set up successfully
User survey updated successfully