Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jGRqY-0007zn-Um for pgsql-admin@arkaria.postgresql.org; Mon, 23 Mar 2020 18:30:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jGRqX-0006Hc-Gu for pgsql-admin@arkaria.postgresql.org; Mon, 23 Mar 2020 18:30:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jGRqW-0006G9-U2 for pgsql-admin@lists.postgresql.org; Mon, 23 Mar 2020 18:30:45 +0000 Received: from sonic310-21.consmr.mail.gq1.yahoo.com ([98.137.69.147]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jGRqT-0002NA-8b for pgsql-admin@postgresql.org; Mon, 23 Mar 2020 18:30:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1584988237; bh=zEkxvZ73JWOyHXRdNp0UH5euagWHnZ3K02ExJwQiAiM=; h=Date:From:Reply-To:To:Cc:Subject:References:From:Subject; b=uUim5WEaoiY2kVpf5JOsK+wHkwn2fccqkiHomCKoqJwI+jETxGbwvKS2TVs9DA+NF0aVSqjThgE/eilEX7UUJMiNOyt+WgGrpvdyejEOFMjKIGMy6ONEOuMGhD9t2tjFy9GwHgv4BOqKPfkCrSDdqoOAwcZOPz2jP3AxTX4eZpw2ngXcnCAnk3g8A02utCzL4152IMQPKE5JfzaftOxAgQkguKkrRzSUUY4toVAYF877XMs/KJBjHl1Kdw5V/KpUPHZ1w5+M31lLd5pZXhW0dQQEzV8K0uiXEQCbjpecgcyw9aY67Gx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99m6zBsvF_vFrccM1n7M3c3XpZ7d6yFd nEcNHVVWm84ekEHYIhyXnUNUUvehuCzvCYpHWejZlFsMGtymrwBYzI6_YjSYVFJBVTpwof24R5aH aPmp8MV9J4ilRgAq3wrD9f8_bkYnVHJuXlpszSoKnICLjjPi3JfTQRFhmSLpp0bUTYZXNNYDRZ6. 26ntuPrzjAeAQj6O.p1n9tQuQGuZDti6YhIe4PIf8G_mYXNeJ.8QV4auH6SKUbKFc6bi1uErJB2L xCaHlkcstD9k_M8nY811exNTEGHWcP_Prn8fh2sdfl1i.x043OzfrIfTO4igotBCuJZnUbfpKXyy dY8.HP.dref9YczlixYaZO53GfKp.FALT Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Mon, 23 Mar 2020 18:30:37 +0000 Date: Mon, 23 Mar 2020 18:30:36 +0000 (UTC) From: Douglas Reed Reply-To: Douglas Reed To: "pgsql-admin@postgresql.org" Cc: Matthew Couper , Andrew Jobson Message-ID: <36847976.780175.1584988236276@mail.yahoo.com> Subject: Problem with replication MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_780174_823238585.1584988236274" References: <36847976.780175.1584988236276.ref@mail.yahoo.com> X-Mailer: WebService/1.1.15518 YMailNorrin Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36 Content-Length: 6246 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_780174_823238585.1584988236274 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi We are running Pg Version 9.6 On OS Centos 7 running on a VM (Nutanix) We are trying to build a slave server on this platform. The relevant IP ent= ry for replication has been placed in pg_hba.conf on the master. We run pg_= basebackup successfully and then set up recovery.conf etc and re-start=C2= =A0the slave database. It seems to process the WALs and then enter the read= only state when it then generates the following errors; Mar 23 15:22:48 xds-data1-temp postgres[13072]: [2-1] user=3D,db=3D,app=3Dc= lient=3D LOG:=C2=A0 database system is ready to accept read only connection= sMar 23 15:22:49 xds-data1-temp postgres[13083]: [3-1] user=3D[unknown],db= =3D[unknown],app=3D[unknown]client=3D[local] LOG:=C2=A0 connection received= : host=3D[local]Mar 23 15:22:49 xds-data1-temp postgres[13083]: [4-1] user= =3Dpostgres,db=3D[unknown],app=3D[unknown]client=3D[local] FATAL:=C2=A0 no = pg_hba.conf entry for replication connection from host "[local]", user "pos= tgres", SSL offMar 23 15:22:49 xds-data1-temp postgres[13082]: [3-1] user= =3D,db=3D,app=3Dclient=3D FATAL:=C2=A0 could not connect to the primary ser= ver: FATAL:=C2=A0 no pg_hba.conf entry for replication connection from host= "[local]", user "postgres", SSL offMar 23 15:22:49 xds-data1-temp postgres= [13082]: [3-2]Mar 23 15:22:49 xds-data1-temp postgres[13085]: [3-1] user=3D= [unknown],db=3D[unknown],app=3D[unknown]client=3D[local] LOG:=C2=A0 connect= ion received: host=3D[local]Mar 23 15:22:49 xds-data1-temp postgres[13085]:= [4-1] user=3Dpostgres,db=3D[unknown],app=3D[unknown]client=3D[local] FATAL= :=C2=A0 no pg_hba.conf entry for replication connection from host "[local]"= , user "postgres", SSL offMar 23 15:22:49 xds-data1-temp postgres[13084]: [= 3-1] user=3D,db=3D,app=3Dclient=3D FATAL:=C2=A0 could not connect to the pr= imary server: FATAL:=C2=A0 no pg_hba.conf entry for replication connection = from host "[local]", user "postgres", SSL off We know that the entry is in the hba and have checked for typos, but one th= ing that does stick out with one line on the message is;=C2=A0 =C2=A0 =C2=A0 FATAL:=C2=A0 no pg_hba.conf entry for replication connection = from host "[local]"=C2=A0 Other messages I have seen in the past would normally have an IP address wh= ere is says "[local]" Any ideas as to where we might be going wrong?=C2=A0 =C2=A0=C2=A0 Many thanks Doug Reed=C2=A0dougreed765@yahoo.com=C2=A007973-132664https://uk.linkedin.c= om/pub/douglas-reed/33/326/2b ------=_Part_780174_823238585.1584988236274 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi

We are running Pg Version 9.6

On OS Centos 7 running on a VM (Nutanix)

=
We are trying to build a slave server on this platform. The rele= vant IP entry for replication has been placed in pg_hba.conf on the master.= We run pg_basebackup successfully and then set up recovery.conf etc and re= -start 
the slave database. It seems to process the WALs and= then enter the read only state when it then generates the following errors= ;

Mar 23 15:22:48 xds-data1-temp postgres[13072]: = [2-1] user=3D,db=3D,app=3Dclient=3D LOG:  database system is ready to = accept read only connections
Mar 23 15:22:49 xds-data1-temp postg= res[13083]: [3-1] user=3D[unknown],db=3D[unknown],app=3D[unknown]client=3D[= local] LOG:  connection received: host=3D[local]
Mar 23 15:2= 2:49 xds-data1-temp postgres[13083]: [4-1] user=3Dpostgres,db=3D[unknown],a= pp=3D[unknown]client=3D[local] FATAL:  no pg_hba.conf entry for replic= ation connection from host "[local]", user "postgres", SSL off
Ma= r 23 15:22:49 xds-data1-temp postgres[13082]: [3-1] user=3D,db=3D,app=3Dcli= ent=3D FATAL:  could not connect to the primary server: FATAL:  n= o pg_hba.conf entry for replication connection from host "[local]", user "p= ostgres", SSL off
Mar 23 15:22:49 xds-data1-temp postgres[13082]:= [3-2]
Mar 23 15:22:49 xds-data1-temp postgres[13085]: [3-1] user= =3D[unknown],db=3D[unknown],app=3D[unknown]client=3D[local] LOG:  conn= ection received: host=3D[local]
Mar 23 15:22:49 xds-data1-temp po= stgres[13085]: [4-1] user=3Dpostgres,db=3D[unknown],app=3D[unknown]client= =3D[local] FATAL:  no pg_hba.conf entry for replication connection fro= m host "[local]", user "postgres", SSL off
Mar 23 15:22:49 xds-da= ta1-temp postgres[13084]: [3-1] user=3D,db=3D,app=3Dclient=3D FATAL:  = could not connect to the primary server: FATAL:  no pg_hba.conf entry = for replication connection from host "[local]", user "postgres", SSL off

We know that the entry is in the hba and have checke= d for typos, but one thing that does stick out with one line on the message= is; 

    FATAL:  no pg_hba.co= nf entry for replication connection from host "[local]" 
Other messages I have seen in the past would normally have an I= P address where is says "[local]"

Any ideas as to = where we might be going wrong?    

=
Many thanks





Doug R= eed 
dougreed765@yahoo.com 
07973-132664
= https://uk.li= nkedin.com/pub/douglas-reed/33/326/2b
= ------=_Part_780174_823238585.1584988236274--