My n8n service is failing. PostgreSQL is missing the "role" column in the "user" table.
beincryptocurrencies
HOBBYOP

2 months ago

Error: column 9827483463398fbb7d6b96916fe451d8bdefa0e8.role does not exist

Project: perfect-perception
Service: Primary (n8n v1.113.3)

I need this SQL executed:
ALTER TABLE "user" ADD COLUMN IF NOT EXISTS "role" VARCHAR(32) DEFAULT 'global:member';
UPDATE "user" SET "role" = 'global:owner' WHERE "role" IS NULL;

Migrations never ran properly.

Solved$10 Bounty

3 Replies

anveshsangishetty
FREE

2 months ago

Could you pls provide more info on what's going on?


swarnava
FREE

2 months ago

This error happens because the database migrations weren’t applied after the upgrade. Could you run the migration command again and see if it fixes the issue?


beincryptocurrencies
HOBBYOP

2 months ago

after thte migration the new update 1.113.1 my workflow let to work, and said that I miss a colummns:
column 9827483463398fbb7d6b96916fe451d8bdefa0e8.role does not exist


beincryptocurrencies
HOBBYOP

2 months ago


noahd
EMPLOYEE

2 months ago

Want to clarify, have you run the SQL snippet that you sent above? If not would be happy to help you get to where you can paste that.


noahd
EMPLOYEE

2 months ago

Want to preface though. As a general rule of thumb any manual SQL run on services should be treated as a "worst case I lose everything" (even if its just a simple thing 😁).
Always make a backup of important workflows, data, settings, and secrets beforehand.


beincryptocurrencies
HOBBYOP

2 months ago

it is just for test not for work…just I sent to you the error that n8n gave to me that nobody can help me, thanks for your advide+


beincryptocurrencies
HOBBYOP

2 months ago

how can I resolve the problem ?? my workflows worked perfectly and after the update it i not working. I did not touch anything of my workflow it is about railways, it inos fair play, I spend a lot to make the workflow and I have to spend time to resolve this problem as well


beincryptocurrencies
HOBBYOP

2 months ago

hiiii nobody can help me ??


crisog
PRO

2 months ago

Did you do what Noah suggested? Back up the Postgres instance, then run the SQL you believe fixes this. As they said, gotta be extra careful.

You can do this by using a Postgres client and connecting to the DB to execute the SQL, I use this one:
https://eggerapps.at/postico2/

Also make sure this is not in your n8n env N8N_SKIP_MIGRATIONS=true


beincryptocurrencies
HOBBYOP

2 months ago

i DON T KNOW BACK UP THE POSTRGES AND RUN SQL, I DONT KNOW WAHT IS SQL , I DON KNOW HOW CAN I USE EGGERAPPS. IT IS LIKE YOU AR SPEAKING ME IN CHINNESE


beincryptocurrencies
HOBBYOP

2 months ago

After spend so many time for make the workflow …. happens this things that it is very frustrated .. xd


crisog
PRO

2 months ago

I'm sorry. As you shared the SQL snippet I thought you were familiar.


crisog
PRO

2 months ago

I don't have an immediate answer but I'll see if I can come up with something easier for you to do


beincryptocurrencies
HOBBYOP

2 months ago

sorry this texted was from claude that told me this post for resolve the problem cd


beincryptocurrencies
HOBBYOP

2 months ago

CrisOG you are my only choise at the moment, thanks


beincryptocurrencies
HOBBYOP

2 months ago

only me happened this things ?? if you tell me how can I resolve…


crisog
PRO

2 months ago

You are not the only one, there's a lot of non-technical people using Railway especially with automation tools like n8n.


beincryptocurrencies
HOBBYOP

2 months ago

what can I do ?? the workflow it is not working for the migration … xd if I konw this I dont update n8n


crisog
PRO

2 months ago

Backup your postgres first. This is how to do it

1425139555190968300


crisog
PRO

2 months ago

You said Service: Primary (n8n v1.113.3) but is the Worker also on this version? You can check by Clicking the Worker service then Settings.


noahd
EMPLOYEE

2 months ago

Bear in mind, backups are only available on the Pro tier and above


crisog
PRO

2 months ago

Missed that one, thanks!


crisog
PRO

2 months ago

In that case, make sure the versions match, that could also trigger the issue you are running into


beincryptocurrencies
HOBBYOP

2 months ago

CLAUDE. said that I don t have one column, that the column was missing after the update then if i install before version anyway it is not working. Claude recommend me this program, but i was thinking that may be there are an easy way to resolve this problem because it is aproblem of railways after the update . This is the program… if the team can resolve the problem will be better, I won t like to dowload the program try to learn about the program and spend my time in this… xd https://eggerapps.at/postico2/


beincryptocurrencies
HOBBYOP

2 months ago

holaaaa joe necesi ayudaa


beincryptocurrencies
HOBBYOP

2 months ago

how can i find the terminal in railway ??



beincryptocurrencies
HOBBYOP

2 months ago

NO HAY HUEVOS… I NEE TO CONECT TO RAILWAY SSH O TERMINAL IN THE WEBSITE


You cannot access the SSH terminal from the Railway website.


beincryptocurrencies
HOBBYOP

2 months ago

ya lo he solucionado gracias, por na pq no me has podido ayudado en nada


adam
MODERATOR

2 months ago

Glad to hear you’ve solved it, but please keep this server English only. We have helped as much as we are able, given that you have not been receptive to our suggestions.


adam
MODERATOR

2 months ago

Marking this thread as solved


adam
MODERATOR

2 months ago

!s


Status changed to Solved adam about 2 months ago


Loading...