Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwnCs-0006n4-Ey for pgsql-general@arkaria.postgresql.org; Thu, 21 Feb 2019 12:12:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwnCq-0000LT-Or for pgsql-general@arkaria.postgresql.org; Thu, 21 Feb 2019 12:12:00 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwnCq-0000LB-DO for pgsql-general@lists.postgresql.org; Thu, 21 Feb 2019 12:12:00 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwnCo-0005pE-51 for pgsql-general@postgresql.org; Thu, 21 Feb 2019 12:11:59 +0000 Received: by mail-lj1-x243.google.com with SMTP id z20so22749506ljj.10 for ; Thu, 21 Feb 2019 04:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=Uh5KP/YMp2M9Xf6Wg8i50l2440hDXluDDKfnDNdqgKI=; b=M53q+R14MX2wnvsRzeixL2rduy0gokSH6dSSCrQvfcmuTEPJzh94TxSCxPJCK63/W3 Le9lVewWrkpsc1ME7/GK/GA0/EDoe3kA8JD/q8J5pzOvC0CCTHDTBHjJKWwipQCjfHZe TeC1Bz1qu8kYh6lGCZ8i235NGrw+X/wwhEUKU9NotWDHOdRWpJtr1M1cy03dGe1rOkSJ l1o4fFXqaCFNGK4Bkd8rwfQ7Iib1c+SIjktet2Dxj8i8gx/3CIyZu6+aF1ostGZI666u kBVVN1HJM2rH5zxQtq4/0v0OOwcmjHWB/hsHoUAD4tiLlbVQRCkf8xF3yU/o3WZb2SfS +jhg== 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:date:message-id:user-agent :mime-version; bh=Uh5KP/YMp2M9Xf6Wg8i50l2440hDXluDDKfnDNdqgKI=; b=ulld1Da9VQxN6/khfX7fgwqigTPrUy/2NSDWOzx0CRtigxmx44E6fkIOOSJOVJ0qlH IS0Q1JJks38fjldNbB0gPYD+mFTQn73PzAmNkzt50UrhUIO5r/cLsQ4ygu4Ky/eD336w x0QPlqq3i1uTqbe6TEYnqHFp9W1hbjNWwFHHJVKgALjlh93Dcc7R+i01x7G0lEWrKNIX NKLuQKGYQddaJ3e59H96479ll8A2qwhxmki2LuB2BYLhEwxahDBus+RJi+INl87EHr9I ARjTOshdX5ilyRUpUt3S8/CjnCwbgdtINq7VKhpc+MGXFJiJJ7dZE5AHBB6Tj7zVruHT 6DWQ== X-Gm-Message-State: AHQUAualHNTqrGorc+LgMBGmWclLlXXIw3PK7aNtVSlB+CMtBBkW1v3L 8lEYPre9u4Pwjvalk6YC5Hhuy6KeZHc= X-Google-Smtp-Source: AHgI3IaRVQPxhdOxM7UTE+NpvskSJIb9PLoc2gQt+XxZSunlUvBl2yUNjRgBfmuSRP/QKGMkSvZalg== X-Received: by 2002:a2e:9d17:: with SMTP id t23-v6mr23523147lji.57.1550751116393; Thu, 21 Feb 2019 04:11:56 -0800 (PST) Received: from seb ([185.89.15.66]) by smtp.gmail.com with ESMTPSA id c27sm3574814lfh.76.2019.02.21.04.11.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 04:11:55 -0800 (PST) From: Sergey Burladyan To: pgsql-general@postgresql.org Subject: Running from 9.6 backups sometimes fails with fatal error Date: Thu, 21 Feb 2019 15:11:54 +0300 Message-ID: <87a7ipe3xx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi! I need help with investigation what happened here. I have two different master servers with standby, version: PostgreSQL 9.6.10 on x86_64-pc-linux-gnu (Debian 9.6.10-1.pgdg90+1), compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit and I create backups with pg_basebackup from theirs standbys, but sometimes backup check fails, it just cannot start, for example: server 1: 2019-02-18 14:18:51 MSK [11901-2] LOG: checkpoint starting: end-of-recovery immediate wait 2019-02-18 14:18:51 MSK [11901-3] DEBUG: performing replication slot checkpoint 2019-02-18 14:18:51 MSK [11901-4] LOG: request to flush past end of generated WAL; request 44B/7E5DAB28, currpos 44B/7305B560 2019-02-18 14:18:51 MSK [11901-5] CONTEXT: writing block 0 of relation base/16506/16891_vm 2019-02-18 14:18:51 MSK [11901-6] ERROR: xlog flush request 44B/7E5DAB28 is not satisfied --- flushed only to 44B/7305B560 2019-02-18 14:18:51 MSK [11901-7] CONTEXT: writing block 0 of relation base/16506/16891_vm 2019-02-18 14:18:51 MSK [11858-110] FATAL: checkpoint request failed server 2: 2019-02-07 16:07:40 MSK [7911-37] LOG: checkpoint starting: end-of-recovery immediate wait 2019-02-07 16:07:40 MSK [7911-38] DEBUG: performing replication slot checkpoint 2019-02-07 16:07:41 MSK [7911-39] LOG: request to flush past end of generated WAL; request 1CB/8E94EE90, currpos 1CB/8A195210 2019-02-07 16:07:41 MSK [7911-40] CONTEXT: writing block 0 of relation base/18413/18529_vm 2019-02-07 16:07:41 MSK [7911-41] ERROR: xlog flush request 1CB/8E94EE90 is not satisfied --- flushed only to 1CB/8A195210 2019-02-07 16:07:41 MSK [7911-42] CONTEXT: writing block 0 of relation base/18413/18529_vm 2019-02-07 16:07:41 MSK [7868-665] FATAL: checkpoint request failed backup checked with: PostgreSQL 9.6.11 on x86_64-pc-linux-gnu (Debian 9.6.11-1.pgdg90+1), compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit recovery.conf: restore_command = '/usr/local/bin/restore_cmd /mnt/wals %f %p' recovery_target = 'immediate' postgresql.conf: wal_log_hints = on How can I debug this? -- Sergey Burladyan