CLI command "n8n user-management:reset"

Good morning.

Does not accept password upon login; According to the answers I have found in the community, I can execute the following CLI command in the Docker container: “n8n user-management:reset” and with this I can create a new user account.

I executed this instruction, but it did not enable the form to create a new user account. I’m new to this; Please explain to me in detail how I execute (step by step) the CLI command “n8n user-management:reset”.

Thank you

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:

Welcome to the community @cahucari2107 !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


If you running your n8n instance in Docker and using Docker Desktop then you run the command in the Exec tab of the container in question.

I have the same problem. When I set up a new instance with docker on Digital Ocean, I must have introduced a typo in the password and could not change it. I then connected to the docker container via console and used the “n8n user-management:reset” command and it said it was successfully executed.

Alas, I was also not presented with the form to create a new user. I only see the username and password login which I now cannot log into…

Any luck with your issue?

The reset command should override this: CLI commands | n8n Docs

Are you not able to log in as admin after this? can you try recreating the environment entirely?

I encountered similar issues; after executing either of the following reset commands:

docker exec -it n8n n8n user-management:reset

– or –

docker exec -u node -it n8n n8n user-management:reset

It returned with:

User settings loaded from: /home/node/.n8n/config
Successfully reset the database to default user state.

When I proceed to http://localhost:5678/, it redirected me to http://localhost:5678/signin?redirect=%252F login/sign-in screen.

1 Like

mind trying with a fresh browser session or incognito tab just in case? I think I had that issue on a local instance a while back and turned out to be that.

Thank you for your quick response! I tried a new browser session but that did not work. However, after restarting the server/docker container, it worked as expected.

3 Likes

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