Error: Connection terminated when creating a workspace
Hi, I am new here and after installing the self-hosted docker and creating a workspace like this:
I see an error in my Nestjs backend
Any help is appreciated,
const activatedWorkspace = await this.workspaceService.activateWorkspace(
user,
workspace,
{
displayName: options.workspaceName,
},
);const activatedWorkspace = await this.workspaceService.activateWorkspace(
user,
workspace,
{
displayName: options.workspaceName,
},
);I see an error in my Nestjs backend
query failed: INSERT INTO "workspace_7uj0qhoizrxe5byfv0l97izsw"."viewField"("fieldMetadataId", "position", "isVisible", "size", "viewId", "aggregateOperation") VALUES ($1, $2, $3, $4, $5, DEFAULT), ($6, $7, $8, $9, $10, DEFAULT), ($11, $12, $13, $14, $15, DEFAULT), ($16, $17, $18, $19, $20, DEFAULT), ($21, $22, $23, $24, $25, DEFAULT), ($26, $27, $28, $29, $30, DEFAULT) -- ...
error: Error: Connection terminated
/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219
throw new QueryFailedError_1.QueryFailedError(query, parameters, err);
^
QueryFailedError: Connection terminated
at PostgresQueryRunner.query (/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async InsertQueryBuilder.execute (/app/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
at async createWorkspaceViews (/app/packages/twenty-server/dist/src/engine/workspace-manager/standard-objects-prefill-data/prefill-views.js:77:13)
at async /app/packages/twenty-server/dist/src/engine/workspace-manager/standard-objects-prefill-data/standard-objects-prefill-data.js:22:39
at async EntityManager.transaction (/app/node_modules/typeorm/entity-manager/EntityManager.js:73:28) {
...
driverError: Error: Connection terminated
at /app/node_modules/pg/lib/client.js:526:17
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PostgresQueryRunner.query
...query failed: INSERT INTO "workspace_7uj0qhoizrxe5byfv0l97izsw"."viewField"("fieldMetadataId", "position", "isVisible", "size", "viewId", "aggregateOperation") VALUES ($1, $2, $3, $4, $5, DEFAULT), ($6, $7, $8, $9, $10, DEFAULT), ($11, $12, $13, $14, $15, DEFAULT), ($16, $17, $18, $19, $20, DEFAULT), ($21, $22, $23, $24, $25, DEFAULT), ($26, $27, $28, $29, $30, DEFAULT) -- ...
error: Error: Connection terminated
/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219
throw new QueryFailedError_1.QueryFailedError(query, parameters, err);
^
QueryFailedError: Connection terminated
at PostgresQueryRunner.query (/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async InsertQueryBuilder.execute (/app/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
at async createWorkspaceViews (/app/packages/twenty-server/dist/src/engine/workspace-manager/standard-objects-prefill-data/prefill-views.js:77:13)
at async /app/packages/twenty-server/dist/src/engine/workspace-manager/standard-objects-prefill-data/standard-objects-prefill-data.js:22:39
at async EntityManager.transaction (/app/node_modules/typeorm/entity-manager/EntityManager.js:73:28) {
...
driverError: Error: Connection terminated
at /app/node_modules/pg/lib/client.js:526:17
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PostgresQueryRunner.query
...Any help is appreciated,