Getting "User does not have permission" after Upgrade to v1.6.7

Hey! I just upgraded our TwentyCRM instance to the latest release and now I'm getting this error:
7 Replies
Dan6erbond
Dan6erbondOP2w ago
I also verified that the migrations ran, we were previously on v1.5.0:
Dan6erbond
Dan6erbondOP2w ago
Followed by:
Migration RemoveContentFromAgentChatMessage1757991657472 has been executed successfully.
query: ALTER TABLE "core"."indexMetadata" ADD "universalIdentifier" uuid
query: CREATE UNIQUE INDEX "IDX_b27c681286ac581f81498c5d4b" ON "core"."indexMetadata" ("workspaceId", "universalIdentifier")
query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1758038863448,"AddUniversalIdentifierToIndexMetadata1758038863448"]
Migration AddUniversalIdentifierToIndexMetadata1758038863448 has been executed successfully.
query: CREATE EXTENSION IF NOT EXISTS "unaccent"
query: CREATE OR REPLACE FUNCTION unaccent_immutable(text) RETURNS text AS $$
SELECT public.unaccent($1)
$$ LANGUAGE sql IMMUTABLE;
query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1758117800000,"ActivateUnaccentExtension1758117800000"]
Migration ActivateUnaccentExtension1758117800000 has been executed successfully.
query: COMMIT

[Nest] 56 - 09/22/2025, 10:34:08 AM LOG [UpgradeCommand] Database migrations completed successfully
Migration RemoveContentFromAgentChatMessage1757991657472 has been executed successfully.
query: ALTER TABLE "core"."indexMetadata" ADD "universalIdentifier" uuid
query: CREATE UNIQUE INDEX "IDX_b27c681286ac581f81498c5d4b" ON "core"."indexMetadata" ("workspaceId", "universalIdentifier")
query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1758038863448,"AddUniversalIdentifierToIndexMetadata1758038863448"]
Migration AddUniversalIdentifierToIndexMetadata1758038863448 has been executed successfully.
query: CREATE EXTENSION IF NOT EXISTS "unaccent"
query: CREATE OR REPLACE FUNCTION unaccent_immutable(text) RETURNS text AS $$
SELECT public.unaccent($1)
$$ LANGUAGE sql IMMUTABLE;
query: INSERT INTO "core"."_typeorm_migrations"("timestamp", "name") VALUES ($1, $2) -- PARAMETERS: [1758117800000,"ActivateUnaccentExtension1758117800000"]
Migration ActivateUnaccentExtension1758117800000 has been executed successfully.
query: COMMIT

[Nest] 56 - 09/22/2025, 10:34:08 AM LOG [UpgradeCommand] Database migrations completed successfully
I also see it upgraded our workspace:
[Nest] 56 - 09/22/2025, 10:34:08 AM LOG [UpgradeCommand] Upgrading workspace 80b92527-f336-411f-a115-5ded560d3151 from=1.5.0 to=1.6.7 1/1
[Nest] 56 - 09/22/2025, 10:34:08 AM LOG [UpgradeCommand] Upgrading workspace 80b92527-f336-411f-a115-5ded560d3151 from=1.5.0 to=1.6.7 1/1
Dan6erbond
Dan6erbondOP2w ago
I've also confirmed that I'm an admin:
No description
Prastoin
Prastoin2w ago
Hey @Dan6erbond could you please try clearing your twetny-server cache by running: - yarn command:prod cache:flush
Dan6erbond
Dan6erbondOP2w ago
I'll do that - FYI though I restarted the pod in K8s twice, wouldn't that already take care of the cache? Or is it in Redis? Done:
[Nest] 172 - 09/22/2025, 11:13:07 AM LOG [FlushCacheCommand] Flushing cache for pattern: *...
[Nest] 172 - 09/22/2025, 11:13:07 AM LOG [FlushCacheCommand] Cache flushed
[Nest] 172 - 09/22/2025, 11:13:07 AM LOG [FlushCacheCommand] Flushing cache for pattern: *...
[Nest] 172 - 09/22/2025, 11:13:07 AM LOG [FlushCacheCommand] Cache flushed
That worked, thanks so much @prastoin!
Prastoin
Prastoin2w ago
It's in redis So no impact Cool ! Seems like this upgrade requires a cache flush we should document it
Dan6erbond
Dan6erbondOP2w ago
Definitely would be good to know! But glad it was just a minor issue. 😂

Did you find this page helpful?