Not able to Setup dev environment

Hi , I was trying to set up dev environment but every time i am getting this error message Error during migration run: error: password authentication failed for user "postgres" at Parser.parseErrorMessage (/home/priyanshu/workstation/TWENTY/twenty/node_modules/pg/node_modules/pg-protocol/src/parser.ts:369:69) at Parser.handlePacket (/home/priyanshu/workstation/TWENTY/twenty/node_modules/pg/node_modules/pg-protocol/src/parser.ts:188:21) at Parser.parse (/home/priyanshu/workstation/TWENTY/twenty/node_modules/pg/node_modules/pg-protocol/src/parser.ts:103:30) at Socket.<anonymous> (/home/priyanshu/workstation/TWENTY/twenty/node_modules/pg/node_modules/pg-protocol/src/index.ts:7:48) at Socket.emit (node:events:518:28) at Socket.emit (node:domain:489:12) at addChunk (node:internal/streams/readable:561:12) at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) at Socket.Readable.push (node:internal/streams/readable:392:5) at TCP.onStreamRead (node:internal/stream_base_commons:189:23) { length: 104, severity: 'FATAL', code: '28P01', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'auth.c', line: '335', routine: 'auth_failed' } Warning: command "ts-node --transpile-only -P tsconfig.json ../../node_modules/typeorm/cli.js migration:run -d src/database/typeorm/core/core.datasource" exited with non-zero status code NX Running target typeorm for project twenty-server failed Failed tasks: - twenty-server:typeorm Hint: run the command with --verbose for more details. "I am trying to build this on WSL and i am following official documentation from website
No description
5 Replies
thomast
thomast2w ago
Hi, are you using docker or local install? Did you set up your env variables?
Priyanshu
PriyanshuOP2w ago
Yes i did set up my env variables and i am using WSL with ubuntu 22 destro , i am not using docker.
thomast
thomast2w ago
So you followed https://twenty.com/developers/local-setup#step-3:-set-up-a-postgresql-database ? Can you access the DB at localhost:5432, user postgres and password postgres ?
Twenty - Local Setup
The guide for contributors (or curious developers) who want to run Twenty locally (on laptop, PC...)
Priyanshu
PriyanshuOP2w ago
Yes I am following official docs but I tried I am not able to access data base at localhost
thomast
thomast2w ago
Then what option did you follow for postgres ? did you run into an error?

Did you find this page helpful?