Database connection refused in challenge #2
Closed this issue · 5 comments
scarolan commented
This happens during the migrating-static-database-secrets challenge. I updated the password in vault and attempted to restart the application with the kubectl rollout restart deployment
command but it appears the database is not accepting connections. Here's what shows up in the logs:
2021-06-15T17:39:49.927Z [ERROR] Unable to connect to database: error="dial tcp 127.0.0.1:5432: connect: connection refused"
2021-06-15T17:39:50.929Z [ERROR] Unable to connect to database: error="dial tcp 127.0.0.1:5432: connect: connection refused"
2021-06-15T17:39:51.932Z [ERROR] Unable to connect to database: error="dial tcp 127.0.0.1:5432: connect: connection refused"
rberlind commented
I also see problem with this. Specifically, the deployment of the products-api-deployment fails.
dahlke commented
Fixed this per Roger's comment above.