This typically means that your n8n database schema is out of sync. Specifically, n8n is expecting a role column in the User or user_entity table that doesn’t exist. That often happens when a database migration fails or doesn’t run properly after an upgrade.
This could be resolved by triggering or reapplying migrations.
Alternatively, export your workflows, deploy a fresh n8n instance on Railway and re-import to avoid schema issues.
If migrations keep failing, the only way I could think of is to consider rolling back your n8n version and re-upgrading gradually to apply migrations one-by-one.
I’m having the same problem… I’m using Docker and updated to lastest today, and I’m having the same issue. How should I restart the migration process? By rebooting the instance? By entering the image and running a command? Thanks for the help.
The solution for me in a Railway App was this (thanks to the guys here and a little assitance of ChatGPT):
Go to your deployment instance (in my case it was named “Primary”).
Click on Variables;
Then Add new Variable: N8N_RUN_MIGRATIONS
Set the value to “true“
Deploy
Hi! I have the exact problem here. How to solve it with NPM? I checked the user table in the database, and yes, there is no user.role column.
I have tried to downgrade my n8n version to 1.101.1, this is (I guess) the last version that is working fine before I upgraded to the latest version which is not working