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 1jg7gq-0003U5-DQ for pgsql-general@arkaria.postgresql.org; Tue, 02 Jun 2020 14:14:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jg7gp-00015M-5Y for pgsql-general@arkaria.postgresql.org; Tue, 02 Jun 2020 14:14:51 +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 1jg7gn-00015E-LR for pgsql-general@lists.postgresql.org; Tue, 02 Jun 2020 14:14:50 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jg7gk-0000HG-EQ for pgsql-general@postgresql.org; Tue, 02 Jun 2020 14:14:48 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id F08955C00E6; Tue, 2 Jun 2020 10:14:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 02 Jun 2020 10:14:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=z +REC6v01W5bVCxPDIilqEACiauYIb+gNF7L6u/kYwg=; b=aONR/1SMnEcfrgJzc wEU4+vB7bGgcetx9aF5ro98Nz+6TZW5NoaR6ITDdriExfh0DD9c8+NyWhktp6Tl7 i8wVK0FuRQ+366e4ANLrJAbq6BTHD04QTIbZgcOkxzcT7xEPRnapsfli0f4+O9x8 fZcnzzhBj/PmSHZ2TW6rudgtjHYhDIRABtbb6OGhDfSZOomohuze4QoiG7UxNkOw 0uRGrmvQPEccvQjqHVSMOsPm7k8KULFDJ6jm/gt96qSNKf22bHnPALqZ2EL7uIuq VLPk8Dr0Wj9b1+PAvQTis3Tyveyka+45s+E1vHDKgEm0RGdIfjFcUpEr03UMfkt7 geNYg== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=z+REC6v01W5bVCxPDIilqEACiauYIb+gNF7L6u/kY wg=; b=FbvBGBgV3Cx43MirhJ7lcCJS2umUg2wbl7ZwkCPdOihqjmzPfHUTyL1mi gUWcyZUHk4cErRAWLmq3zIcsjS99rWvd8aB9ehOPvJttIZKEgINtBSABfUA4vzPh 1rNeQlkJRWA/qwgDLH0xdXdepf9X2Fyp1bdDxsfrZYNrfYRx5ajuoEvooJxtKXKp VsNMW6M4VwAL+NyQ0Ri+/2d/HftWVNjx3xeH2+dFXe/LsflhGfHFhzxqW5Q4RHlE /aoQv+brEbLIQBAd/Yb+XkM8XyQfa5tDM1R6ZaztVPTwkka74LoHvmn2fGdQWH06 QFMGbqKm6mRU4eLQgTGF8B/87XNdg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudefjedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpefftdduvdeftddvhfdttdeljeefvefhledtvddvlefg jedtfeevuddthfefveetffenucffohhmrghinhepsggrtghkvghnugdrohhrghdpphhosh htghhrvghsqhhlrdhorhhgnecukfhppeejhedrudejvddrhedrvdefudenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A5AD3060F09; Tue, 2 Jun 2020 10:14:44 -0400 (EDT) Subject: Re: LOG: could not send data to client: Broken pipe To: TALLURI Nareshkumar , "pgsql-general@postgresql.org" References: From: Adrian Klaver Message-ID: Date: Tue, 2 Jun 2020 07:14:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; 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 6/1/20 8:41 PM, TALLURI Nareshkumar wrote: > Hello Postgres Support Team, > > I need your help to identify the issue and apply the fix for it. > > My client is running one query through Application and getting error > like below. > > 11:20:46.298 [http-nio-8083-exec-7] ERROR c.s.s.g.a.alcor.pdi.dao.PdiDao > - While getting pdi from 2019-12-21 to 2020-06-01: An I/O error occurred > while sending to the backend. > > org.postgresql.util.PSQLException: An I/O error occurred while sending > to the backend. > > When I checked in the postgres log I noticed the below. > > 2020-06-02 02:09:21.333 CEST db:[xxx] user:[xxxxx] [xxxxxxxxxx(53643)] > [08006] LOG:  could not send data to client: Broken pipe > > 2020-06-02 02:09:21.333 CEST db:[xxx] user:[xxxxx] [xxxxxxxxxxxx(53643)] > [08006] STATEMENT:  select ………………………………. (it just a select query) > > 2020-06-02 02:09:21.333 CEST db:[xxx] user:[xxxxxx] [xxxxxxxxxx(53643)] > [08006] FATAL:  connection to client lost > > Note: DB name, hostname, username, sql text  morphed in above message > for security reasons, so kindly consider it. > > I ran the above select query from psql prompt and I got the output, > Time: 7178.926 ms. Ofcource my one is local connection so no broken > pipe, where as client is using the network so he is getting broken pipe. > >                 We checked with Network team they are claiming no > issues with the network, But not sure. > > I worked with Unix team and they raised a case to Red hat support and > got confirmation from them that “no issues observed from OS End” > > In-fact Red hat looking for a feedback of Postgres Community. > > Version of Postgres         :               PostgreSQL 9.6.5 on > x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat > 4.8.5-11), 64-bit > > OS                                          :               Red Hat > Enterprise Linux Server release 7.2 (Maipo) > > We observed “LOG:  could not send data to client: Broken pipe” in > postgres log from long time , But recently client complained about it. > So we are in process of fixing it for which we need your help. > >                 Fyi.. I had performed VACUUM(FULL, ANALYZE, VERBOSE) on > the table. So the last analyzed is latest. > > I already checked in Postgres archive and found below links on the same > topic, But I could not get the concreate answer to fix the issue, so > please help. > > https://www.postgresql.org/search/?m=1&q=LOG%3A++could+not+send+data+to+client%3A+Broken+pipe&l=2&d=-1&s=i > > checked  11,12,13,14,15,16,17,18 mail replies > > Let me know if you need any more details from my end. Is there anything relevant in the OS system log around the time period 2020-06-02 02:09:21.333 CEST? > > Regards, > > Narresh -- Adrian Klaver adrian.klaver@aklaver.com