Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGnEc-0007SF-Og for pgsql-admin@arkaria.postgresql.org; Fri, 02 Jun 2017 14:07:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGnEc-0000ki-2Y for pgsql-admin@arkaria.postgresql.org; Fri, 02 Jun 2017 14:07:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGnEZ-0000go-DV for pgsql-admin@postgresql.org; Fri, 02 Jun 2017 14:07:23 +0000 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dGnEV-0000SX-Ee for pgsql-admin@postgresql.org; Fri, 02 Jun 2017 14:07:22 +0000 Received: by mail-io0-x231.google.com with SMTP id u18so4811511ioi.2 for ; Fri, 02 Jun 2017 07:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=educationalmeasures-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=y0ghVmIN3tcon40XkIT+IQRtY2+RcrxPeT1HdGJiHDg=; b=f+dIKCe54ZbEB2qyrTYxlIeECR6iTACC9cUhkLnEUY0t/w8ixzCUU/guCllDXjnDGg m7ugbqKfEBtKh0Ju8uR+HKmHSZnVFWNbtNfNp+lnctBRfVexlve0VdJIWMIDlQXji+Dg 4gcgJfB4XpZXc4h4AWmTaHxG91wvCvgistqinoIbUkdO1prkQRnc5FpQH5gNEZfosa0Y BlsO4N8JNpNASnoN42JhAxkIdUQrCDTyIQ+J9q+HLc29l22f3yIQV9taCXZAnslE0OWP GnvOqj9et9HC3OEoTbcwBpOLoiK9LDGJaWrGvEQF+lv/wiYddScgqtBv+REQbf6IhE5S CG/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=y0ghVmIN3tcon40XkIT+IQRtY2+RcrxPeT1HdGJiHDg=; b=BC11GXAfg5/JscwGAvn9clpzCSAJoN0CWIPhe2XDSYbKuySBIyu7FiROXMPpl1q9Vr a4JFwxmddP2E7lnZzdkykrAeWz9/7qI2Sfmcljtxt7k5OR9GGZQ/cz+qxrgpZQN7Qcau IrqVAYUaq1qoGzLSsE7NshQwQEukuDPl30Ay9oe8SPmURucpNHjUFtZE2Zd5TwrTQpmh 1yP4P7cx4gBvjwtHwkBq06RDHrFCXAc1BGmkjbiXiraoQKE36obdhRTGAMh8uN8whRV1 +U985brAQ6oht1BSFcNjeevoJp/Q/7Y4+WYmtP8nePsB9ylVBeGwwVIuTr/tjLVvQcux U2Cw== X-Gm-Message-State: AODbwcC5vGCrGnuXcjvKRNtfUWMmw+NcWIhCO4b/vJdaU070Ze/yA3x3 o7X2fo7r1hWr7BW38RyY+g== X-Received: by 10.107.20.145 with SMTP id 139mr8126059iou.11.1496412438445; Fri, 02 Jun 2017 07:07:18 -0700 (PDT) Received: from [10.1.20.35] (96-81-52-113-static.hfc.comcastbusiness.net. [96.81.52.113]) by smtp.gmail.com with ESMTPSA id i28sm10088136ioo.54.2017.06.02.07.07.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 07:07:17 -0700 (PDT) From: Andrew Foster Message-Id: <2F0E3353-8321-46C0-AACF-A0467D993F3C@educationalmeasures.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_5322A9F2-E88A-4AB3-9679-DA9B1442BEF4" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Issue with Configuring BDR 1.0.2 in Postgresql 9.4 Date: Fri, 2 Jun 2017 08:07:16 -0600 In-Reply-To: Cc: "pgsql-admin@postgresql.org" To: "Keefer, Brad (ITS)" References: X-Mailer: Apple Mail (2.3273) X-Pg-Spam-Score: -2.6 (--) 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 --Apple-Mail=_5322A9F2-E88A-4AB3-9679-DA9B1442BEF4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Morning Brad, Could you pass along your pg_hba.conf for 10.108.55.92? Your issue may = be there. Regards, Andrew Foster | Educational Measures, LLC Sr. Database Administrator 7100 E. Belleview Ave, Suite 350 Greenwood Village, CO 80111 303-548-6516 afoster@educationalmeasures.com > On Jun 2, 2017, at 8:00 AM, Keefer, Brad (ITS) = wrote: >=20 > So, I=E2=80=99m trying to set up a simple two-node Postgres = Replication cluster, and things are going ok until I try and set up the = DSN. The command I am using is > =20 > bdrdemo=3D# SELECT bdr.bdr_group_create(local_node_name :=3D 'node1', = node_external_dsn :=3D 'host=3D10.108.55.92 port=3D5432 = dbname=3Dbdrdemo'); > =20 > but when I run that, I receive the following error: >=20 > FATAL: could not connect to the server in non-replication mode: = fe_sendauth: no password supplied > =20 > DETAIL: dsn was: connect_timeout=3D30 keepalives=3D1 = keepalives_idle=3D20 keepalives_interval=3D20 keepalives_count=3D5 = host=3D10.108.55.92 port=3D5432 dbname=3Dbdrdemo = fallback_application_name=3D'bdr = (6427018047201618294,1,16384,):bdrnodeinfo' > CONTEXT: SQL statement "SELECT * FROM = bdr_get_remote_nodeinfo(node_local_dsn)" > PL/pgSQL function internal_begin_join(text,text,text,text) line 42 at = SQL statement > SQL statement "SELECT bdr.internal_begin_join( > 'bdr_group_join', > local_node_name, > CASE WHEN node_local_dsn IS NULL THEN node_external_dsn ELSE = node_local_dsn END, > join_using_dsn)" > PL/pgSQL function bdr_group_join(text,text,text,text,integer,text[]) = line 21 at PERFORM > SQL statement "SELECT bdr.bdr_group_join( > local_node_name :=3D local_node_name, > node_external_dsn :=3D node_external_dsn, > join_using_dsn :=3D null, > node_local_dsn :=3D node_local_dsn, > apply_delay :=3D apply_delay, > replication_sets :=3D replication_sets)" > PL/pgSQL function bdr_group_create(text,text,text,integer,text[]) line = 84 at PERFORM > server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > The connection to the server was lost. Attempting reset: Succeeded. > =20 > I=E2=80=99m running this on a RHEL 7.3 OS with SELinux set to = Permissive. > =20 > I also enabled the bdr extension via the shared_preload_libraries lin = in the postgresql.conf file, and created the extension btree_gist in the = bdrdemo database prior to running the SELECT statement above. > =20 > Not sure what I am missing, but any pointers/advice you could give = would be greatly appreciated. > =20 > Thanks. > =20 > =20 > Brad Keefer > Red Hat Consultant =E2=80=93 RHCSA > =20 > Office of Information Technology Services > Tax & Finance Building 8, Floor 7, Harriman Campus > C: 919-210-7045 | brad.keefer@its.ny.gov = > www.its.ny.gov --Apple-Mail=_5322A9F2-E88A-4AB3-9679-DA9B1442BEF4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Morning Brad,

