T
Twenty3w ago
hybaa

Workspace schema not found

Hi, after restarting services on self-hosted app - when trying to log in, i am getting error: Workspace schema not found although i have this schema in "metadata"."dataSource" table... Could someone help here ?
4 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS3w ago
Do you host it with Docker or without it?
hybaa
hybaaOP3w ago
With docker
ɃØĦɆᵾS
ɃØĦɆᵾS3w ago
If you don't have any important data, I'd suggest either: - restarting whole database - making a dump of database, purge database container and set it up again and restore database from dump
hybaa
hybaaOP3w ago
didn't help
2024-11-04T11:02:20.551257834Z at /app/packages/twenty-server/dist/src/engine/twenty-orm/factories/workspace-datasource.factory.js:52:31
2024-11-04T11:02:20.551263594Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-11-04T11:02:20.551268675Z at async CacheManager.execute (/app/packages/twenty-server/dist/src/engine/twenty-orm/storage/cache-manager.storage.js:23:23)
2024-11-04T11:02:20.551273515Z at async /app/packages/twenty-server/dist/src/engine/twenty-orm/factories/workspace-datasource.factory.js:42:32
2024-11-04T11:02:20.551278035Z at async TwentyORMGlobalManager.getRepositoryForWorkspace (/app/packages/twenty-server/dist/src/engine/twenty-orm/twenty-orm-global.manager.js:31:37)
2024-11-04T11:02:20.551282795Z at async TokenService.generateAccessToken (/app/packages/twenty-server/dist/src/engine/core-modules/auth/token/services/token.service.js:73:47)
2024-11-04T11:02:20.551287475Z at async AuthService.verify (/app/packages/twenty-server/dist/src/engine/core-modules/auth/services/auth.service.js:100:29)
2024-11-04T11:02:20.551292035Z at async AuthResolver.verify (/app/packages/twenty-server/dist/src/engine/core-modules/auth/auth.resolver.js:109:24) {
2024-11-04T11:02:20.551296555Z path: undefined,
2024-11-04T11:02:20.551300475Z locations: undefined,
2024-11-04T11:02:20.551304315Z extensions: {
2024-11-04T11:02:20.551308315Z code: 'INTERNAL_SERVER_ERROR',
2024-11-04T11:02:20.551312275Z response: 'Workspace Schema not found for workspace 34c8378a-216b-450b-bad8-a9178d2a28e6'
2024-11-04T11:02:20.551316675Z }
2024-11-04T11:02:20.551321035Z }
2024-11-04T11:02:20.551257834Z at /app/packages/twenty-server/dist/src/engine/twenty-orm/factories/workspace-datasource.factory.js:52:31
2024-11-04T11:02:20.551263594Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-11-04T11:02:20.551268675Z at async CacheManager.execute (/app/packages/twenty-server/dist/src/engine/twenty-orm/storage/cache-manager.storage.js:23:23)
2024-11-04T11:02:20.551273515Z at async /app/packages/twenty-server/dist/src/engine/twenty-orm/factories/workspace-datasource.factory.js:42:32
2024-11-04T11:02:20.551278035Z at async TwentyORMGlobalManager.getRepositoryForWorkspace (/app/packages/twenty-server/dist/src/engine/twenty-orm/twenty-orm-global.manager.js:31:37)
2024-11-04T11:02:20.551282795Z at async TokenService.generateAccessToken (/app/packages/twenty-server/dist/src/engine/core-modules/auth/token/services/token.service.js:73:47)
2024-11-04T11:02:20.551287475Z at async AuthService.verify (/app/packages/twenty-server/dist/src/engine/core-modules/auth/services/auth.service.js:100:29)
2024-11-04T11:02:20.551292035Z at async AuthResolver.verify (/app/packages/twenty-server/dist/src/engine/core-modules/auth/auth.resolver.js:109:24) {
2024-11-04T11:02:20.551296555Z path: undefined,
2024-11-04T11:02:20.551300475Z locations: undefined,
2024-11-04T11:02:20.551304315Z extensions: {
2024-11-04T11:02:20.551308315Z code: 'INTERNAL_SERVER_ERROR',
2024-11-04T11:02:20.551312275Z response: 'Workspace Schema not found for workspace 34c8378a-216b-450b-bad8-a9178d2a28e6'
2024-11-04T11:02:20.551316675Z }
2024-11-04T11:02:20.551321035Z }
is it cache/redis related? @ɃØĦɆᵾS i deleted everything and started from scratch and at the end restored db from dump - it worked eventually... i hope it doesn't happen randomly when i restart services next time
Want results from more Discord servers?
Add your server