// guides · n8n error index

n8n forgot password or locked out: reset the owner account, tested

Locked out of self-hosted n8n? Tested fixes for forgot password without SMTP, Too many requests at login, lost 2FA and user-management:reset on 2.43.7.

Updated 2026-10-30 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. How we tested, and what is real

    On 30 October 2026 we ran throwaway n8n 2.43.7 instances in Docker (the official n8nio/n8n:2.43.7 image, SQLite, no SMTP configured), set up an owner account, and then tried every way back in: the Forgot my password request, too many wrong logins, the user-management:reset and mfa:disable commands, and setting up a new owner afterwards. Every message below is copied from those runs.

  2. Quick answer: which situation are you in?

    What you seeCauseFix
    Email sending must be set up in order to request a password reset emailForgot password needs SMTP, and a default self-hosted n8n has none.Set up SMTP, or reset the owner from the command line (below).
    Wrong username or password. Do you have caps lock on?Wrong email or password.Check the email you used at owner setup; then reset.
    Too many requests, please try again later.Login rate limit: 5 attempts, then HTTP 429.Wait 60 seconds. Even the right password is refused during that minute.
    Lost your 2FA phone or codesMFA is on for the account.n8n mfa:disable --email=you@example.com
    Nobody knows the owner loginOwner account lost.n8n user-management:reset, then set up a new owner.

  3. "Email sending must be set up in order to request a password reset email"

    Clicking Forgot my password on an instance without SMTP returned HTTP 500 with exactly this message. It was the same answer for an email that exists and one that does not, so the screen does not tell you whether you typed the right address. n8n can only send a reset link when its email settings are configured: N8N_EMAIL_MODE=smtp plus N8N_SMTP_HOST, N8N_SMTP_PORT, N8N_SMTP_USER, N8N_SMTP_PASS and N8N_SMTP_SENDER, then restart. If you are locked out now and have no SMTP, use the command line reset below instead. SMTP errors themselves are covered in n8n Send Email and SMTP errors.

  4. "Too many requests, please try again later." on the login page

    The login endpoint answered with X-RateLimit-Limit: 5. The 6th wrong attempt in a row got HTTP 429 Too many requests, please try again later. with Retry-After: 60. During that minute the correct password was refused too, which makes people think their password is wrong when it is not. Stop, wait a full minute, then try once, carefully.

  5. Reset the owner account from the command line

    n8n user-management:reset printed Successfully reset the database to default user state. It worked while n8n was still running. Run it where n8n runs:

    # Docker
    docker exec -it n8n n8n user-management:reset
    # docker compose (service called n8n)
    docker compose exec n8n n8n user-management:reset
    # npm install
    n8n user-management:reset
    Replace the first n8n in the Docker command with your container name (docker ps shows it). In queue mode run it on the main instance, not a worker. Back up ~/.n8n (or /home/node/.n8n in Docker, and your Postgres database if you use one) before you run it.

  6. What the reset keeps and what it removes

    Right after the reset, the old session cookie got 401 Unauthorized, the old email and password were refused, and the settings the editor loads said showSetupOnFirstLoad: true, so opening n8n showed the owner setup form again (also after a restart). We then set up a new owner with a different email, and the workflow we had built before the reset was still there, listed for the new owner. So the reset removes users and logins, not your workflows. We did not test whether saved credentials keep working after the reset, so check them on a copy first if they matter. Trying owner setup again without a reset returns HTTP 400 Instance owner already setup, and passwords must meet Password must be 8 to 64 characters long.

  7. Lost two-factor authentication (MFA)

    n8n mfa:disable --email=you@example.com printed Successfully disabled MFA for user with email: you@example.com. A typo in the email gives User with email: x does not exist. This keeps the account, its password and everything it owns, so try it before a full reset. In Docker run it with docker exec -it n8n n8n mfa:disable --email=....

All test results

Real runs on n8n 2.43.7 in Docker, 30 October 2026.

TestResult
Forgot password, no SMTP, existing email500 Email sending must be set up in order to request a password reset email
Forgot password, no SMTP, unknown emailSame 500 message (no hint which emails exist)
Wrong password401 Wrong username or password. Do you have caps lock on?
6th login attempt within a minute429 Too many requests, please try again later. Retry-After 60
Right password during the 429 windowAlso 429
n8n user-management:reset (n8n running)Successfully reset the database to default user state.
Old session and old password after reset401, owner setup form shown again
New owner after resetOld workflow still listed
Owner setup again without reset400 Instance owner already setup
n8n mfa:disable --email=...Successfully disabled MFA for user with email: ...

Checklist

Good to know

What we did not test

n8n Cloud (use the Cloud login page and n8n support), LDAP and SAML single sign-on (there is an n8n ldap:reset command, which asks you to choose exactly one of --userId, --projectId or --deleteWorkflowsAndCredentials), Postgres instead of SQLite, and whether saved credentials still decrypt for the new owner.

FAQ

How do I reset my n8n password if I forgot it?

If SMTP is set up, use Forgot my password on the login page. Without SMTP n8n answers "Email sending must be set up in order to request a password reset email", so run n8n user-management:reset (docker exec -it n8n n8n user-management:reset in Docker) and set up a new owner. In our test the workflows were kept.

Does n8n user-management:reset delete my workflows?

Not in our test on n8n 2.43.7: it removed users and logins, and the workflow built before the reset was listed for the new owner. Back up ~/.n8n first anyway, and check your credentials afterwards.

Why does n8n say "Too many requests, please try again later." when I log in?

The login is limited to 5 attempts; the next one gets HTTP 429 with Retry-After 60. Even the right password is refused during that minute, so wait 60 seconds.

How do I disable 2FA in n8n if I lost my phone?

Run n8n mfa:disable --email=you@example.com on the server (docker exec -it n8n ... in Docker). It keeps the account and its password.

Why does n8n show the owner setup screen again?

After n8n user-management:reset the instance has no owner, so the editor shows the setup form. If you set up an owner and try again you get "Instance owner already setup".

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.