Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Changeserver has bug re-establishing connection to Postgres #54

Open
f1erro opened this issue Mar 6, 2017 · 2 comments
Open

Changeserver has bug re-establishing connection to Postgres #54

f1erro opened this issue Mar 6, 2017 · 2 comments

Comments

@f1erro
Copy link
Contributor

f1erro commented Mar 6, 2017

Changeserver was being denied connection to Postgres on the basis that there was not a pg_hba.conf entry for replication.

Once that was fixed, it connected to Postgres as expected, but would constantly (and unexpectedly) disconnect

time="2017-03-06T21:14:04Z" level=warning msg="Error connecting to Postgres. Retrying in 1m0s: FATAL FATAL 28000 no pg_hba.conf entry for replication connection from host \"130.211.127.19\", user \"ch
angeserver\", SSL off auth.c 471 ClientAuthentication "
time="2017-03-06T21:15:04Z" level=warning msg="Error connecting to Postgres. Retrying in 1m0s: FATAL FATAL 28000 no pg_hba.conf entry for replication connection from host \"130.211.127.19\", user \"ch
angeserver\", SSL off auth.c 471 ClientAuthentication "
time="2017-03-06T21:16:04Z" level=warning msg="Error connecting to Postgres. Retrying in 1m0s: FATAL FATAL 28000 no pg_hba.conf entry for replication connection from host \"130.211.127.19\", user \"ch
angeserver\", SSL off auth.c 471 ClientAuthentication "
time="2017-03-06T21:17:04Z" level=warning msg="Error connecting to Postgres. Retrying in 1m0s: FATAL FATAL 28000 no pg_hba.conf entry for replication connection from host \"130.211.127.19\", user \"ch
angeserver\", SSL off auth.c 471 ClientAuthentication "
time="2017-03-06T21:18:04Z" level=info msg="Connected to Postgres using replication slot \"ratc_2505620705112246567_a_gce\""
time="2017-03-06T21:19:04Z" level=warning msg="Disconnected from Postgres."
time="2017-03-06T21:19:04Z" level=info msg="Connected to Postgres using replication slot \"ratc_2505620705112246567_a_gce\""
time="2017-03-06T21:20:04Z" level=warning msg="Disconnected from Postgres."
time="2017-03-06T21:20:04Z" level=info msg="Connected to Postgres using replication slot \"ratc_2505620705112246567_a_gce\""
time="2017-03-06T21:21:04Z" level=warning msg="Disconnected from Postgres."
time="2017-03-06T21:21:04Z" level=info msg="Connected to Postgres using replication slot \"ratc_2505620705112246567_a_gce\""
time="2017-03-06T21:22:04Z" level=warning msg="Disconnected from Postgres."
time="2017-03-06T21:22:04Z" level=info msg="Connected to Postgres using replication slot \"ratc_2505620705112246567_a_gce\""
time="2017-03-06T21:23:04Z" level=warning msg="Disconnected from Postgres."
@gbrail
Copy link
Contributor

gbrail commented Mar 9, 2017 via email

@f1erro
Copy link
Contributor Author

f1erro commented Mar 31, 2017

I think this issue was

  • bad pg_hba
  • fix pg_hba

then, you reload config, and postgres has this connection problem as in the error logs

I think this just prevents live updates to pg_hba.conf

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants