T
Twenty2mo ago
hilarex

Cannot update to v1.8 from v1.7

I get the following error :
server-1 | [Nest] 57 - 10/23/2025, 9:20:39 AM LOG [UpgradeCommand] Initialized upgrade context with:
server-1 | - currentVersion (migrating to): 1.8.2
server-1 | - fromWorkspaceVersion: 1.7.0
server-1 | - 5 commands
server-1 | [Nest] 57 - 10/23/2025, 9:20:39 AM ERROR [UpgradeCommand] Error in workspace e94ee5b3-xxx-xxx-xxx-b4896cebd507: Unable to run the upgrade command. Aborting the upgrade process.
server-1 | Please ensure that all workspaces are on at least the previous minor version (1.7.0).
server-1 | If any workspaces are not on the previous minor version, roll back to that version and run the upgrade command again.
server-1 | [Nest] 57 - 10/23/2025, 9:20:39 AM ERROR [UpgradeCommand] undefined
server-1 | [Nest] 57 - 10/23/2025, 9:20:39 AM LOG [UpgradeCommand] Initialized upgrade context with:
server-1 | - currentVersion (migrating to): 1.8.2
server-1 | - fromWorkspaceVersion: 1.7.0
server-1 | - 5 commands
server-1 | [Nest] 57 - 10/23/2025, 9:20:39 AM ERROR [UpgradeCommand] Error in workspace e94ee5b3-xxx-xxx-xxx-b4896cebd507: Unable to run the upgrade command. Aborting the upgrade process.
server-1 | Please ensure that all workspaces are on at least the previous minor version (1.7.0).
server-1 | If any workspaces are not on the previous minor version, roll back to that version and run the upgrade command again.
server-1 | [Nest] 57 - 10/23/2025, 9:20:39 AM ERROR [UpgradeCommand] undefined
5 Replies
Prastoin
Prastoin2mo ago
Hey seems like your workspace is strill in 1.6 Please review its version at core.workspace.version Might be duplicated of https://discord.com/channels/1130383047699738754/1430251005534011523 ( depending on the upgrade failure root cause on your side though )
hilarex
hilarexOP2mo ago
ah yes, it's 1.6.7 I went back to 1.6.7, it's starting without error, but now when I use "v1.7" I get the following error :
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM LOG [WorkspaceSyncAgentService] Syncing standard agent.
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [WorkspaceSyncMetadataService] Sync of standard objects failed with:
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [WorkspaceSyncMetadataService] EntityPropertyNotFoundError: Property "createHandoffFromDefaultAgent" was not found in "AgentEntity". Make sure your query is correct.
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM WARN [UpgradeCommand] Error in workspace e94ee5b3-xxxx-xxxx-xxxx-b4896cebd507: Property "createHandoffFromDefaultAgent" was not found in "AgentEntity". Make sure your query is correct.
server-1 | PromiseMemoizer Event: A WorkspaceDataSource for workspace e94ee5b3-cb86-4cd3-abb5-b4896cebd507 is being cleared. Actual pool closure managed by PgPoolSharedService. Not calling dataSource.destroy().
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [UpgradeCommand] Error in workspace e94ee5b3-xxxx-xxxx-xxxx-b4896cebd507: Property "createHandoffFromDefaultAgent" was not found in "AgentEntity". Make sure your query is correct.
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [UpgradeCommand] undefined
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM LOG [UpgradeCommand] Command completed!
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM LOG [WorkspaceSyncAgentService] Syncing standard agent.
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [WorkspaceSyncMetadataService] Sync of standard objects failed with:
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [WorkspaceSyncMetadataService] EntityPropertyNotFoundError: Property "createHandoffFromDefaultAgent" was not found in "AgentEntity". Make sure your query is correct.
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM WARN [UpgradeCommand] Error in workspace e94ee5b3-xxxx-xxxx-xxxx-b4896cebd507: Property "createHandoffFromDefaultAgent" was not found in "AgentEntity". Make sure your query is correct.
server-1 | PromiseMemoizer Event: A WorkspaceDataSource for workspace e94ee5b3-cb86-4cd3-abb5-b4896cebd507 is being cleared. Actual pool closure managed by PgPoolSharedService. Not calling dataSource.destroy().
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [UpgradeCommand] Error in workspace e94ee5b3-xxxx-xxxx-xxxx-b4896cebd507: Property "createHandoffFromDefaultAgent" was not found in "AgentEntity". Make sure your query is correct.
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM ERROR [UpgradeCommand] undefined
server-1 | [Nest] 57 - 10/23/2025, 2:46:10 PM LOG [UpgradeCommand] Command completed!
But it's booting, should I ignore ? Ahh no, that's what blocking the migration
Prastoin
Prastoin2mo ago
Yes that's the root cause Could you please try running below command in your twenty-server
yarn database:migrate:prod
yarn database:migrate:prod
while being in 1.6 not 1.7 It's indeed a duplicated of https://discord.com/channels/1130383047699738754/1430251005534011523
hilarex
hilarexOP2mo ago
I managed to upgrade using version : 1.6.7 --> 1.7.6 --> 1.8 and running each time :
sudo docker compose down && sudo docker compose up --build --force-recreate
sudo docker compose down && sudo docker compose up --build --force-recreate
Prastoin
Prastoin2mo ago
Cool well done

Did you find this page helpful?