n8n password lost

pawteitous
HOBBY

a month ago

I lost the password of my n8n instance in my project, and I wanted to know if its possible to reset it with some process.

Solved

0 Replies

pawteitous
HOBBY

a month ago

268f41cb-9148-4ede-9886-ed409e9116d5


a month ago

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


pawteitous
HOBBY

a month ago

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

1402015839875498200



a month ago

Would using the Railway CLI to SSH into your service and running that command be an effective solution?


pawteitous
HOBBY

a month ago

Huh, don't know, but it sounds promising!

Lemme check rq


pawteitous
HOBBY

a month ago

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

1402021401887637500


pawteitous
HOBBY

a month ago

1402021476135338200


pawteitous
HOBBY

a month ago

I feel like im just missing something obvious here, sorry, haha


a month ago

does the forgot password button not work?


a month ago

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


pawteitous
HOBBY

a month ago

ah, no, It says to "contact an admin" since there's no email recovey or things like that

1402022143524343800


pawteitous
HOBBY

a month ago

It's alright, you already helped a lot, I have some ideas of what to look up now

Thanks


a month ago

In what service did you SSH into?


a month ago

The worker or the other one?


pawteitous
HOBBY

a month ago

the primary, not the worker


a month ago

try on the worker


a month ago

(just guessing here)


pawteitous
HOBBY

a month ago

worth a try, sure


a month ago

also try redeploying these two services


a month ago

after running that command


a month ago

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


a month ago

but that could brick everything


pawteitous
HOBBY

a month ago

Alriiight, redeploying was the last step, yeah

1402023044192539000


a month ago

nice!


pawteitous
HOBBY

a month ago

alright alright, thanks!


pawteitous
HOBBY

a month ago

fixed the issue, and I got to use CLI, which is always fun

ok now how do I mark this as resolved again…


a month ago

I will mark this as solved, don't worry about it


a month ago

!s


Status changed to Solved medim 30 days ago


n8n password lost - Railway Help Station