Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuICD-0002lQ-94 for pgsql-general@arkaria.postgresql.org; Mon, 27 Aug 2018 14:08:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fuICB-0001i9-EH for pgsql-general@arkaria.postgresql.org; Mon, 27 Aug 2018 14:08:43 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuICB-0001i2-67 for pgsql-general@lists.postgresql.org; Mon, 27 Aug 2018 14:08:43 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuIC8-0004W4-GV for pgsql-general@lists.postgresql.org; Mon, 27 Aug 2018 14:08:42 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 534E52188C; Mon, 27 Aug 2018 10:08:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 27 Aug 2018 10:08:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=cz4DYiWszWAXe2EIh30zShVSPwZkM KCp8r/VRsttSYU=; b=pgzDHairKXMqH+46YTHIu94IB0YsO3YDQYrVKLBaiFe/Y C+sHX6a57Ll5Ayapc/0BwgNzZbEO5lHImtIAr+XCfpU7lBf4u++pxH8t4641KKsZ OIyYW69kvbpIeSyKB/jzrFzg8uXlMv+N55nN90bYEoTBdT4Vw7pFpYCjL51mgNaT IylWWfRKW9Cjmasn9UesUkPh/x5H6T8ENulOgCs0vdye/sv7b/Uq3fCehumtKJ/l HXxa3AJRFznoLixWlfc3mc8oOqG3AL/bKc0NZa6n/sM2aEic5jLB58zh88GGew7/ WOB3B8xAGJ+R+L+f4Gz1v2Zi4IXEUAFB+Wb+sljmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=cz4DYi WszWAXe2EIh30zShVSPwZkMKCp8r/VRsttSYU=; b=uoxNgfPF41rZ9K6x23+BeI Z/SCmYE8Czhg9S0cv3k8187L9A9LRTArl5X6GObYJO8YPK1pgrrF0Fzi8hJLmCQD lndg+pIRm/+pD5VTEWOiJIrCHjdptIZMCcZyScitBBTtwUwcgCJBaxn9S4QQCzb1 gWZu5fYFfZUa5dmQDaCtkPp2pxs6DLsb5HF5IgTZTjoRR/2Wzgv9i/crk4MYyaTs TvwdLxCWnC9Rm0iBcmuZNWAkkgBaPmtXIrJzGxEvW17nF0FDHRMdJeliobX6yoAe C0m1HLM1x/QSjuaIsX7uzTAZVA2G5qTx34BU7/066bHcpN5aay1ZT8PpK0t6tf5Q == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 21B89E474A; Mon, 27 Aug 2018 10:08:38 -0400 (EDT) Subject: Re: pg_basebackup + SSL error: bad length To: Csaba Ragasits , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Mon, 27 Aug 2018 07:08:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/27/2018 02:00 AM, Csaba Ragasits wrote: > Hello, > > I would like to create a streaming replication, when I'm trying the > basebackup from the node1, I've the following errors: > > pg_basebackup -P -v -D ./main -h node1 -p 5432  -U repmgr > > pg_basebackup: initiating base backup, waiting for checkpoint to complete > pg_basebackup: checkpoint completed > pg_basebackup: write-ahead log start point: 2/13000028 on timeline 1 > pg_basebackup: directory "/srv/pgdata/tbs_int302" exists but is not empty > pg_basebackup: removing data directory "./main" > > In the node1 postgresql.log: > > LOG:  could not send data to client: Connection reset by peer > ERROR:  base backup could not send data, aborting backup > LOG:  SSL error: bad length > LOG:  SSL error: bad length > FATAL:  connection to client lost > > When I set off the SSL in the postgresql.conf, i've the folloving error > message when I try use the pg_basebackup command: > LOG:  could not send data to client: Broken pipe > FATAL:  connection to client lost > > Have you got any information, suggestion how can I solve this errors? Can you connect to node1 using psql with and without SSL? Where is node1 relative to the machine you are running pg_basebackup from? Just to be clear both Postgres instances are running 10.5, correct? > > My area: > - Updated Debian GNU/Linux 9 > - PostgreSQL 10.5 (Debian 10.5-1.pgdg90+1) on x86_64-pc-linux-gnu, > compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit > > Thx, > Csaba -- Adrian Klaver adrian.klaver@aklaver.com