hapostgres / hapostgres/pg_auto_failover

How to customize the pgautofailover_replicator username and password when the second run at the first time

Open
#1,093 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.4k
Forks
142
Avg merge
5h 8m
Merged PRs (30d)
1

Description

```
11:30:54 12800 ERROR Connection to database failed: connection to server at "primary" (10.4.xx.xx), port 5432 failed: fe_sendauth: no password supplied
11:30:54 12800 ERROR Failed to connect to "postgres://pgautofailover_replicator@primary:5432/postgres?" after 10 attempts in 3568 ms, pg_autoctl stops retrying now
11:30:54 12800 WARN Failed to contact the primary node 1 "node_1" (primary:5432)

11:30:55 12800 WARN Failed to connect to "postgres://pgautofailover_replicator@primary:5432/postgres?", retrying until the server is ready
11:30:58 12800 ERROR Connection to database failed: connection to server at "primary" (10.4.xx.xx), port 5432 failed: fe_sendauth: no password supplied
11:30:58 12800 ERROR Failed to connect to "postgres://pgautofailover_replicator@primary:5432/postgres?" after 8 attempts in 3464 ms, pg_autoctl stops retrying now
11:30:58 12800 WARN Failed to contact the primary node 1 "node_1" (primary:5432)
11:30:59 12800 WARN Failed to connect to "postgres://pgautofailover_replicator@primary:5432/postgres?", retrying until the server is ready
11:31:02 12800 ERROR Connection to database failed: connection to server at "primary" (10.4.xx.xx), port 5432 failed: fe_sendauth: no password supplied
11:31:02 12800 ERROR Failed to connect to "postgres://pgautofailover_replicator@primary:5432/postgres?" after 7 attempts in 2471 ms, pg_autoctl stops retrying now
11:31:02 12800 WARN Failed to contact the primary node 1 "node_1" (primary:5432)
11:31:02 12800 INFO Still waiting for the to create our replication slot
11:31:02 12800 WARN Please make sure that the primary node is currently running `pg_autoctl run` and contacting the monitor.
11:31:03 12800 WARN Failed to connect to "postgres://pgautofailover_replicator@primary:5432/postgres?", retrying until the server is ready
11:31:06 12800 ERROR Connection to database failed: connection to server at "primary" (10.4.xx.xx), port 5432 failed: fe_sendauth: no password supplied
11:31:06 12800 ERROR Failed to connect to "postgres://pgautofailover_replicator@primary:5432/postgres?" after 7 attempts in 2857 ms, pg_autoctl stops retrying now
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.