D
Dokploy7mo ago
Bloom

Postgres authentication failure when trying to follow the contribution.md

I tried to clone the repo and created the .env and get the following error when running the setup: Migration failed PostgresError: password authentication failed for user "dokploy"
19 Replies
Bloom
BloomOP7mo ago
I cloned the example and double checked in the migration.ts the migration scripts seems to use the correct connection string so I must have messed something up creating the database, also tried recreating image and volume
Siumauricio
Siumauricio7mo ago
check if you have another postgres sql previously created
Bloom
BloomOP7mo ago
i removed all previous ones with docker service rm also the volume
Siumauricio
Siumauricio7mo ago
are you running on mac?
Bloom
BloomOP7mo ago
yes
Siumauricio
Siumauricio7mo ago
Did you have the .env?
Bloom
BloomOP7mo ago
yes
DATABASE_URL="postgres://dokploy:amukds4wi9001583845717ad2@localhost:5432/dokploy"
PORT=3000
NODE_ENV=development
DATABASE_URL="postgres://dokploy:amukds4wi9001583845717ad2@localhost:5432/dokploy"
PORT=3000
NODE_ENV=development
Siumauricio
Siumauricio7mo ago
What command did you runned?
Bloom
BloomOP7mo ago
pnpm run dokploy:setup
Siumauricio
Siumauricio7mo ago
What’s the error you have? The same as the title?
Bloom
BloomOP7mo ago
yea, I also cant connect to it manually with those credentials
Siumauricio
Siumauricio7mo ago
did you setup the setup script right?
Bloom
BloomOP7mo ago
what do you mean exactly? I ran in after installing
Siumauricio
Siumauricio7mo ago
pnpm run dokploy:setup
Bloom
BloomOP7mo ago
yes
Siumauricio
Siumauricio7mo ago
can you do docker service ls
Bloom
BloomOP7mo ago
x5zvm7q1zv1s dokploy-postgres replicated 1/1 postgres:16
q9cgo40rjyl5 dokploy-redis replicated 1/1 redis:7
378k845qzjch dokploy-traefik replicated 1/1 traefik:v3.1.2
x5zvm7q1zv1s dokploy-postgres replicated 1/1 postgres:16
q9cgo40rjyl5 dokploy-redis replicated 1/1 redis:7
378k845qzjch dokploy-traefik replicated 1/1 traefik:v3.1.2
Siumauricio
Siumauricio7mo ago
you created the .env in the apps/dokploy folder right?
Bloom
BloomOP7mo ago
correct

Did you find this page helpful?