Problem setting up Owner 401

Describe the issue/error/question

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

What could be the cause of this ?

Information on n8n setup

  • n8n version: 0.173.1
  • Database : SQLite
  • Running n8n via npm

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.

is it n8n user-management:reset ?

Yes, you should get an output like Successfully reset the database to default user state. when running this command:


Might also be worth restarting the app afterwards and clearing your browser cache & cookies, just tobe on the safe side.

1 Like

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.