Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJhHj-0006V5-61 for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 17:36:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJhHh-00027d-9s for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 17:36:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJhHh-00027V-24 for pgsql-general@lists.postgresql.org; Wed, 01 Apr 2020 17:36:13 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jJhHe-0006tA-PO for pgsql-general@postgresql.org; Wed, 01 Apr 2020 17:36:11 +0000 Received: by mail-qk1-x741.google.com with SMTP id h14so844557qke.5 for ; Wed, 01 Apr 2020 10:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=/lnkB2TzzSa5Amlrhz1N53kda00+TluzZ09GdcdGmDg=; b=yi7WJz6StiQLAzZfm7qqWEBaWqzSBW/dmrSQJ9vMYB3Z9wVSTKml2N0NI68gnRe4mM qkda73Q+P3CAUBOjCRHe049BVD26Ox9DQdb2Inb5HylPJ++m1EFsJiK9o4BrCZb1kwHJ +xf6Rnj8NCgikZGT2KZHayqIIE2dtSs8HsrJ0gVKCgP5kU2bGk5PfUWdIRo09nNr2FLk srI9/cNn+6KR3mIXiOMVJepYCX+lwi6PXwflrK7fQZYbrXrtnC7aWWcPNNnGXbpN+Ynq L19PZ28RWBjIbn+R+35PpyYpJqg3ieTOhR4Vg5+eDaCenezplM7ZbGIsAG4VxAHijVke /DaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=/lnkB2TzzSa5Amlrhz1N53kda00+TluzZ09GdcdGmDg=; b=D8Evl8tJSSOvC9Jqh5GhxabPas4QAMUsMLlGgn+md18lflQxGWmD+DYCuNasxgfoxd ILKuPStnkEWC/GMbrVkGvXZP8CCl+XeUQOeEp/8vVFggMBO1eVTTkEEbRrI0rYZk2hEH o9qzj6PChrmST4TinrvJ/47wnYB9EwbptFLyeu854Qzcgr/WvBN8tI1gmsUCOEqKs5hw 2dvfCNrXewSoolz4x5AB2d+VKp5Mz6y+VZLr2g4LQoK/RarwiVhYmq9vJoIniqqNRpDq gucmuQWjQMKh307B+9rIxrXmWUlPH6WKy4vYNA+dpjAmrE9RvkFQDraqCVpvl/kHi/6z d4Rg== X-Gm-Message-State: ANhLgQ3e5vXGVsbLaE3J3s09GEkdjajyRSwIOdgOI62GRqRSLMzNRauZ S49vZcR54QZnIotgrRaZDzZaqHkwX4NVsQ== X-Google-Smtp-Source: ADFU+vvgi91edu3+kMVxZTheK9ivypSP38xU6ny9nLGeqzAfWlpanEX4pFvUIcdKmr9TuadGr894oA== X-Received: by 2002:a37:7202:: with SMTP id n2mr10042782qkc.427.1585762569623; Wed, 01 Apr 2020 10:36:09 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id o7sm1779649qkm.35.2020.04.01.10.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 10:36:09 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 64740300A9D; Wed, 1 Apr 2020 14:36:06 -0300 (-03) Date: Wed, 1 Apr 2020 14:36:06 -0300 From: Alvaro Herrera To: Silvio Fabi - NBS srl Cc: pgsql-general@postgresql.org Subject: Re: postgres: archiver process failed on 000000010000020A00000073 Message-ID: <20200401173606.GA24159@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8e9bfb6a-a8c6-0ff5-b1e2-346f3db260dd@nbsgroup.it> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Apr-01, Silvio Fabi - NBS srl wrote: > WAL Archive process on my DB Postgresql 10 is not working. > the WAL Archive file 000000010000020A00000073 was accidentally deleted > and there is no backup. > Postgresql tries to run the following command: > rsync -a pg_wal/000000010000020A00000073 > barman@database:/var/lib/barman/database/incoming/000000010000020A00000073 Ouch. This is not a barman problem; accidentally a WAL file is synonymous with corrupting your database. Any existing backup that needs that file is now invalid. I suggest you run CHECKPOINT and then take a new backup. I think removing the 000000010000020A00000073.ready file from pg_wal should prevent future attempts at archiving it, so that subsequent WAL files are archived. By all means, *do not* lose any more WAL files. It is a very dangerous thing to do. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services