T
Twentyβ€’5mo ago
Prastoin

Workspace version is not equal to my Twenty's version

@Antonio Pinto TwentyCRM is using Docker 0.52.6 Workspace metadataversion is 99 Workspace version is 0.51.0
19 Replies
Prastoin
PrastoinOPβ€’5mo ago
We've been documenting the upgrade as automatically done since 0.50 That was not the case all the time Please review your core.workspace.version and compare it to your running twenty's version Hey guys pinging you as you might concerned in some way@baon99 @Caspersonn @Andreas
GitHub
Migrate/upgrade every time dockerfile entrypoint.sh by prastoin Β· ...
Introduction upgrade and migrate are not run every time even, but only once on database creation, tho we're suggesting users they do as not requiring manual run anymore since 0.50 close #11671
Prastoin
PrastoinOPβ€’5mo ago
@Antonio Pinto Latest upgrade that run over your workspace was in 0.51.0 Which means in the end you only have to run in either twenty-server or twenty-worker containers:
yarn database:migrate:prod
yarn command:prod upgrade
yarn database:migrate:prod
yarn command:prod upgrade
As it's the direct just below version no need to downgrade twenty's version in order to retrieve corresponding ugprade commands Your workspace version should get updated after the upgrade command The auto migrate and upgrade fix will be shipped within the upcoming 0.53 release Please let me know !
Antonio Pinto
Antonio Pintoβ€’5mo ago
I just got this
[Nest] 8894 - 05/05/2025, 2:19:15 PM LOG [UpgradeCommand] Upgrading workspace 9827aaba-3e8c-4bd0-9620-4fe3a1124e08 1/1
[Nest] 8894 - 05/05/2025, 2:19:15 PM LOG [UpgradeCommand] Upgrade for workspace 9827aaba-3e8c-4bd0-9620-4fe3a1124e08 ignored as is already at a higher version.
[Nest] 8894 - 05/05/2025, 2:19:15 PM LOG [UpgradeCommand] Command completed!
/app/packages/twenty-server $
[Nest] 8894 - 05/05/2025, 2:19:15 PM LOG [UpgradeCommand] Upgrading workspace 9827aaba-3e8c-4bd0-9620-4fe3a1124e08 1/1
[Nest] 8894 - 05/05/2025, 2:19:15 PM LOG [UpgradeCommand] Upgrade for workspace 9827aaba-3e8c-4bd0-9620-4fe3a1124e08 ignored as is already at a higher version.
[Nest] 8894 - 05/05/2025, 2:19:15 PM LOG [UpgradeCommand] Command completed!
/app/packages/twenty-server $
Prastoin
PrastoinOPβ€’5mo ago
Could you please run in your twenty-server and share the output:
echo $APP_VERSION
echo $APP_VERSION
Antonio Pinto
Antonio Pintoβ€’5mo ago
ok v0.52.6 error: unknown command 'migrate:prod' Shouldnt it be just migrate?
Prastoin
PrastoinOPβ€’5mo ago
yarn database:migrate:prod
yarn command:prod upgrade
yarn database:migrate:prod
yarn command:prod upgrade
Sorry typed by heart
Antonio Pinto
Antonio Pintoβ€’5mo ago
Yah, but that was what I did
/app/packages/twenty-server $ yarn database:migrate:prod
query: SELECT * FROM current_schema()
query: CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
query: SELECT version();
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'metadata' AND "table_name" = '_typeorm_migrations'
query: SELECT * FROM "metadata"."_typeorm_migrations" "_typeorm_migrations" ORDER BY "id" DESC
No migrations are pending
query: SELECT * FROM current_schema()
query: CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
query: SELECT version();
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'core' AND "table_name" = '_typeorm_migrations'
query: SELECT * FROM "core"."_typeorm_migrations" "_typeorm_migrations" ORDER BY "id" DESC
No migrations are pending
/app/packages/twenty-server $
/app/packages/twenty-server $ yarn database:migrate:prod
query: SELECT * FROM current_schema()
query: CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
query: SELECT version();
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'metadata' AND "table_name" = '_typeorm_migrations'
query: SELECT * FROM "metadata"."_typeorm_migrations" "_typeorm_migrations" ORDER BY "id" DESC
No migrations are pending
query: SELECT * FROM current_schema()
query: CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
query: SELECT version();
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'core' AND "table_name" = '_typeorm_migrations'
query: SELECT * FROM "core"."_typeorm_migrations" "_typeorm_migrations" ORDER BY "id" DESC
No migrations are pending
/app/packages/twenty-server $
Prastoin
PrastoinOPβ€’5mo ago
Migrate is good, seems like problem comes from upgrade
Antonio Pinto
Antonio Pintoβ€’5mo ago
shall I delete this entry?
No description
Prastoin
PrastoinOPβ€’5mo ago
I got the issue About to push a fix, coming back to you in ~hour max
Antonio Pinto
Antonio Pintoβ€’5mo ago
(I have backups, just in case :P) No rush! I can live with this πŸ™‚ It's just me worried about the issues escalating in future versions πŸ˜› Thank you so much @prastoin
Prastoin
PrastoinOPβ€’5mo ago
All good no worries ! Seems like to be a bug not only scoped to self hosters πŸ˜› Thanks for your feedback
Antonio Pinto
Antonio Pintoβ€’5mo ago
That was fast. Testing 0.52.7
Prastoin
PrastoinOPβ€’5mo ago
Thanks @Antonio Pinto, please let me know !
Antonio Pinto
Antonio Pintoβ€’5mo ago
[Nest] 1247 - 05/05/2025, 3:15:00 PM LOG [UpgradeCommand] Upgrade for workspace 9827aaba-3e8c-4bd0-9620-4fe3a1124e08 completed. [Nest] 1247 - 05/05/2025, 3:15:00 PM LOG [UpgradeCommand] Command completed! Worked! Thanks! The update view also worked!
Prastoin
PrastoinOPβ€’5mo ago
Perfect ! Enjoy coding !
Antonio Pinto
Antonio Pintoβ€’5mo ago
It was fun to debug πŸ™‚
Prastoin
PrastoinOPβ€’5mo ago
Sorry for the inconvenience ! we're still working and investing on making self hosters migration goes smoother !
Antonio Pinto
Antonio Pintoβ€’5mo ago
Im aware! otherwiuse I wouldnt selfhost I like to find and try to debug those things.

Did you find this page helpful?