T
Twenty3mo ago
Badr

Issues upgrading from v0.53 to v1.0

Hello, After upgrading from v0.53 to v1.0, I get the following error while trying to login: https://pastebin.com/40vsDv37 Anything I missed?
Pastebin
twenty-server-1 | query failed: SELECT DISTINCT "distinctAlias"...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
11 Replies
Prastoin
Prastoin3mo ago
Hello @Badr, have you upgraded incrementally ?
Badr
BadrOP3mo ago
Hi @prastoin no, straight from v0.53 to v1.0
Prastoin
Prastoin3mo ago
You need to upgrade incrementally up to 1.0, if not you would lose db migrations resulting in such error You need to change the TAG version to each version and restart your containers No need to run commands starting from 0.53, but still optionally have a look to your twenty instance after each upgrade just looking if it starts at least
Badr
BadrOP3mo ago
So v0.53 -> v0.54 -> v0.55 -> v0.60 -> v1.0 ? Or do I need to go through minor versions as well?
Prastoin
Prastoin3mo ago
Only minors taking the latest patch each time ! v0.55 we do serve images through vMAJOR.MINOR
Badr
BadrOP3mo ago
Ok. Can I fix it from where I am currently or do I need to start from the backup?
Prastoin
Prastoin3mo ago
I would highly restoring a v0.53 backup
Badr
BadrOP3mo ago
It worked, thanks! I think it's worth adding this incremental update requirement to the upgrade documentation 🙂
Prastoin
Prastoin3mo ago
Unless I'm mistaken it's written on the top section! Congrats enjoy coding !
Badr
BadrOP3mo ago
Correct, my bad!
If you want to upgrade your instance by few versions, e.g. from v0.33.0 to v0.35.0, you have to upgrade your instance sequentially, in this example from v0.33.0 to v0.34.0, then from v0.34.0 to v0.35.0.
If you want to upgrade your instance by few versions, e.g. from v0.33.0 to v0.35.0, you have to upgrade your instance sequentially, in this example from v0.33.0 to v0.34.0, then from v0.34.0 to v0.35.0.
Thanks a bunch for your help!
Prastoin
Prastoin3mo ago
No worries ! Have a great day !

Did you find this page helpful?