Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing pg_hba.conf entry #591

Closed
steamme opened this issue Dec 23, 2024 · 4 comments
Closed

missing pg_hba.conf entry #591

steamme opened this issue Dec 23, 2024 · 4 comments

Comments

@steamme
Copy link

steamme commented Dec 23, 2024

Describe the bug
The dawarich_app container does not start with a fresh installation. The following error message appears. And the container stay in on a unhealthy status.

Version
0.21.0

To Reproduce
Steps to reproduce the behavior:

  1. Start with docker compose up all Containers

Expected behavior
A running dawarich_app container.

Logs
https://pastebin.com/raw/WR29yyw6

Additional context
Tested on a fresh Ubuntu24 vm.

@greenup
Copy link

greenup commented Dec 31, 2024

I have also experienced this behavior, (having now gotten a brand-new fresh docker-compose.yml to overcome my postgresql.conf.example problem)

stays unhealthy, outputs a log line like this:
...
2024-12-31T04:26:16.692726035Z PG::ConnectionBad: connection to server at "172.18.0.3", port 5432 failed: FATAL: no pg_hba.conf entry for host "172.18.0.4", user "postgres", database "postgres", no encryption (PG::ConnectionBad)
...

@Freika
Copy link
Owner

Freika commented Jan 1, 2025

I tried to reproduce it by setting up new instance on my hardware and haven't succeeded, is there something unusual about your OS/hardware?

@greenup
Copy link

greenup commented Jan 1, 2025

not that I know of?
mine is Ubuntu 22.04 64 Bit
uname -a
Linux racknerd-xyz 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

docker version
Client: Docker Engine - Community
Version: 27.4.1
API version: 1.47
Go version: go1.22.10
Git commit: b9d17ea
Built: Tue Dec 17 15:45:42 2024
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 27.4.1
API version: 1.47 (minimum version 1.24)
Go version: go1.22.10
Git commit: c710b88
Built: Tue Dec 17 15:45:42 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.24
GitCommit: 88bf19b2105c8b17560993bee28a01ddc2f97182
runc:
Version: 1.2.2
GitCommit: v1.2.2-0-g7cb3632
docker-init:
Version: 0.19.0
GitCommit: de40ad0

running as root, with no docker containers running, and the only other image in the system being "hello world", I did:
#mkdir /opt/dawarich;cd /opt/dawarich
#curl -O https://raw.githubusercontent.com/Freika/dawarich/refs/heads/master/docker-compose.yml
(succeeded)

docker compose up -d

root@racknerd-d0aa5d1:/opt/dawarich# docker compose up -d
[+] Running 32/4
✔ dawarich_db Pulled 19.3s
✔ dawarich_redis Pulled 12.8s
✔ dawarich_app Pulled 47.4s
✔ dawarich_sidekiq Pulled 47.4s
[+] Running 3/4
✔ Container dawarich_db Healthy 7.7s
✔ Container dawarich_redis Healthy 7.7s
⠧ Container dawarich_app Error 53.3s
✔ Container dawarich_sidekiq Created 0.0s
dependency failed to start: container dawarich_app is unhealthy

I used apt-get to install docker, I think just before Christmas.
haven't messed with any firewall rules, not sure about any defaults...

@steamme
Copy link
Author

steamme commented Jan 4, 2025

I have now tried the whole thing again with the latest version of docker-compose.yml - now everything starts as it should.

@steamme steamme closed this as completed Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants