Amiteshwar
I flushed my redis db and now i get > "Metadata version not found for workspace"
@prastoin do i need to run the normal yarn command at project root (like in local setup) before the above command? Running the docker container in ec2.
got this error upon running "yarn command:prod workspace:sync-metadata" in twenty-server:
Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation)
$ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ...
27 replies
I flushed my redis db and now i get > "Metadata version not found for workspace"
Hey @prastoin @Weiko, I get same error when users try to login. Errors while running in docker container. Works fine locally.:
Role assignment error for user <user_id> in workspace <workspace_id>: Metadata version not found for workspace <workspace_id>
[Nest] 1 - 04/19/2025, 5:26:00 AM ERROR [ExceptionsHandler] Metadata version not found for workspace <workspace_id>
Error: Metadata version not found for workspace <workspace_id>
27 replies
Help understanding the difference between `npx nx start` and `yarn command:prod`
@charles I'm facing an issue adding objects: https://discord.com/channels/1130383047699738754/1361021828293853499/1361021828293853499
"I added admin privileges for 2 users. These users are able to do everything but can't create/edit objects. But what's weird is that these 2 userIds have Admin access for their workspaces.
I'm using google login with access to 5 people and 2 admins.
In settings > workspace > data model:
they don't see Add Object button
they don't see 'Save' button when editting/adding a field
When using twenty code as is, I'm able to add/edit objects.
What could be the reason?"
18 replies
Architecture to Google OAuth
Thank you @Prastoin I appreciate your time help!
As I'm building on top of twenty, I'm not able to see the "Add Objects" button in settings. Also, I'm not able to save new fields to existing objects -- essentially, I don't see the blue Save button at the top right and hence can't save for the admin users.
Here's what I've done & what I suspect. I'd be grateful for direction / your input.
1. I Implemented OAuth Sign in w Google with access to only specific emails (made a custom SignInUp.tsx file & used that route in useCreateAppRouter.tsx for SignUp)
2. In twenty-server: Modified 2 files in /src/engine/core-modules/auth/services: auth.service.ts (bypassed all access checks for my emails) & sign-in-up.service.ts (assign existing workspaces to my users & set canImpersonate, canAccessFullAdminPanel = true)
The user has Admin role with "canUpdateAllSettings" set to "true".
I would appreciate your help
10 replies
Architecture to Google OAuth
Hey @Prastoin, I solved that but I have 2 questions as I'm trying to use twenty to gather information in siloed environments but admins could view all data. I think I could accomplish this in 2 way:
1. I'm trying to build object-level access (i.e. certain users seeing specific views). This is tough since it'll require modifying the Twenty UI to hide other view & not really secure
OR
2. Create different workspaces for different users. And, then aggregate data from different workspaces for data in the admin workspace where admin can see all data in one place.
Do you have any suggested approach to solve either approach?
I would appreciate any help
10 replies