ApolloError: Metadata version not found for workspace e5e52d90-a26e-4ff7-81a1-c295d5df5b0b
Hi Guys,
I'm self hosting twenty and when i try to create new workspace i get error from the title.
NotFoundException: Metadata version not found for workspace e5e52d90-a26e-4ff7-81a1-c295d5df5b0b
at RelationMetadataService.findManyRelationMetadataByFieldMetadataIds (/app/packages/twenty-server/dist/src/engine/metadata-modules/relation-metadata/relation-metadata.service.js:264:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DataLoader._batchLoadFn (/app/packages/twenty-server/dist/src/engine/dataloaders/dataloader.service.js:33:49) {
path: undefined,
locations: undefined,
extensions: {
code: 'INTERNAL_SERVER_ERROR',
response: 'Metadata version not found for workspace e5e52d90-a26e-4ff7-81a1-c295d5df5b0b'
}
I have executed migration on empty database and run nx database:reset
All this tasks completed. I have db schemas and initial data seed.
Any help would be greatly appreciated.
Thank you
3 Replies
I'm looking at source, it seems this is redis issue, i've checked my redis db and i can see bull keys there, which means twenty is connected to redis
I have injected manually metadata version 2
now its complaining about metadata map
fml
I've actually seen this in the logs too.
It's been on my list of things to dig into.
hi @zbrdar do you still require help here?
There might be an issue with your redis setup indeed. We are caching a lot of things in redis for performance reasons. If a metadata version is missing (this should never happen unless you flush your cache), it should auto recover
If this is not happening, I can help troubleshoot