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 1oU7QW-0007Du-GL for pgsql-general@arkaria.postgresql.org; Fri, 02 Sep 2022 14:13:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oU7QS-0002xY-W6 for pgsql-general@arkaria.postgresql.org; Fri, 02 Sep 2022 14:13:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oU7QS-0002xP-LI for pgsql-general@lists.postgresql.org; Fri, 02 Sep 2022 14:13:40 +0000 Received: from smtp106.ord1c.emailsrvr.com ([108.166.43.106]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oU7QQ-0003k8-K5 for pgsql-general@lists.postgresql.org; Fri, 02 Sep 2022 14:13:40 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp6.relay.ord1c.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 30AC2A00CD; Fri, 2 Sep 2022 10:13:36 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Unable to archive logs in standby server From: Christophe Pettus In-Reply-To: Date: Fri, 2 Sep 2022 07:12:35 -0700 Cc: "pgsql-general@lists.postgresql.org" , Punit Pranesh Koujalgi X-Mailbutler-Message-Id: 9ED04219-9509-4232-8A39-258A4D21DBA4 Content-Transfer-Encoding: quoted-printable Message-Id: <28429F2F-A1BA-42D8-9DC7-FCA27390AD0C@thebuild.com> References: To: Meera Nair X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Classification-ID: cb37d762-2336-4480-a44d-96eb162efa9a-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 1, 2022, at 21:41, Meera Nair wrote: > Archival hangs. Is this expected? > postgres=3D# select pg_start_backup('test', true, false); > pg_start_backup > ----------------- > 1/F9000060 > (1 row) > =20 > postgres=3D# select pg_stop_backup('f'); > NOTICE: base backup done, waiting for required WAL segments to be = archived > WARNING: still waiting for all required WAL segments to be archived = (60 seconds elapsed) > HINT: Check that your archive_command is executing properly. You can = safely cancel this backup, but the database backup will not be usable = without all the WAL segments. > WARNING: still waiting for all required WAL segments to be archived = (120 seconds elapsed) > HINT: Check that your archive_command is executing properly. You can = safely cancel this backup, but the database backup will not be usable = without all the WAL segments. This generally means the command being run by archive_command is = failing. Check the PostgreSQL logs (if you are using CSV logs, check = the *.log file rather than the *.csv file).=