Upgrading 0.2 to 0.21
Hello
I upgraded my test server and I get those errors:
Anything to do to correct that?
16 Replies
And in BD side:
Complete logs (server side):
Unsure if this is related, but I am getting errors to do with the google mail/calendar sync after upgrading.
`
at least the gmail part is related to #6189 and #6188 issues on github
oh it seems like you were the one that raised the issue 😄 or at least the username is similar
@charles Any command to sort this?
Hi!
So whenever we upgrade from a version to the next one, there is 3 things to do:
- yarn database:migrate:prod (core + metadata schema migration)
- yarn command:prod workspace:sync-metadata -w {myWorkspaceId} (workspace schema migration
- any command that is containing the version number (we are still working on a clear way to identify them). For 0.20 to 0.21 there is no such command to execute
Thanks @charles !
Why those commands could not be launched automaticaly when we update?
For the first command, it seems good:
For the second one, I just have a warning:
If I restart the container just after, I get the same errors
Command execution looks good
We don't want to launch these commands automatically for now as they could result in data destruction. We will work on a migration UI soon. Kind of an admin panel for Twenty that will smooth a lot the self hosting
what error are you facing?
have you relaunched your server?
it should be good :p
@charles
Ok I get it, I will launch the commands in test env and after in prod 🙂
I have those errors when I restart the server:
I don't use S3, firebase and others, so I don't think it's bad but I don't know
I upgraded ok 0.20.0 -> 0.21.2 with commands
yarn database:migrate:prod
yarn command:prod workspace:sync-metadata -w 26557ae2-33cc-4d38-8646-3b6f1031bd2b -f
(notice -f flag)
Only got the two normal warnings during sync
[Nest] 248 - 07/11/2024, 6:45:44 AM WARN [SyncWorkspaceMetadataCommand] Workspace contains 2 issues, sync has been forced.Although in the UI it says 0.21.0 still
You are all good!
the v0.21.2 is missing the patch number in the UI indeed!
@charles I don't see any specific error when I navigate after the upgrade. Only those above when I start the container
I have this error, don't know if related:
this is because you are using the sync driver to process queue jobs (MESSAGE_QUEUE_TYPE). In order to use the worker, you can use pg-boss or bull-mq instead 🙂
if you are familiar with redis you can set it to bull-mq and add redis_host and redis_port in env variable
(MESSAGE_QUEUE_TYPE is also configurable through env variable)
https://twenty.com/developers/section/self-hosting/self-hosting-var