T
Twentyβ€’3mo ago
Der Feind

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
charles
charlesβ€’3mo ago
Hi @Der Feind, you'll need to run the upgrades commands: - yarn database:migrate:prod - yarn command:prod upgrade-0.23
Der Feind
Der FeindOPβ€’3mo ago
I did. iβ€˜ll do again, when Iβ€˜m Home.
charles
charlesβ€’3mo ago
let me know how it goes πŸ™‚
Der Feind
Der FeindOPβ€’3mo ago
@charles Okay, I did the commands, and this is the complete output from the console. There are a lot of errors and stuff. πŸ˜„
charles
charlesβ€’3mo ago
@Der Feind do you have a redis cache setup ?
Der Feind
Der FeindOPβ€’3mo ago
No, I don't think so. In Plesk there are no settings for it, so I think it's not installed.
charles
charlesβ€’3mo ago
ok πŸ™‚ Have you run the 0.23 upgrade command? yarn command:prod upgrade-0.23 ? I think it's what might be missing
Der Feind
Der FeindOPβ€’3mo ago
@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 :/
charles
charlesβ€’3mo ago
Ok, let's schedule a call to fix it πŸ™‚ On what timezone are you?
Der Feind
Der FeindOPβ€’3mo ago
@charles Berlin πŸ™‚ The error still persists. I have no idea, what could be wrong... Can someone please help me?
charles
charlesβ€’3mo ago
Hi @Der Feind, sorry I was off last week. Would you be available tomorrow afternoon?
Der Feind
Der FeindOPβ€’3mo ago
Hi there, no problem πŸ™‚ Yes, I'm available until 17:00 local time.
charles
charlesβ€’3mo ago
perfect!
Der Feind
Der FeindOPβ€’3mo ago
I'm available from now on - just hit me up via PM πŸ™‚
charles
charlesβ€’3mo ago
Let's keep 5pm!
Der Feind
Der FeindOPβ€’3mo ago
ah at 5 pm, I gotta leave - I'm available until 5 pm - sorry.
charles
charlesβ€’3mo ago
haaaa ok! Let's do 4pm then, I have another slot
Der Feind
Der FeindOPβ€’3mo ago
Alright - where do we call?
charles
charlesβ€’3mo ago
on #voice
Der Feind
Der FeindOPβ€’3mo ago
Alright πŸ™‚ Thanks @charles for helping me fix this. It was a legacy problem within the database. Now it's fixed, and I'm happy!
charles
charlesβ€’3mo ago
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
Want results from more Discord servers?
Add your server