Cloud-RF / tak-server

TAK Server docker setup
GNU General Public License v3.0
153 stars 52 forks source link

Exception during pool initialization #11

Closed berkay-karlik closed 2 years ago

berkay-karlik commented 2 years ago

Hello, I was trying to setup tak-server following the steps instructed in README.md.

The error I got:

[main] ERROR com.bbn.tak.schema.SchemaManager - Failed to initalize pool: Connection to tak-database:5432 refused. Check that hostname and port are correct and the postmaster is accepting TCP/IP connections. Connection to tak-database:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

The tak release used: takserver-docker-4.7-RELEASE-18.zip machine tested:

I tried two different OS since the recommended one by tak was RHEL but README.md mentions Debian as well.

in RHEL 8: image in Debian 11: image

I'm stuck here during ./script/setup.sh, any help greatly appreciated.

patrykCRF commented 2 years ago

Hi, we were able to reproduce the error and after investigation, we have discovered that the "pg_hba.conf" file has been changed in the latest release by TAK. The relevant changes were made and our latest version should run without an issue. Details of the change:

diff pg_hba.conf ./tak/db-utils/pg_hba.conf 
83d82
< host    all             all             172.0.0.0/8             md5
berkay-karlik commented 2 years ago

Many thanks for returning in such short notice. Is this fix currently available in public? If not when would it be? Edit: oh I just saw it already is public, isn't it? testing now.

berkay-karlik commented 2 years ago

it works with the latest version, thank you for the hard work.