DEV Community

Discussion on: 📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers

Collapse
 
dhinojosac profile image
Diego Hinojosa Cordova • Edited

Very useful tutorial.
I had an erro when run make docker.run , especially in migrate.up:
If anyone can help me, thanks in advance!


migrate -path C:/Users/dhinojosac/go/src/github.com/dhinojosac/tgc-api-template/tutorial-go-fiber-rest-api/platform/migrations -database "postgres://postgres:password@127.0.0.1/postgres?sslmode=disable" up
error: pq: password authentication failed for user "postgres"
make: *** [Makefile:25: migrate.up] Error 1


Enter fullscreen mode Exit fullscreen mode
Collapse
 
koddr profile image
Vic Shóstak • Edited

Hi,

Check your password for local DB user postgres, as error was said: pq: password authentication failed for user "postgres".

See Makefile's line 6 for more info.