Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjVyv-0003vu-C4 for pgsql-admin@arkaria.postgresql.org; Wed, 29 Oct 2014 16:20:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjVyu-0007OH-PB for pgsql-admin@arkaria.postgresql.org; Wed, 29 Oct 2014 16:20:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjVyr-0007GT-KL for pgsql-admin@postgresql.org; Wed, 29 Oct 2014 16:20:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjVym-0001Bf-Oz for pgsql-admin@postgresql.org; Wed, 29 Oct 2014 16:20:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s9TGK97w025755; Wed, 29 Oct 2014 12:20:10 -0400 From: Tom Lane To: John Scalia cc: Shreeyansh dba , "pgsql-admin@postgresql.org" Subject: Re: A local replication entry In-reply-to: <54510950.90100@gmail.com> References: <5450E937.2070408@gmail.com> <5450FB3D.7030008@gmail.com> <23872.1414595142@sss.pgh.pa.us> <54510950.90100@gmail.com> Comments: In-reply-to John Scalia message dated "Wed, 29 Oct 2014 11:35:44 -0400" Date: Wed, 29 Oct 2014 12:20:09 -0400 Message-ID: <25754.1414599609@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org John Scalia writes: > I thought you might be correct, Tom, but I double-checked the postgresql.conf file and listen_addresses = "*". I had forgotten to look to see if netstat reported: > tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN > But even with that established, the pg_basebackup using: > /usr/pgsql-9.3/bin/pg_basebackup -D - -h 127.0.0.1 -Ft -z -c fast -l hourly.backup > backup_file.gz or > /usr/pgsql-9.3/bin/pg_basebackup -D - -h 127.0.0.1 -U postgres -Ft -z -c fast -l hourly.backup > backup_file.gz > are still failing with: > pg_basebackup: could not connect to server: FATAL: no pg_hba.conf entry for replication connection from host "127.0.0.1", user "postgres", SSL off > The line from the pg_hba.conf file currently reads: > host replication postgres 127.0.0.1/32 trust > I really don't see where the problem is, and I know I've done a reload after every change in the pg-hba.conf. Everything that you've said looks fine, so the problem is somewhere you're not looking :-(. At this point, I'd wonder if the pg_hba.conf file you're changing is the same one the postmaster is reading. You might try confirming that directly by inserting a syntactically-incorrect entry and seeing if the postmaster bleats about it to the postmaster log when you issue a reload. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin