one click with docker compose
I am trying the setup here: https://twenty.com/developers/section/self-hosting/docker-compose
But this error is raised after trying to start the
twenty-server
container:
[Nest] 1 - 04/17/2025, 1:35:26 AM ERROR [TypeOrmModule] Unable to connect to the database (metadata). Retrying (1)...
error: password authentication failed for user "postgres"
at Parser.parseErrorMessage (/app/node_modules/pg/node_modules/pg-protocol/dist/parser.js:283:98)
at Parser.handlePacket (/app/node_modules/pg/node_modules/pg-protocol/dist/parser.js:122:29)
at Parser.parse (/app/node_modules/pg/node_modules/pg-protocol/dist/parser.js:35:38)
at Socket.<anonymous> (/app/node_modules/pg/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
I've fiddled around with the .env variables but the instructions also say not to mess with them. Am I missing anything here?1 Reply
Seems like you're unable to connect to the db
Please update pg database password
You can also try to connect to your db agnostically of twenty in the first place to assert you re using the correct one