Can't login after update -"Object metadata item "task" cannot be found in an array of 24 elements"
Hey Guys, I upgraded to 23.0 and got the error in the headline.
I also tried upgrading to 23.1 to eventually get rid of the error - but no chance.
I can't login - at first there was an Apollo-Error and then there is this error that "task" cannot be found.
Here is the error:
Unexpected Application Error! Object metadata item "task" cannot be found in an array of 24 elements Error: Object metadata item "task" cannot be found in an array of 24 elements at vn (https://odin.feind.zone/assets/index-DTUxZWpZ.js:1429:1168) at Rd (https://odin.feind.zone/assets/index-DTUxZWpZ.js:2319:807) at OE (https://odin.feind.zone/assets/index-DTUxZWpZ.js:4926:1064) at n2r (https://odin.feind.zone/assets/index-DTUxZWpZ.js:6036:5251) at mle (https://odin.feind.zone/assets/index-DTUxZWpZ.js:45:17091) at pNe (https://odin.feind.zone/assets/index-DTUxZWpZ.js:47:44356) at dNe (https://odin.feind.zone/assets/index-DTUxZWpZ.js:47:40048) at t4t (https://odin.feind.zone/assets/index-DTUxZWpZ.js:47:39971) at lL (https://odin.feind.zone/assets/index-DTUxZWpZ.js:47:39819) at dee (https://odin.feind.zone/assets/index-DTUxZWpZ.js:47:36149)I made all of the upgrade stuff in the console, but no changes. What can I do to get Twenty up and running again? Self-hosted and deployed via Portainer as a Stack (docker compose)
22 Replies
Hi @Der Feind, you'll need to run the upgrades commands:
- yarn database:migrate:prod
- yarn command:prod upgrade-0.23
I did. iβll do again, when Iβm Home.
let me know how it goes π
@charles Okay, I did the commands, and this is the complete output from the console.
There are a lot of errors and stuff. π
And after an upgrade to 0.23.3 there is this:
Unexpected Application Error!
Object metadata item "task" cannot be found in an array of 24 elements
Error: Object metadata item "task" cannot be found in an array of 24 elements
at ei (https://odin.feind.zone/assets/index-D2JumPzY.js:1431:1169)
at n1 (https://odin.feind.zone/assets/index-D2JumPzY.js:2320:808)
at WO (https://odin.feind.zone/assets/index-D2JumPzY.js:4954:1064)
at nfr (https://odin.feind.zone/assets/index-D2JumPzY.js:6086:5262)
at kRe (https://odin.feind.zone/assets/index-D2JumPzY.js:46:17160)
at T3e (https://odin.feind.zone/assets/index-D2JumPzY.js:48:3170)
at wxt (https://odin.feind.zone/assets/index-D2JumPzY.js:48:45275)
at bxt (https://odin.feind.zone/assets/index-D2JumPzY.js:48:40162)
at Ggn (https://odin.feind.zone/assets/index-D2JumPzY.js:48:40085)
at Roe (https://odin.feind.zone/assets/index-D2JumPzY.js:48:39932)
@Der Feind do you have a redis cache setup ?
No, I don't think so. In Plesk there are no settings for it, so I think it's not installed.
ok π
Have you run the 0.23 upgrade command?
yarn command:prod upgrade-0.23 ?
I think it's what might be missing
@charles Yes - I did. I just did the update to 0.24.0 - ran all the commands from the Upgrade Guide, but the Error still persists. It's still the same error :/
Ok, let's schedule a call to fix it π
On what timezone are you?
@charles Berlin π
The error still persists. I have no idea, what could be wrong... Can someone please help me?
Hi @Der Feind, sorry I was off last week. Would you be available tomorrow afternoon?
Hi there, no problem π Yes, I'm available until 17:00 local time.
perfect!
I'm available from now on - just hit me up via PM π
Let's keep 5pm!
ah at 5 pm, I gotta leave - I'm available until 5 pm - sorry.
haaaa ok!
Let's do 4pm then, I have another slot
Alright - where do we call?
on #voice
Alright π
Thanks @charles for helping me fix this. It was a legacy problem within the database. Now it's fixed, and I'm happy!
Wonderful! For future reference, issue was:
1) Make sure to run the upgrade commands from minor version to the next minor version (we cannot skip a minor version at the moment)
2) Issue with auditLog / objectMetadataId field (wrong standardId), it should be: 20202020-127b-409d-9864-0ec44aa9ed98
3) issue with the case of an enum related to messageChannel