Could you pass along your pg_hba.conf for 10.108.55.92? Your = issue may be there.


Regards,

Andrew Foster | Educational = Measures, LLC
Sr. Database Administrator
7100 E. Belleview Ave, Suite 350
Greenwood Village, CO 80111
303-548-6516
afoster@educationalmeasures.com

On Jun 2, 2017, at 8:00 AM, Keefer, Brad (ITS) <Brad.Keefer@its.ny.gov> wrote:

So, I=E2=80=99m trying to set up a simple two-node Postgres = Replication cluster, and things are going ok until I try and set up the = DSN. The command I am using is
 
bdrdemo=3D# SELECT = bdr.bdr_group_create(local_node_name :=3D 'node1', node_external_dsn :=3D = 'host=3D10.108.55.92 port=3D5432 dbname=3Dbdrdemo');
 
but when = I run that, I receive the following error:

FATAL:  could not connect to the server in = non-replication mode: fe_sendauth: no password supplied
 
DETAIL:  dsn was: connect_timeout=3D30 keepalives=3D1 = keepalives_idle=3D20 keepalives_interval=3D20 = keepalives_count=3D5   host=3D10.108.55.92 port=3D5432 = dbname=3Dbdrdemo fallback_application_name=3D'bdr = (6427018047201618294,1,16384,):bdrnodeinfo'
CONTEXT:  SQL statement "SELECT = *            &= nbsp;           &nb= sp;  FROM bdr_get_remote_nodeinfo(node_local_dsn)"
PL/pgSQL = function internal_begin_join(text,text,text,text) line 42 at SQL = statement
SQL statement "SELECT bdr.internal_begin_join(
        = 'bdr_group_join',
        = local_node_name,
        CASE WHEN = node_local_dsn IS NULL THEN node_external_dsn ELSE node_local_dsn = END,
        = join_using_dsn)"
PL/pgSQL function = bdr_group_join(text,text,text,text,integer,text[]) line 21 at = PERFORM
SQL statement "SELECT bdr.bdr_group_join(
        local_node_name :=3D= local_node_name,
        node_external_dsn = :=3D node_external_dsn,
        join_using_dsn :=3D = null,
        node_local_dsn :=3D = node_local_dsn,
        apply_delay :=3D = apply_delay,
        replication_sets = :=3D replication_sets)"
PL/pgSQL function = bdr_group_create(text,text,text,integer,text[]) line 84 at PERFORM
server = closed the connection unexpectedly
        This probably = means the server terminated abnormally
        before or while = processing the request.
The connection to the server was lost. Attempting reset: = Succeeded.
 
I=E2=80=99m running this on a RHEL 7.3 OS with SELinux set to = Permissive.
 
I also enabled the bdr extension via the = shared_preload_libraries lin in the postgresql.conf file, and created = the extension btree_gist in the bdrdemo database prior to running the = SELECT statement above.
 
Not sure what I am missing, but any pointers/advice you could = give would be greatly appreciated.
 
Thanks.
 
 
Brad Keefer
Red Hat Consultant =E2=80=93 RHCSA
 
Office of = Information Technology Services
Tax & Finance Building = 8, Floor 7, Harriman Campus
C: 919-210-7045= | brad.keefer@its.ny.gov
<= br class=3D"">= --Apple-Mail=_5322A9F2-E88A-4AB3-9679-DA9B1442BEF4--