`Sorry, something went wrong` when opening task in 1.5.0

Hey, i upgraded our twenty from version 1.3.1 > 1.4.1 > 1.5.0 in docker. When i open task or any task filters they show this error, my console shows TypeError: c is undefined. I also noticed that you guys didn't push the latest minor versions (1.5.1 and 1.5.2) to the docker hub, maybe the issue fix is in there but i can't use it.
No description
53 Replies
Prastoin
Prastoin3mo ago
Hey @Caspersonn, could you please share any relevant twenty-server logs ? Unable to reproduce on my side 🤔 What's your workspace version in database ? ( core.workspace.version )
Caspersonn
CaspersonnOP3mo ago
Sure, these are some of my latest logs. We also encounter Uncompiled message detected! since version 1.4.1.
Caspersonn
CaspersonnOP3mo ago
Still at 1.3.1 which is weird... @Prastoin There is also some extra background information. We plan our upgrades for our production environment, to prepare for that i migrate the database to our non-production environment to test the upgrade. This is a different server with the same environment variables. Could this be a issue?
Prastoin
Prastoin3mo ago
Still at 1.3.1 which is weird...
High chances this is the root cause Mhmm I don't think that should be an issue, it's even more a good practice from my point of view What I would recommend here is, either restore a backup from 1.3.1 if you have one not that old, or directly try downgrading to 1.3.1 with the instance you've attempted to migrate to 1.5.1 with ( it's more risky but do-able ) From 1.3.1 re-attempt 1.4.1 upgrade, it should be failing regarding your workspace version. From this point please share whole twenty-server logs by dm or obfuscated if necessary. And we should be able to investigate further from here
Caspersonn
CaspersonnOP3mo ago
Okay. I think i will choose to start over with a new backup from our production environment, hopefully it will work this time. Thanks!
Prastoin
Prastoin3mo ago
Ok sounds good ! Feel free to reach out !
Caspersonn
CaspersonnOP3mo ago
@Prastoin. I already encounter an error when i run v1.3.1 on non-production with production database image.
[Nest] 57 - 09/09/2025, 9:22:51 AM LOG [DatabaseMigrationService] Database migrations completed successfully
[Nest] 57 - 09/09/2025, 9:22:51 AM LOG [UpgradeCommand] Running command on workspace d7858828-5f20-430a-ab76-e7555779126a 1/1
Computing new Datasource for cacheKey: d7858828-5f20-430a-ab76-e7555779126a-113 out of 0
[Nest] 57 - 09/09/2025, 9:22:52 AM WARN [UpgradeCommand] Error in workspace d7858828-5f20-430a-ab76-e7555779126a: Workspace metadata version mismatch detected for workspac
e d7858828-5f20-430a-ab76-e7555779126a. Latest version: 110. Built version: 113
[Nest] 57 - 09/09/2025, 9:22:52 AM LOG [UpgradeCommand] Command completed!
[Nest] 57 - 09/09/2025, 9:22:52 AM LOG [TypeORMService] Destroying main data source
[Nest] 57 - 09/09/2025, 9:22:52 AM ERROR [UpgradeCommand] Error in workspace d7858828-5f20-430a-ab76-e7555779126a: Workspace metadata version mismatch detected for workspac
e d7858828-5f20-430a-ab76-e7555779126a. Latest version: 110. Built version: 113
[Nest] 57 - 09/09/2025, 9:22:52 AM ERROR [UpgradeCommand] undefined
[Nest] 57 - 09/09/2025, 9:22:51 AM LOG [DatabaseMigrationService] Database migrations completed successfully
[Nest] 57 - 09/09/2025, 9:22:51 AM LOG [UpgradeCommand] Running command on workspace d7858828-5f20-430a-ab76-e7555779126a 1/1
Computing new Datasource for cacheKey: d7858828-5f20-430a-ab76-e7555779126a-113 out of 0
[Nest] 57 - 09/09/2025, 9:22:52 AM WARN [UpgradeCommand] Error in workspace d7858828-5f20-430a-ab76-e7555779126a: Workspace metadata version mismatch detected for workspac
e d7858828-5f20-430a-ab76-e7555779126a. Latest version: 110. Built version: 113
[Nest] 57 - 09/09/2025, 9:22:52 AM LOG [UpgradeCommand] Command completed!
[Nest] 57 - 09/09/2025, 9:22:52 AM LOG [TypeORMService] Destroying main data source
[Nest] 57 - 09/09/2025, 9:22:52 AM ERROR [UpgradeCommand] Error in workspace d7858828-5f20-430a-ab76-e7555779126a: Workspace metadata version mismatch detected for workspac
e d7858828-5f20-430a-ab76-e7555779126a. Latest version: 110. Built version: 113
[Nest] 57 - 09/09/2025, 9:22:52 AM ERROR [UpgradeCommand] undefined
Is this a known issue? The upgrade went smooth without any errors in the console, i still encounter the error i mentioned but nothing in the console or any logs about that. but i noticed if i create a separate view with no filter just like all tasks, then it does work.
Caspersonn
CaspersonnOP3mo ago
The other weird thing is that Assigned to Me changed to All Tasks as well. The image i attached is from our production environment running v1.3.1.
No description
Prastoin
Prastoin3mo ago
Mhm you might be facing a view corruption You've completly refactored the view lately to be store as core engine entities and not workspace schema level resources Could you please confirm your workspace verison in database has been upgraded too ? If yes manually fixing corrupted will do the trick
Caspersonn
CaspersonnOP3mo ago
The workspace version is updated and thus 1.5.0. Is this manaul fix gonna work for future updates? Or could we encounter corruption again?
Prastoin
Prastoin3mo ago
I don't think you will be prone to same issue in the future From my understanding you might had an issue with the existing views migration to the new core table The command handling the view migration might override existing ones if already migrated and mutated since the migration Are all your views broken ? What's not working exactly ? Lets investigate a little bit further before going for the easy manual fix
Caspersonn
CaspersonnOP3mo ago
Yeah. Our old database was very corrupted and i migrated manaully to a new database, that was about 3 months ago. All the views in tasks that where created before the migrations are broken, if i create a new one in tasks it does work. All the other views seem to be working fine.
Prastoin
Prastoin3mo ago
Mhmm Please proceed to create a backup of current state and try running:
yarn command:prod upgrade:1-5:migrate-views-to-core
yarn command:prod upgrade:1-5:migrate-views-to-core
in your twenty-server Please not that previous view deletion will be done later in the future, we prefer proceeding step by step before introducing any potential data loss
Caspersonn
CaspersonnOP3mo ago
Okay
Prastoin
Prastoin3mo ago
In a nutshell you will still have previous views in workspace schema, they won't get hydrated anymore tho If you re-run the command you might override any latest update made to colliding view
Caspersonn
CaspersonnOP3mo ago
Alright. Thanks for explaining. The backup is created and i ran the command.
Prastoin
Prastoin3mo ago
Deleted your message just in case It contained your view names Looks like your views has been migrated Any errors now ?
Caspersonn
CaspersonnOP3mo ago
Sadly yes, the same as before. Fair enough
Prastoin
Prastoin3mo ago
mhm what's not working exactly ? Any errors or stacktrace ? though the command has been introduced before 1.5, manual fixing seems like a bad idea now
Caspersonn
CaspersonnOP3mo ago
Nope. The frontend states Sorry, something went wrong Please refresh the page.. and the console TypeError: c is undefined
Prastoin
Prastoin3mo ago
Could you please run a quick yarn command:prod cache:flush ?
Caspersonn
CaspersonnOP3mo ago
Sure
Prastoin
Prastoin3mo ago
Nothing server side ?
Caspersonn
CaspersonnOP3mo ago
No nothing
Prastoin
Prastoin3mo ago
So this would be frontend side 🤔
Caspersonn
CaspersonnOP3mo ago
Yeah, seems like it. I tried chromium same issue slightly different error though And after a flush the error still persists The error on chromium is TypeError: Cannot read properties of undefined (reading 'type') Could there have been a migration at another version that failed and caused this?
Prastoin
Prastoin3mo ago
If your workspace version is up to date it should not Could you please share a find many view response with a brand new view and a legacy failing one ?
Caspersonn
CaspersonnOP3mo ago
if i may ask, how would i do that?
Prastoin
Prastoin3mo ago
nevermind I've been able to reproduce 👍
Caspersonn
CaspersonnOP3mo ago
Okay. Are you able to figure out the issue?
Prastoin
Prastoin3mo ago
Investigating !
Prastoin
Prastoin3mo ago
I've raised an issue @charles is taking it will let you know once we have a fix ! https://github.com/twentyhq/twenty/issues/14369
Prastoin
Prastoin3mo ago
Thanks for reporting that !
Caspersonn
CaspersonnOP3mo ago
Alright. Thanks @Prastoin!
Prastoin
Prastoin3mo ago
You're welcome ! Fix deploy in 1.5.3 ! Unfortunately 1.5.0 had a corrupted command, we've removed it from docker hub You will need to either restore a bakcup of a previous version or manually set to 1.4 your workspace version for the 1.5.3 upgrade to run the upgrade commands Please let me know
Caspersonn
CaspersonnOP3mo ago
Hey @prastoin. The issue is still there... i have upgraded from our last production version (1.3.1). So I have downloaded the sql database that upgraded to 1.5.3 run twenty with that locally now, i run in to the same error but i get more detail. Do you know anything about this?
No description
Prastoin
Prastoin3mo ago
Hey @Caspersonn, is your workspace version at 1.5.3 ?
Caspersonn
CaspersonnOP3mo ago
Jep
Prastoin
Prastoin3mo ago
The does not seem to be minified Which is a new problem but this gives more hint about the issue you're facing tho
Caspersonn
CaspersonnOP3mo ago
Yeah exactly
Prastoin
Prastoin3mo ago
Is it failing at the very same place ? Same view ? Are new views still working ?
Caspersonn
CaspersonnOP3mo ago
Yes at All Tasks only NEw views work, old ones don't
Prastoin
Prastoin3mo ago
Mhm
Prastoin
Prastoin3mo ago
Could you please inspect all your objectMetadataItems searching for an object having no fieldMetadataItems ? you can either search at your bootstrap app a graphql request ( or use https://chromewebstore.google.com/detail/graphql-network-inspector/ndlbedplllcgconngcnfmkadhokfaaln ) query ObjectMetadataItems { Or directly use the api playground of your twenty instance accessible from the settings in GRAPHQL CORE
GraphQL Network Inspector - Chrome Web Store
Simple and clean network inspector for GraphQL
Prastoin
Prastoin3mo ago
You guys did not activated the morph relation feature flag by any chance ?
Caspersonn
CaspersonnOP3mo ago
No, not that i know of will do Okay @prastoin. I found the query in the GraphQL Chrome plugin. and there is a lot of data in the response. Could i send to you?
Prastoin
Prastoin3mo ago
Yes of course be aware that it might contain some private info
Caspersonn
CaspersonnOP3mo ago
I will send it to you in a private dm
Prastoin
Prastoin3mo ago
Nothing wrong here, I suspect one of migrated view to make a reference to a deleted field
Caspersonn
CaspersonnOP3mo ago
I was thinking that ass wel, but how can i easily check that
Prastoin
Prastoin3mo ago
TSConfig Reference - Docs on every TSConfig option
From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project.
Caspersonn
CaspersonnOP3mo ago
@Prastoin. I have an update on this mater. I upgraded to the latest release which is now 1.6.7, but the error still occurs. There is now a more descriptive error. Could we take another look what is going on? This id seem to be a fieldMetadataId in table core."viewField" and thus links back to the table core."fieldMetadata".
No description
Prastoin
Prastoin3mo ago
Hey @Caspersonn, we had no identical reports nor experienced same issue on cloud prod As discussed I think you got a corrupted view somehow I would recommend manually removing it a re-creating a new one

Did you find this page helpful?