I forgot my password and then foolishly following the guide here “Password recovery - #2 by Jon” deleted the user. now i cant send smtp email (i tried that first using mailersend) nor the setup screen shows up. I am hosting it on railway so cant access the container to run “n8n user-management:reset” either. the pgsql container’s role and user tables are clear. This is the sql command I ran:
delete from “user”;
delete from “role”;
update settings SET value = ‘false’ WHERE key = ‘userManagement.isInstanceOwnerSetUp’;
I can access the pgsql but only using another dummy n8n container i have there. @Jon I would really appreciate if you have any idea.
It simply says ‘n8n’ is not recognized as an internal or external command,
operable program or batch file. I tried a bunch of way but never got this railway cli to work with others too. btw i didnt setup a local project for it.
I changed the start command of container to n8n user-management:reset but it gave back error in logs:
Error resetting database. See log messages for details.
Could not find any entity of type “Project” matching: {
The issue was resolved by creating the user directly in db and recreating roles. Furthermore, the relations between user and projects was also recreated with right permissions.
Lesson learned: Never mess with existing application db again and take all advices with a boulder of salt.