Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgcKm-0006UI-1V for pgsql-admin@arkaria.postgresql.org; Mon, 28 Sep 2015 17:35:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZgcKl-0001Yv-KA for pgsql-admin@arkaria.postgresql.org; Mon, 28 Sep 2015 17:35:27 +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) (envelope-from ) id 1ZgcKl-0001Yf-03 for pgsql-admin@postgresql.org; Mon, 28 Sep 2015 17:35:27 +0000 Received: from mail-ob0-f176.google.com ([209.85.214.176]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZgcKh-00009p-Pt for pgsql-admin@postgresql.org; Mon, 28 Sep 2015 17:35:26 +0000 Received: by obbbh8 with SMTP id bh8so133077563obb.0 for ; Mon, 28 Sep 2015 10:35:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=/deBkoOf+mOHJOEilF7TAla80QHLS9lFMc1mxZvDo3c=; b=L9sxcEz/o/9qXwcTMp9fNbOcgGnS6IddDpjQZK1+E6fU6L6eDXcsSAt/7nH7rXw6Tj 2ZYmLuisttD6lugmzTe12nh6KueBeV7H1v40lWwsDRh0mYm6vCS5QUFUOMCyW/2aNJOA C818+lZ/kslwYES2RoExweLJShF07zvGxL5bZUYZDjIiITDsJ4bBmA+5wmdAYn2YtVFu +eQREZTC2sZCm1/H/u/w5WfjxDA77Xsj/J/8c8OEhTOr67ZzZGDuN/AqoPynmj20VMAD ICWp2Bstyi643GfQYicPQTtvBVoBBCzKNsxDoxugWuI98DqXUsd2+LgpQHCa/h7qRm4B NVWQ== X-Gm-Message-State: ALoCoQktPQ/L/JSbgl6tprItxXk8A7tU3BiAE0/lQN/D2JxZKYQMZDecKXkPqIzjFrxoI6Mg+ADy X-Received: by 10.60.36.202 with SMTP id s10mr12164652oej.0.1443461722011; Mon, 28 Sep 2015 10:35:22 -0700 (PDT) Received: from ?IPv6:2001:1998:860:100a:56ee:75ff:fe54:4f9c? ([2001:1998:860:100a:56ee:75ff:fe54:4f9c]) by smtp.gmail.com with ESMTPSA id v67sm9510863oie.18.2015.09.28.10.35.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 10:35:20 -0700 (PDT) To: pgsql-admin From: CS DBA Subject: repmgr error trying to clone - permission denied Message-ID: <56097A57.10907@consistentstate.com> Date: Mon, 28 Sep 2015 11:35:19 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 All; I've installed repmgr, registered the master successfully and now I want to clone the master as a standby. My Master repmgr.cfg file looks like this: $ cat repmgr.cfg cluster=pg_test node=1 node_name=node1 conninfo='host=192.168.182.132 user=postgres dbname=postgres' pg_bindir=/usr/pgsql-9.3/bin My master pg_hba.conf file: # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust host all all 192.168.182.133/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 192.168.182.133/32 trust host replication postgres ::1/128 trust The master is running on 192.168.182.132 I want the standby to be cloned onto 192.168.182.133 I ran this to register the master: $ repmgr -f /var/lib/pgsql/9.3/repmgr/repmgr.cfg --verbose master register Opening configuration file: /var/lib/pgsql/9.3/repmgr/repmgr.cfg [2015-09-28 11:05:20] [INFO] repmgr connecting to master database [2015-09-28 11:05:20] [INFO] repmgr connected to master, checking its state [2015-09-28 11:05:20] [INFO] master register: creating database objects inside the repmgr_pg_test schema [2015-09-28 11:05:20] [NOTICE] Master node correctly registered for cluster pg_test with id 1 (conninfo: host=192.168.182.132 user=postgres dbname=postgres) Here's my clone command: $ repmgr -D /var/lib/pgsql/9.3/data -d postgres -U postgres -R postgres --verbose standby clone 192.168.182.132 Opening configuration file: ./repmgr.conf [2015-09-28 11:25:39] [ERROR] Did not find the configuration file './repmgr.conf', continuing [2015-09-28 11:25:39] [NOTICE] repmgr Destination directory /var/lib/pgsql/9.3/data provided, try to clone everything in it. [2015-09-28 11:25:39] [INFO] repmgr connecting to master database [2015-09-28 11:25:39] [INFO] repmgr connected to master, checking its state [2015-09-28 11:25:39] [INFO] Successfully connected to primary. Current installation size is 19 MB Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). [2015-09-28 11:25:39] [INFO] Can not connect to the remote host (192.168.182.132) [2015-09-28 11:25:39] [ERROR] repmgr: Aborting, remote host 192.168.182.132 is not reachable. I tried it without the -R as well, same result. I can connect from the standby to the master via psql -h : $ psql -h 192.168.182.132 psql (9.3.9) Type "help" for help. postgres=# Thoughts? Thanks in advance... -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin