Skip to main content
Lewis_King
Gold ⭐️
Jul 13, 2022 4:24 AM UTC
Solved

Connection to localhost:5432 refused on nifi UI

Hello. Im currently running nifi and postgresql on docker compose. I have a problem setting up the DBCPConnectionPool controller. I keep getting the error message below.

 

화면 캡처 2022-07-13 131449.png

Below is my configuration for DBCPConnectionPool 

화면 캡처 2022-07-13 131603.png

I have checked the db name and docker compose yml file but nothing seems wrong on that end. What could be causing the problem here? 

Lewis_King
Gold ⭐️
Jul 13, 2022 4:46 AM UTC

Ok just in case anyone is suffering from the same problem as me.

Since I am running this on docker compose,

instead of localhost:5432, I changed it to <container name>:5432 and its working now 

1 reply

Lewis_King
Lewis_KingAuthorAnswer
Gold ⭐️
Jul 13, 2022 4:46 AM UTC

Ok just in case anyone is suffering from the same problem as me.

Since I am running this on docker compose,

instead of localhost:5432, I changed it to <container name>:5432 and its working now 

Translate