Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGnWX-0000zk-02 for pgsql-admin@arkaria.postgresql.org; Fri, 02 Jun 2017 14:25:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGnWW-0001fZ-Ip for pgsql-admin@arkaria.postgresql.org; Fri, 02 Jun 2017 14:25:56 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGnWO-0001Tp-Gl for pgsql-admin@postgresql.org; Fri, 02 Jun 2017 14:25:48 +0000 Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dGnWK-0001W0-6P for pgsql-admin@postgresql.org; Fri, 02 Jun 2017 14:25:48 +0000 Received: by mail-io0-x235.google.com with SMTP id u18so5125545ioi.2 for ; Fri, 02 Jun 2017 07:25:43 -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=ib+LaQjJ789xPMfANQtP+8R1KhdseL+FQtLmukenCHo=; b=FQOe7JqHPvfiH3dL1xOPjMSriiVMoUlyqc5pe6/dO2yK+wCPAVEvIispSA+r42ONxm w1FiCSdz1GEncnRERDLt5Qc59eft8JcsCg5dZN9A2kwRlEixKiTyCmhHx5ufLhnRav1Q fzSnBRwf2X8WmjzKZT90QTJDOFII0qLwERP1yRiY+fxtY2eEP/XjrYTN4Q5HKLTOSpBD KrDHgqayzUvdXqfVzMD8XOQeHaDBq4XsQA17POgt0opOzQpaUO/Vv8boyR1nCl7s+zy9 6WsTuadYK2UtVKyf9PenDjsjV9Nkyqk+aYyUBZFlnq5pJR1DnjXyoRNOLiQ8MqmTIwMe yATQ== 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=ib+LaQjJ789xPMfANQtP+8R1KhdseL+FQtLmukenCHo=; b=BNIgxHB901MuLX82Urmz9ONLZEfEJD5hX6ak2hLw3nvI/QGkZfxSx1Cbk49xPsa0HL ndKIlTNLiFmlwgR9/7LE/XEVRs5GQv7lpChYvuMKXrGqXEpIG0C9ISqY5rbMRwXsdBsa /NR7VLX+bZ2AhYw+GOGFQZRAKQDF+Ycdr0UqoJ6B/Uwg06RBy0644gAJmGheuRauTqtU 6n/UAjWFy0kVW9aVSD9DFfdPKCjibXgjcV0Z8/SB8HHSPkb28heDywq+nMf1Iim01nNG fsJycUnqSlSHkCzCFt68vIOXlsbI/7Ex2bfFhqOQkZQlpEZpK44E4+2Lg0c0wXor1ybF XV7Q== X-Gm-Message-State: AODbwcC/klKs5q3RyeIkcIfR10+kRz29oAIk1lhJsG7CGkLa/xvl5SoR Yoz00NGuzAI9iCjdg7k1kg== X-Received: by 10.107.16.65 with SMTP id y62mr651192ioi.105.1496413542243; Fri, 02 Jun 2017 07:25:42 -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 p127sm1150823itb.0.2017.06.02.07.25.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 07:25:41 -0700 (PDT) From: Andrew Foster Message-Id: <40B1CD71-7717-498C-8ED8-8E58F1B12C2A@educationalmeasures.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_0AE79494-D0AB-4D61-B791-85662E88086F" 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:25:40 -0600 In-Reply-To: Cc: "pgsql-admin@postgresql.org" To: "Keefer, Brad (ITS)" References: <2F0E3353-8321-46C0-AACF-A0467D993F3C@educationalmeasures.com> 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=_0AE79494-D0AB-4D61-B791-85662E88086F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Have you set up a .pgpass file on the server you=E2=80=99re connecting = from? 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:09 AM, Keefer, Brad (ITS) = wrote: >=20 > This is what I have: > =20 > # TYPE DATABASE USER ADDRESS METHOD > =20 > # "local" is for Unix domain socket connections only > local all all trust > # IPv4 local connections: > host all all 127.0.0.1/32 trust > # IPv6 local connections: > host all all ::1/128 trust > # Allow replication connections from localhost, by a user with the > # replication privilege. > #local replication postgres trust > #host replication postgres 127.0.0.1/32 trust > #host replication postgres ::1/128 trust > local replication postgres md5 > host all postgres 10.108.52.1/24 md5 > host all postgres 10.108.55.92/32 md5 > host all postgres 10.108.55.93/32 md5 > host replication postgres 10.108.52.1/24 md5 > host replication postgres 10.108.55.92/32 md5 > host replication postgres 10.108.55.93/32 md5 > host replication postgres 127.0.0.1/24 = md5 > [10:08:46 root@dch342ml3pgsql> > =20 > =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 > =20 > From: Andrew Foster [mailto:afoster@educationalmeasures.com = ]=20 > Sent: Friday, June 02, 2017 10:07 AM > To: Keefer, Brad (ITS) > > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Issue with Configuring BDR 1.0.2 in Postgresql = 9.4 > =20 > ATTENTION: This email came from an external source. Do not open = attachments or click on links from unknown senders or unexpected emails. >=20 > Morning Brad,=20 > =20 > Could you pass along your pg_hba.conf for 10.108.55.92? Your issue may = be there. > =20 > =20 > Regards, > =20 > Andrew Foster | Educational Measures, LLC > Sr. Database Administrator > 7100 E. Belleview Ave, Suite 350 > Greenwood Village, CO 80111 > 303-548-6516 > afoster@educationalmeasures.com = > =20 > 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=_0AE79494-D0AB-4D61-B791-85662E88086F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Have you set up a .pgpass file on the server you=E2=80=99re = connecting from?

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:09 AM, Keefer, Brad (ITS) <Brad.Keefer@its.ny.gov> wrote:

This is what I have:
 
# TYPE  = DATABASE        = USER            = ADDRESS           &= nbsp;     METHOD
 
# "local" is for Unix domain socket = connections only
local   = all            = ; = all            = ;            &= nbsp;            = trust
# IPv4 = local connections:
host    = all            = ; = all            = ; = 127.0.0.1/32          &n= bsp; trust
#= IPv6 local connections:
host    = all            = ; = all            = ; = ::1/128           &= nbsp;     trust
# Allow replication connections from = localhost, by a user with the
# replication privilege.
#local   replication     = postgres           =             &n= bsp;        trust
#host    replication     = postgres        = 127.0.0.1/32          &n= bsp; trust
#host    replication     = postgres        = ::1/128           &= nbsp;     trust
local    = replication     = postgres           =             &n= bsp;      md5
host    = all     = postgres        = 10.108.52.1/24          = md5
host    all     = postgres        = 10.108.55.92/32          = ; md5
host    all     = postgres        = 10.108.55.93/32          = ; md5
host    replication   postgres = 10.108.52.1/24    md5
host    = replication     = postgres        = 10.108.55.92/32          = ; md5
host    replication     = postgres        = 10.108.55.93/32          = ; md5
host    replication     = postgres        = 127.0.0.1/24          &n= bsp;     md5
[10:08:46 root@dch342ml3pgsql>
 
 
 
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
 
From: Andrew Foster [mailto:afoster@educationalmeasures.com] 
Sent: Friday, June 02, 2017 10:07 = AM
To: Keefer, Brad (ITS) <Brad.Keefer@its.ny.gov>
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Issue with = Configuring BDR 1.0.2 in Postgresql 9.4
 

ATTENTION: This email came from an external source. Do not = open attachments or click on links from unknown senders or unexpected = emails.

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
=

= --Apple-Mail=_0AE79494-D0AB-4D61-B791-85662E88086F--