Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAF7u-0001Fr-96 for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 14:06:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAF7s-0001xL-Nz for pgsql-general@arkaria.postgresql.org; Wed, 10 Oct 2018 14:06:12 +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.89) (envelope-from ) id 1gAF7s-0001x4-7H for pgsql-general@lists.postgresql.org; Wed, 10 Oct 2018 14:06:12 +0000 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gAF7l-0006oB-8P for pgsql-general@postgresql.org; Wed, 10 Oct 2018 14:06:11 +0000 Received: by mail-qt1-x829.google.com with SMTP id e22-v6so5747163qto.6 for ; Wed, 10 Oct 2018 07:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9eBkdgh1QaTpKEfVT4lyFvOY0TzTb+PQNRDTQ3BvlS4=; b=LttIjV/y4Zb7UqPOQoM2dWEcQoDzpn+fehi5N3+udWe9Tqo7ErTYw5AmcBWig91PN3 Ljka3dklD9QtWo06NW/dl5xOhX8nncnA1wLx+9CUftVPdwY1RyrdzV5d+xT6+aKO7Ov5 EyN0knrjBHVnLFnu+n6MgJuTztWk1mBv+aeAA/cDGvZwynnMDTHnTVSKKRLeFwo7k8RL N1CC/V955J3fvBrMAgP019QSueCyVySq+SJn4kjFdWmkWMyzvvTiEkucfyfG+ByJaFLe 2SZoWnPi4iPvrzMQD9tnpROvhlq6wQDvg45KgAvK/si4RuPq4y4ogGdG5B6V11ChqVdt g4AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9eBkdgh1QaTpKEfVT4lyFvOY0TzTb+PQNRDTQ3BvlS4=; b=V2GXhabBIsPmGBcAKO6Yhl7AXHLae1VdiMswuXxg4EQ4c/WHI4320Rm1aHXXApi5xu j3nlg3tUfjLS0jS/9AoqwJbK3mwC3aNXzAGnICEjzmm6c6e2ghuM9hYWDd5NTA9WKpTl tEizmsEN0nwCF0LCHMkScvjrErSOnYMiojz64hZt5HGNyPDWpi2HUXybRJHWpiQxZJ23 glXe4kI9VzKNTuAKEUJtelXT+UdmPsl5xWsiuvoW8zkFyoTLGks/cm15ZVm7JiJzYQjr sgexIIT92blMZBFt0Bqq69TlgOk0rgGPcsneRi3xFbzOeez9MQH1oIILI0xabBtYQQUX Q3xw== X-Gm-Message-State: ABuFfoikLHpTyn9cnmdiKYokbs2h4IKVCT8kbA3UTvo02t7t1seWNkTw gpVvBRuBxLoDme0wmKIhPj7rayq979NZAXrxkvr/tJjIep0gA+6G3DI3wkrUiP3jj+8gR651EjY BS2fEOnb6IKQxL2/eZ59JCpFbVzGvzgTJ5XGSIzGMXtS5jqoS85EfBv4yH/r+TZKIXdCBipwnZW dNZ6TVzX0ZSVZrcw== X-Google-Smtp-Source: ACcGV62N9BliATBLHssyybZomTO1QU2nxiKLKWh+bb1XyIyu0Z05xKin5Tk8mDfb5hNwWz/iN1hKng== X-Received: by 2002:ac8:ac5:: with SMTP id g5-v6mr4137164qti.384.1539180364130; Wed, 10 Oct 2018 07:06:04 -0700 (PDT) Received: from alderaan.marques ([181.95.22.137]) by smtp.googlemail.com with ESMTPSA id c85-v6sm10897461qke.89.2018.10.10.07.06.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Oct 2018 07:06:03 -0700 (PDT) Subject: Re: Barman issue To: "rjo_roy@yahoo.com" , "pgsql-general@postgresql.org" References: <175753061.5116038.1538733055387.ref@mail.yahoo.com> <175753061.5116038.1538733055387@mail.yahoo.com> From: Martin Marques Openpgp: preference=signencrypt Message-ID: Date: Wed, 10 Oct 2018 11:06:00 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <175753061.5116038.1538733055387@mail.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El 05/10/18 a las 06:50, Rijo Roy escribió: > Hello Experts, > > I have a server rhel 6.9 installed with barman 2.3 which is configured > to take backup from Postgresql 10 installed in a remote host and the > same is working. You should upgrade to 2.4, although I can't see anything relevant in the changelog to your issue. Anyway, upgrade. > I am trying to do a poc on streaming backup and streaming wal method by > making use of the pg_receivewal. I have already created a user with > replication privilege the same is added in pg_hba. conf. And I am able > to connect remotely using the user created. > But when I am running barman check pg > pg is the name given to the remote dB host. I am getting an error like this > EXCEPTION: LooseVersion instance has no attribute 'version' You should be getting more output than just that. Have you checked the barman logs? > Below I am pasting the conf files used: > [pg]  > conninfo > streaming_conninfo > streaming_archiver = on > slot_name = barman > backup_method = postgres  > path_prefix = Postgresql bin path > basebackups_directory > errors_directory > incoming_wals_directory > streaming_wals_directory Set log_level to DEBUG while trying to find the reason for that exception. > -------—----------------------------------- > I have already created the replication slots and started the > pg_receivexlog remotely from the batman server. Was are streaming and is > coming to the incoming_wals_directory Did you start start pg_receivexlog (which in PG10 is actually called pg_receivewal) manually or using `barman receive-wal`? (also, `barman cron` should automatically start streaming if you have everything configured correctly) Regards, -- Martín Marqués http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services