Jérémy
Try to setup Twenty on local
I have this error message
Error during migration run:
error: role "postgres" does not exist
at Parser.parseErrorMessage (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69)
at Parser.handlePacket (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21)
at Parser.parse (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30)
at Socket.<anonymous> (/Users/cap/Documents/www/twenty-main/node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Socket.Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 100,
severity: 'FATAL',
code: '28000',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'miscinit.c',
line: '710',
routine: 'InitializeSessionUserId'
}
Warning: command "ts-node ../../node_modules/typeorm/cli.js migration:run -d src/database/typeorm/metadata/metadata.datasource.ts" exited with non-zero status code
———————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Ran target typeorm for project twenty-server (1s)
With additional flags:
migration:run
--d=src/database/typeorm/metadata/metadata.datasource.ts
✖ 1/1 failed
✔ 0/1 succeeded [0 read from cache]
25 replies
Try to setup Twenty on local
Redis wasn't properly started, that was my mistake.
Now, when I run the command npx nx database:reset twenty-server, I get the following errors:
NX Ran target typeorm for project twenty-server (1s)
With additional flags:
migration:run --d=src/database/typeorm/metadata/metadata.datasource
✖ 1/1 failed
✔ 0/1 succeeded [0 read from cache]
Warning: command "nx typeorm -- migration:run -d src/database/typeorm/metadata/metadata.datasource" exited with non-zero status code
NX Ran target database:migrate for project twenty-server and 2 task(s) they depend on (2s)
✖ 1/3 failed
✔ 2/3 succeeded [2 read from cache]
Warning: command "nx database:migrate" exited with non-zero status code
NX Ran target database:reset for project twenty-server and 2 task(s) they depend on (33s)
✖ 1/3 failed
✔ 2/3 succeeded [2 read from cache]
😅25 replies