#n8n password lost
31 messages · Page 1 of 1 (latest)
Project ID: 268f41cb-9148-4ede-9886-ed409e9116d5
268f41cb-9148-4ede-9886-ed409e9116d5
I'm not familiar with the n8n template, but from my experience with other databases on Railway, there may be an environment variable containing your password. DO NOT CHANGE IT - but it will have your current password
It doesn't look like the case, no.
I presume the variables you mean would be in this variables section of the n8n primary service. Checking here only has encryption keys and passwords for my PostgreSQL service, but not the password for n8n itself
Googling took me here: https://community.n8n.io/t/reset-admin-password-on-locally-hosted-n8n/48836
Would using the Railway CLI to SSH into your service and running that command be an effective solution?
Huh, don't know, but it sounds promising!
Lemme check rq
Well, I think I did everything correctly:
Installed the Railway CLI
Logged in the CLI into my railway account
Linked the railway CLI instance to the n8n service in my project, using the project ID
Used the command ssh to connect to the n8n service interactive shell
Used the n8n user-management:reset command you found
And... well, it says it did something, but when I tried to enter the n8n service through Railway (like usual, through the browser), its still asking for a email and password which I do not have
I feel like im just missing something obvious here, sorry, haha
does the forgot password button not work?
Unfortunately I’m not going to be much help here, I’m not familiar with n8n. I would suggest asking elsewhere or googling your issue first
ah, no, It says to "contact an admin" since there's no email recovey or things like that
It's alright, you already helped a lot, I have some ideas of what to look up now
Thanks
In what service did you SSH into?
The worker or the other one?
the primary, not the worker
worth a try, sure
also try redeploying these two services
after running that command
as a last effort (if you're desperate) I would try accessing the DB and seeing if there's any user related table and deleting the data there
but that could brick everything
Alriiight, redeploying was the last step, yeah
nice!