'Forgot my password' doesn't work

Hi everyone,

I’m running n8n via Docker on Railway. After a recent server update, I was logged out of the instance, and now I’m unable to log back in using the original email and password I set up.

When I try to log in, I get the following message:
“Problem logging in – Wrong username or password. Do you have caps lock on?”

And when I click on “Forgot my password”, I get:
“Recover password – Please contact your admin. n8n isn’t set up to send email right now.”

The issue is that I’m the admin, and now I can’t access the system to continue working on my automations.

I’d really appreciate any help on how to regain access. Thanks in advance!

  • n8n version: 1.103.1
  • Running n8n via: Docker
  • Operating system: Microsoft Windows 11

Hey @gusgvd hope all is well. Welcome to the community.

You could try to reset the password from CLI with:

n8n user-management:reset

(source: CLI commands | n8n Docs)

I can do it through Railway interface?
If so, how?

I guess whether Railway CLI is accessible is something that could be found in the railway documentation. I would try this one:

i’m having difficulties here, but trying this path. i’ll give a returno asap

I din’t manage to solve this through CLI.
It demanded lots of steps trhough Prompt ou WSL.exe, and I simply didn’t get success at any tries. Noobie here..

BUT, I solved this configuring some variables at Railway instance of N8N “Primary” and mirrorring them to “Workers”.

Thsi way, I could receive the “Reset your password” email and now I can sleep in peace :slight_smile:

For the record and to help other noobs like me, the variables are:

N8N_EMAIL_MODE = “smtp”
N8N_SMTP_HOST = “smtp.gmail.com” (in my case)
N8N_SMTP_PORT = “465” (if you use TLS is 587)
N8N_SMTP_USER = [your email here] (can be a personal one)
N8N_SMTP_PASS = [your mail ou app password]

This is the video that saved me: