Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can´t log in after update #11232

Closed
TwoDoCZ opened this issue Mar 27, 2025 · 13 comments
Closed

Can´t log in after update #11232

TwoDoCZ opened this issue Mar 27, 2025 · 13 comments

Comments

@TwoDoCZ
Copy link

TwoDoCZ commented Mar 27, 2025

Bug Description

After update to latest v0.44.19 there is an error that occurs when attempting to create any new record: ApolloError: column FieldMetadataEntity.standardOverrides does not exist

Post update:
Can´t even log in into application. I had to rollback to v0.44.17
✅ v0.44.17
❌ v0.44.19
❌ v0.50.1

Technical inputs

Example:

index-DGgZNXO1.js:82 Uncaught (in promise) ApolloError: column FieldMetadataEntity.standardOverrides does not exist
    at new Vo (index-DGgZNXO1.js:82:187)
    at index-DGgZNXO1.js:86:77981
    at V2 (index-DGgZNXO1.js:81:10339)
    at index-DGgZNXO1.js:81:10246
    at new Promise (<anonymous>)
    at Object.then (index-DGgZNXO1.js:81:10211)
    at Object.next (index-DGgZNXO1.js:81:10353)
    at notifySubscription (index-DGgZNXO1.js:81:2530)
    at onNotify (index-DGgZNXO1.js:81:3058)
    at Vo.next (index-DGgZNXO1.js:81:3706)
@FelixMalfait
Copy link
Member

Are you sure you are on v0.44.14 and not on main?
Running yarn database:migrate:prod should solve it but I would recommend staying on a tagged version if it's not the case

@TwoDoCZ
Copy link
Author

TwoDoCZ commented Mar 27, 2025

@FelixMalfait you are right I meant v0.44.19 - will fix it in post. Now I am running older version v0.44.17 and its fine.

@FelixMalfait
Copy link
Member

Ah yes you're right it was taken on v0.44.19. yarn database:migrate:prod should solve it then?

But it should have been executed automatically?

yarn database:migrate:prod

@TwoDoCZ
Copy link
Author

TwoDoCZ commented Mar 27, 2025

I tried it again from v0.44.17 to v0.44.19 but no luck and can´t even log in. Currently can´t get access to terminal, I will rollback to v0.44.17 for now.

Image

Image

@TwoDoCZ TwoDoCZ changed the title Can´t create any new record Can´t log in after update Mar 27, 2025
@lrueegg
Copy link

lrueegg commented Mar 28, 2025

Hi all
I have the same error after upgrading from 0.44.x to 0.50.0.

I have executed the "yarn database:migrate:prod" successfully, but the login still doesn't work.

Is there anything else I can try?

Thanks and best regards

@lrueegg
Copy link

lrueegg commented Mar 28, 2025

Hi all I have the same error after upgrading from 0.44.x to 0.50.0.

I have executed the "yarn database:migrate:prod" successfully, but the login still doesn't work.

Is there anything else I can try?

Thanks and best regards

I could fix it with yarn command:prod upgrade.

@TwoDoCZ
Copy link
Author

TwoDoCZ commented Mar 28, 2025

Does it mean that entrypoint.sh file should be updated? https://github.com/twentyhq/twenty/blob/v0.50.2/packages/twenty-docker/twenty/entrypoint.sh

-> "yarn database:migrate:prod && yarn command:prod upgrade"

@FelixMalfait
Copy link
Member

Added to entrypoint.sh, this is one more step to make upgrade easier. Hopefully starting from next major version there should be no more manual action / command to run.

@github-project-automation github-project-automation bot moved this from 🔖 Planned to ✅ Done in 🎯 Roadmap & Sprints Apr 6, 2025
@TwoDoCZ
Copy link
Author

TwoDoCZ commented Apr 6, 2025

@lrueegg could you please clarify where you ran the command? I attempted it in the DB container via "docker exec -it ID bash", but I’m not sure if that’s the correct place. I also had to install yarn.

Image

@TwoDoCZ
Copy link
Author

TwoDoCZ commented Apr 6, 2025

@FelixMalfait That’s fantastic news! I’ll give it a try as soon as the new image is available on Docker Hub.

@lrueegg
Copy link

lrueegg commented Apr 7, 2025

Hi @TwoDoCZ
I was running the command in the Worker:
$ docker exec -it twenty-worker-1 yarn database:migrate:prod
$ docker exec -it twenty-worker-1 yarn command:prod upgrade

And thank you @FelixMalfait for taking that into the upgrade procedure!

@TwoDoCZ
Copy link
Author

TwoDoCZ commented Apr 8, 2025

Still not available in v0.50.9—waiting patiently for its arrival

@FelixMalfait
Copy link
Member

0.51 is coming end of week :) (we do one major release every 2 week)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants