expaso/hassos-addons

Unable to Connect To DB (Port not listed)

Closed this issue · 2 comments

I have used your latest instructions to successfully install the add-on, however, it does not appear to open up the PostgreSQL port. See the screenshot below from a nmap scan.

image

Strangely, the logs show that port 5432 is listening.

image

I figured out my issue. You MUST set the listening port in the configuration. Even if you expect it to simply use the default port of 5432. This should probably be updated in the steps of your README.

image

Hi @tylerwmarrs, good that your issue is resolved!
The screenshot of the logs show you information from within the container.

To expose that port to the host, you indeed have to explicitly set the port number you want to expose it on (hence, that is why the port-number in the container is fixed to 5432/tcp.

I will add it to the readme.