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 1hw3P5-0002Qw-0B for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 11:49:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hw3P3-0001hE-SR for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 11:49:49 +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 1hw3P3-0001cz-Em for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2019 11:49:49 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw3P1-0004yM-Fc for pgsql-general@postgresql.org; Fri, 09 Aug 2019 11:49:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=Content-Type:MIME-Version:Reply-To:Message-ID:Subject:To: Sender:From:Date:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=M3ckWVxH4LzpxjwX/I9V7nnVsdPdKjHa4mOMUzkzo5Y=; b=QABOmLCLXWWjwiMgiFGPaAT4xj NgWkZZXmKbwgpxafpWaaWMuyvZ6tsgEryjxVPYXU5hy2Wo5tdebCBXBs6S2AN0fQP15tYey1/EyKu cvfqNvJFLrqwRg1+yNqElEpsuS8nKZ++uEkUu43mi3xK9sHr+l+cVGqYBZiuN9AKNzFM=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1hw3P0-0004Be-3k for pgsql-general@postgresql.org; Fri, 09 Aug 2019 13:49:46 +0200 Date: Fri, 9 Aug 2019 13:49:45 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: pgsql-general mailing list Subject: pglogical replication dies Message-ID: <20190809114945.GA20969@depesz.com> Reply-To: depesz@depesz.com MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, I tried to setup upgrade using pglogical - from 9.5 to 11. I did set it up, and after subscription, initial data sync seems to work fine, but then replication dies. In logs on subscriber, every 3 minutes I see: db=,user= LOG: background worker "pglogical apply 114610049:2875150205" (PID 28020) exited with exit code 1 On provider there are more messages. Every 3 minutes I get: LOG: replication connection authorized: user=some_user SSL enabled (protocol=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384, compression=off) LOG: starting logical decoding for slot "pgl_somedb_provider_subscription" DETAIL: streaming transactions committing after 4AA0/5B43630, reading WAL from 4AA0/55743C0 LOG: logical decoding found consistent point at 4AA0/55743C0 DETAIL: There are no running transactions. LOG: could not receive data from client: Connection reset by peer LOG: unexpected EOF on standby connection And that's all. If it matters there are ~ 3000 tables in the replication set, and we don't replicate sequences (figured it will be simpler to just sync them once on switch to new server). How to debug/diagnose the problem? Best regards, depesz