argilla-io / argilla

Argilla is a collaboration tool for AI engineers and domain experts to build high-quality datasets
https://docs.argilla.io
Apache License 2.0
4.04k stars 381 forks source link

[BUG-python/deployment] no pg_hba.conf entry for host #5620

Closed msciancalepore98 closed 1 month ago

msciancalepore98 commented 1 month ago

Hello,

I am trying to self host argilla using the provided docker-compose.yaml in the docs, but with no luck.

All the workers start successfully, except for the postgres one, that fails with this log:

2024-10-23 08:22:35 
2024-10-23 08:22:35 PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-10-23 08:22:35 
2024-10-23 08:24:33 
2024-10-23 08:24:33 PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-10-23 08:24:33 
2024-10-23 08:22:36 2024-10-23 06:22:36.011 UTC [1] LOG:  starting PostgreSQL 14.13 (Debian 14.13-1.pgdg120+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-10-23 08:22:36 2024-10-23 06:22:36.011 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-10-23 08:22:36 2024-10-23 06:22:36.011 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-10-23 08:22:36 2024-10-23 06:22:36.018 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-10-23 08:22:36 2024-10-23 06:22:36.025 UTC [26] LOG:  database system was shut down at 2024-10-23 06:17:25 UTC
2024-10-23 08:22:36 2024-10-23 06:22:36.041 UTC [1] LOG:  database system is ready to accept connections
2024-10-23 08:22:37 2024-10-23 06:22:37.911 UTC [33] FATAL:  no pg_hba.conf entry for host "172.18.0.6", user "postgres", database "argilla", no encryption

All other workers seem healthy from the logs.

Any ideas?

I am running it on apple M3 Sonoma 14.5.

msciancalepore98 commented 1 month ago

After literally 4 random "delete everything and re-deploy"... it worked. I think it would be very useful to add dependencies in the docker-compose.yaml (e.g. wait for healthy postgres or elasticsearch before spinning the webserver), also adding health checks as well. Closing.