Skip to content

WORKSPACE_SCHEMA_NOT_FOUND when updating to v0.54.6 #12270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jordan-chalupka opened this issue May 23, 2025 · 5 comments
Open

WORKSPACE_SCHEMA_NOT_FOUND when updating to v0.54.6 #12270

jordan-chalupka opened this issue May 23, 2025 · 5 comments

Comments

@jordan-chalupka
Copy link
Contributor

Bug Description

After updating to v0.54.6 (commit 5428348) I get an error when trying to log in to my self hosted instance,

Image
2025-05-23T17:28:28.913356506Z     TwentyORMException [Error]: Workspace Schema not found for workspace 99449ada-8490-4ee4-8bca-ab947cb1c015
2025-05-23T17:28:28.913359686Z         at /app/packages/twenty-server/dist/src/engine/twenty-orm/factories/workspace-datasource.factory.js:79:23
2025-05-23T17:28:28.913368536Z         at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-05-23T17:28:28.913373686Z         at async /app/packages/twenty-server/dist/src/engine/twenty-orm/storage/promise-memoizer.storage.js:29:31
2025-05-23T17:28:28.913378786Z         at async WorkspaceDatasourceFactory.create (/app/packages/twenty-server/dist/src/engine/twenty-orm/factories/workspace-datasource.factory.js:76:37)
2025-05-23T17:28:28.913382066Z         at async TwentyORMGlobalManager.getRepositoryForWorkspace (/app/packages/twenty-server/dist/src/engine/twenty-orm/twenty-orm-global.manager.js:34:37)
2025-05-23T17:28:28.913385546Z         at async AccessTokenService.generateAccessToken (/app/packages/twenty-server/dist/src/engine/core-modules/auth/token/services/access-token.service.js:64:47)
2025-05-23T17:28:28.913410286Z         at async AuthService.verify (/app/packages/twenty-server/dist/src/engine/core-modules/auth/services/auth.service.js:154:29)
2025-05-23T17:28:28.913423336Z         at async AuthResolver.getAuthTokensFromLoginToken (/app/packages/twenty-server/dist/src/engine/core-modules/auth/auth.resolver.js:208:16) {
2025-05-23T17:28:28.913426496Z       code: 'WORKSPACE_SCHEMA_NOT_FOUND',
2025-05-23T17:28:28.913429326Z       extensions: {}
2025-05-23T17:28:28.913432106Z     }
2025-05-23T17:28:28.913434736Z   ]

Expected behavior

I should be able to log in after an upgrade.

Technical inputs

I ran the following commands:

yarn database:migrate:prod
yarn command:prod upgrade
@FelixMalfait
Copy link
Member

Could you try cleaning up your redis cache?
npx nx run twenty-server:command cache:flush

@muety
Copy link

muety commented May 24, 2025

Same issue here. Logs show this:

Image

Attempting to run the command you mentioned yields the error Could not find Nx modules in this workspace..

Running yarn command:prod cache:flush instead, followed by yarn command:prod upgrade yields the same error as shown in the log screenshot above.

@jordan-chalupka
Copy link
Contributor Author

I'm seeing the same thing as @muety.

I think

yarn command:prod cache:flush
yarn command:prod upgrade

are the correct commands to run in this context - but they don't appear to be resolving the workspace not found issue. Any other advice on what to try? This is currently blocking me from being able to complete the update to 0.54

@pedrogarciasbold
Copy link

same here

@jordan-chalupka
Copy link
Contributor Author

@FelixMalfait Any other advice on a fix? I'm kind of blocked on upgrades by this, so any suggestions would be appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Planned
Development

No branches or pull requests

4 participants