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 1kqCqu-0004Y5-AL for pgsql-admin@arkaria.postgresql.org; Fri, 18 Dec 2020 10:19:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kqCqt-0001mc-8s for pgsql-admin@arkaria.postgresql.org; Fri, 18 Dec 2020 10:19:11 +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 1kqCqs-0001mU-TU for pgsql-admin@lists.postgresql.org; Fri, 18 Dec 2020 10:19:11 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kqCqq-0003UH-AH for pgsql-admin@lists.postgresql.org; Fri, 18 Dec 2020 10:19:09 +0000 Received: by mail-pf1-x429.google.com with SMTP id x126so1268076pfc.7 for ; Fri, 18 Dec 2020 02:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifetrenz-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:mime-version :content-language:content-transfer-encoding; bh=eReFiDFLoipSMvuzaRE5VTAxug7Ukq4PP0oqcI/jxx4=; b=LWdztEx+NOhZASsSrEULH9ilg8oxTEDZLZ7vKCALQBAHNP0gWIL8rvBnMA8y5EUmwz +yYxnWgXg4TBpii3b4Spei0RG8xULJy7mjLlslduKO4dLnQKRSR3ZGETt18Gv4vto1UX JuhwMmv9A41bTiG1hY6kDRNiaB5FqzAwQsJKqBbMSw+n0SpgLCGBvgZLPfhmHaMudQnQ +vtKXEUVpqFUY1aYZ+WHlOir41LaFZs4mwIKfBLBNrLFgySTgd5CAnstRwbhq6iyn9kN rbwAdRCr9sVXngbOwQAs7j4MwhwQRvf5Lvg7lNNYFFx5PKGG1nK03wpWs9Qt6YOC9+SL 2oWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:thread-topic:thread-index:date :message-id:references:in-reply-to:accept-language:mime-version :content-language:content-transfer-encoding; bh=eReFiDFLoipSMvuzaRE5VTAxug7Ukq4PP0oqcI/jxx4=; b=bG/Gw/U1M2NzqK2EA2X25mlDtcyRbA8h+Hb6iEEAq/UEeeuwrUgzltIZrfeSlMmcDS k9/Hl9oWlDm/GlPUqbYB4T7dF+AhO4IVwL4cNp1trYrHDM7VhMgi9mABllf2i1G/5fTF CSqQYkSE1z/O9aUXGnYIcGCkKP1LpK5xWDRoIxRtBs1o8QiM5epQcoV436U/zrJktFDC 9vV5/sxBU2YYuPmmRmXnoe/zcVsyLYaZQilrk9lwo/h78ThdkDKArGpWriic2tpZQ5zZ vGAX8YRWipRzstnXiFFZDxFXesZBW3Su1Q8kwgkSi+0VJyyBLB+kLwhBxIuZWFhy/5Sj vvsA== X-Gm-Message-State: AOAM533It8lmztY1vuyMNn1gNvCo7qFVDTDD+Aeg2n2PLRbWdhPdt36g N9cVcWNpW2BEjy+s1v3Hw2mNOnq3mhPCHQBpbO53os65MenLCA0Yf5BODDDITNCgklsgh1oFHWz sFwQWghFKRAekBb7qpMeZ/XX735yyPSAcVQ== X-Google-Smtp-Source: ABdhPJy7UmfMBvkI6huBJ4H2VZzXqA4sBmqkr/mvZF/d3A/+NSExmP6pAYWFj3JlOg5KiQH554L+Pw== X-Received: by 2002:a62:4e4e:0:b029:19e:aaab:8be with SMTP id c75-20020a624e4e0000b029019eaaab08bemr3181202pfb.59.1608286746818; Fri, 18 Dec 2020 02:19:06 -0800 (PST) Received: from PS2PR02MB2837.apcprd02.prod.outlook.com ([2603:1046:803:42::5]) by smtp.gmail.com with ESMTPSA id 197sm8701737pgg.43.2020.12.18.02.19.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Dec 2020 02:19:06 -0800 (PST) From: Sreejith P To: Laurenz Albe , "pgsql-admin@lists.postgresql.org" Subject: Re: Replication failed Thread-Topic: Replication failed Thread-Index: ATZBRTRCbhZdQ22R9l20vUjQ9GnqXGw5OTFmvcX6N/I= X-MS-Exchange-MessageSentRepresentingType: 1 Date: Fri, 18 Dec 2020 10:19:02 +0000 Message-ID: References: <9492f3e4fff86b6fcb1d064d680920e8579d9c37.camel@cybertec.at> In-Reply-To: <9492f3e4fff86b6fcb1d064d680920e8579d9c37.camel@cybertec.at> Accept-Language: en-US X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Yes. There was a crash. Master recovered automatically .. But replication failed.=20 See blow log from Master.=20 cp: error writing '/BackupVolume/hisDbBackup/WALs/0000000200000AE6000000B9'= : No space left on device 2020-12-17 21:55:26 +04 [55822]: user=3D,db=3D,app=3D,client=3D LOG: archi= ve command failed with exit code 1 2020-12-17 21:55:26 +04 [55822]: user=3D,db=3D,app=3D,client=3D DETAIL: Th= e failed archive command was: test ! -f /BackupVolume/dbWALBack/WALs/000000= 0200000AE6000000B9 && cp pg_wal/0000000200000AE6000000B9 /BackupVolume/hisD= bBackup/WALs/0000000200000AE6000000B9 =20 2020-12-17 21:53:56 +04 [84225]: user=3DAstDBA,db=3DAST-PROD,app=3D[unknown= ],client=3D172.18.200.100 HINT: In a moment you should be able to reconnec= t to the database and repeat your command. 2020-12-17 21:53:56 +04 [51102]: user=3DAstDBA,db=3DAST-PROD,app=3D[unknown= ],client=3D172.18.200.100 WARNING: terminating connection because of crash= of another server process 2020-12-17 21:53:56 +04 [51102]: user=3DAstDBA,db=3DAST-PROD,app=3D[unknown= ],client=3D172.18.200.100 DETAIL: The postmaster has commanded this server= process to roll back the current transaction and exit, because another ser= ver process exited abnormally and possibly corrupted shared memory. =20 =20 2020-12-17 21:55:20 +04 [55808]: user=3Dreplicator,db=3D[unknown],app=3D[un= known],client=3D172.18.200.144 FATAL: the database system is in recovery m= ode =20 =20 2020-12-17 21:55:25 +04 [55828]: user=3Dreplicator,db=3D[unknown],app=3Dwal= receiver,client=3D172.18.200.148 ERROR: requested starting point AEA/A2000= 000 is ahead of the WAL flush position of this server AEA/A1FFFA50 2020-12-17 21:55:25 +04 [55827]: user=3Dreplicator,db=3D[unknown],app=3Dwal= receiver,client=3D172.18.200.147 ERROR: requested starting point AEA/A2000= 000 is ahead of the WAL flush position of this server AEA/A1FFFA50 2020-12-17 21:55:25 +04 [55829]: user=3Dreplicator,db=3D[unknown],app=3Dwal= receiver,client=3D172.18.200.145 ERROR: requested starting point AEA/A2000= 000 is ahead of the WAL flush position of this server AEA/A1FFFA50 2020-12-17 21:55:25 +04 [55830]: user=3Dreplicator,db=3D[unknown],app=3Dwal= receiver,client=3D172.18.200.146 ERROR: requested starting point AEA/A2000= 000 is ahead of the WAL flush position of this server AEA/A1FFFA50 2020-12-17 21:55:25 +04 [55831]: user=3Dreplicator,db=3D[unknown],app=3Dwal= receiver,client=3D172.18.200.144 ERROR: requested starting point AEA/A2000= 000 is ahead of the WAL flush position of this server AEA/A1FFFA50 =EF=BB=BFOn 18/12/20, 2:13 PM, "Laurenz Albe" wr= ote: On Fri, 2020-12-18 at 00:56 +0530, Sreejith P wrote: > We had 1 M x 4 slave server streaming replication using Postgres 10. = Was working successfully for long time. >=20 > Suddenly all replication servers got failed and getting following mes= sage. >=20 > 2020-12-17 22:24:32 +04 [1587]: [357-1] db=3D,user=3DLOG: invalid co= ntrecord length 2722 at AEA/A1FFF9E0. >=20 > Requesting help for identifying root cause. Looks like this problem: https://postgr.es/m/77734732-44A4-4209-8C2F-3AF36C9D4D18%40amazon.com Was there a crash on the primary sever? There is a patch under development at this thread: https://postgr.es/m/CBDDFA01-6E40-46BB-9F98-9340F4379505%40amazon.com Yours, Laurenz Albe --=20 =C2=A0 *Solutions for Care Anywhere* *dWise HealthCare IT Solutions Pvt.=20 Ltd.* | www.lifetrenz.com *Disclaimer*: The=20 information and attachments contained in this email are intended=20 for=20 exclusive use of the addressee(s) and may contain confidential or=20 privileged information. If you are not the intended recipient, please=20 notify the sender immediately and destroy all copies of this message and =20 any attachments. The views expressed in this email are, unless=20 otherwise=20 stated, those of the author and not those of dWise HealthCare IT Solutions= =20 or its management.