You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed pigsty on machine_01(public IP: x.y.z.1) using default install script as single node cluster. Followed the steps in this doc, the pg-meta cluster
TASK [pgsql : check replication connectivity] *************************************
fatal: [x.y.z.2]: FAILED! => {"changed": true, "cmd": "/usr/pgsql/bin/psql -w -h x.y.z.1 -p 5432 -U replicator -d postgres -Atc 'SELECT 1;'\n", "delta": "0:00:00.031199", "end": "2024-10-18 15:21:54.403876", "msg": "non-zero return code", "rc": 2, "start": "2024-10-18 15:21:54.372677", "stderr": "psql: error: connection to server at \"x.y.z.1\", port 5432 failed: FATAL: no pg_hba.conf entry for host \"x.y.z.2\", user \"replicator\", database \"postgres\", SSL encryption\nconnection to server at \"x.y.z.1\", port 5432 failed: FATAL: no pg_hba.conf entry for host \"x.y.z.2\", user \"replicator\", database \"postgres\", no encryption", "stderr_lines": ["psql: error: connection to server at \"x.y.z.1\", port 5432 failed: FATAL: no pg_hba.conf entry for host \"x.y.z.2\", user \"replicator\", database \"postgres\", SSL encryption", "connection to server at \"x.y.z.1\", port 5432 failed: FATAL: no pg_hba.conf entry for host \"x.y.z.2\", user \"replicator\", database \"postgres\", no encryption"], "stdout": "", "stdout_lines": []}
What I have tried
$ bin/pgsql-hba pg-meta
Got error as well:
TASK [pgsql : reload postgres config] **********************************************************************************************************
changed: [x.y.z.1]
fatal: [x.y.z.2]: FAILED! => {"changed": true, "cmd": "/usr/pgsql/bin/pg_ctl -D /pg/data reload\n", "delta": "0:00:00.003757", "end": "2024-10-18 15:31:53.378339", "msg": "non-zero return code", "rc": 1, "start": "2024-10-18 15:31:53.374582", "stderr": "pg_ctl: directory \"/pg/data\" is not a database cluster directory", "stderr_lines": ["pg_ctl: directory \"/pg/data\" is not a database cluster directory"], "stdout": "", "stdout_lines": []}
Any help is welcome!
Tonny
The text was updated successfully, but these errors were encountered:
Basic Info
Steps
bin/pgsql-add <cls> <ip>
Detailed commands on
machine_01
Installing first node as single node cluster
Add second node
$ vi pigsty.yml # added new node definition to
Detailed changes in
pigsty.yml
Commands tried to add
machine_02
as replicaDetailed error info
What I have tried
Got error as well:
Any help is welcome!
Tonny
The text was updated successfully, but these errors were encountered: