Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6ctr-0002ZO-Cc for pgsql-general@arkaria.postgresql.org; Thu, 12 Apr 2018 14:08:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f6ctq-0006qY-1X for pgsql-general@arkaria.postgresql.org; Thu, 12 Apr 2018 14:08:30 +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 1f6ctp-0006qJ-PJ for pgsql-general@lists.postgresql.org; Thu, 12 Apr 2018 14:08:29 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6ctm-0001ZT-V9 for pgsql-general@postgresql.org; Thu, 12 Apr 2018 14:08:29 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CB3AE21196; Thu, 12 Apr 2018 10:08:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 12 Apr 2018 10:08:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=fm2; bh=FykVXGPVKnnclsuQ2kvjZfijxyGuK K4G0z7qIPCrdLE=; b=VS/AKNp5hP0Uj4ue0YGfZv8s0gJ3bbEhrj4vuBY3V0uAY 1QRyzsisBp5w9Tdb55usxb2K7uzNShSsiECeFX+8uQzgwAIVDjEwOII+MArj8ASP 9WRIp3c+jTBUBvo5wa0HEVw3lJBufnLeyDh6DzHuKMktFW3fEO/1Oe2YCkY/JQVp 59mOlOln9mRi86/xusaleq1HNNUD1+8wtResMZDvshztqPngT2yDslWC0wgNxgnR z/jOqMW7G2CjtN7AHcC7wczv/NyqvUGks6kVHiGckurCe0v/jRRhvokk05TVNeOu n/Zpk1aR8jMjKRzj3MHImLGFFbRy3w9LWnTZsc3mQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm2; bh=FykVXG PVKnnclsuQ2kvjZfijxyGuKK4G0z7qIPCrdLE=; b=d5kxqQyNLUPtHTAmaTfzwQ mdeTjGlfkLBOeFI8Lc+l58sI2NbQqOEg+Sz/AWLlWI/Nmf597yDBHuImPccfj91q Ny0zKlI+TPbyy9wpOjQXSPE7ckNvRsbEwO/TZR3E1dOn5+otgZ4VtUwIjbugpIdS 9L2O6LF+keteRCXA6TRya6dnaOvyveGZWrgDSsLzolVKucyxcI8n1UA0zHqRBCYx W7z+td0VDkFZ9VndxCKtRs/DD3jQrUnNtHjxXrve026gVDWoOCJWB0Akkuv8Cl8N /jnbFaFeW14BGBLLYwSQ/ceg5X9R1+MnaOwm3EnAIGYVkQyWDduysr+xoZUaHbIw == X-ME-Sender: Received: from [192.168.1.2] (71-35-123-124.tukw.qwest.net [71.35.123.124]) by mail.messagingengine.com (Postfix) with ESMTPA id 1E44710291; Thu, 12 Apr 2018 10:08:25 -0400 (EDT) Subject: Re: authentication failure To: armand pirvu References: <365D2700-44D4-4849-A434-E78BF6F526C3@gmail.com> <2496e0fb-bb23-ae29-b0d8-1b96456de56d@aklaver.com> <56528F6F-A2FF-4748-BA3B-15E57855F285@gmail.com> Cc: pgsql-general From: Adrian Klaver Message-ID: Date: Thu, 12 Apr 2018 07:08:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <56528F6F-A2FF-4748-BA3B-15E57855F285@gmail.com> 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 04/12/2018 06:59 AM, armand pirvu wrote: Please reply to list also. Ccing list. > Yes and worked fine until two days ago > I use .pgpass So can you connect from wherever the process is run to the server manually? Something like: psql -d birstab -U csidba -h some_server > I will also check and see if there are not too many hands in the cookie jar so to speak and things happen without being communicated > > >> On Apr 12, 2018, at 8:56 AM, Adrian Klaver wrote: >> >> On 04/12/2018 06:51 AM, armand pirvu wrote: >>> Hi there >>> I have a process in place which runs several queries from one host to another one >>> All of a sudden I started noticing authentication failures >>> Like below >>> .009 ms statement: COPY NACDS.tf_show_code_response_person FROM STDIN with csv;",,,,,,,,,"psql" >>> 2018-04-12 00:10:48.765 CDT,"csidba","birstdb",7553,"172.16.20.4:40330",5aceea2e.1d81,1,"UPDATE",2018-04-12 00:10:06 CDT,24/0,0,LOG,00000,"duration: 425 >>> 90.993 ms statement: UPDATE >>> csischema.tf_transaction_person >>> SET >>> is_deleted = 'TRUE', >>> birst_is_deleted = 'TRUE', >>> update_datetime = now()::timestamp(0) >>> WHERE >>> show_id = '984BIOWC18' AND >>> birst_is_deleted = 'FALSE' AND >>> person_transaction_id IN ( >>> SELECT a.person_transaction_id >>> FROM csischema.tf_transaction_person a >>> LEFT JOIN BIOWC.tf_transaction_person b >>> ON a.person_transaction_id=b.person_transaction_id >>> WHERE a.show_id = '984BIOWC18' AND b.person_transaction_id IS NULL >>> ) >>> ;",,,,,,,,,"psql" >>> 2018-04-12 00:10:48.823 CDT,"csidba","birstdb",7755,"172.16.20.4:40455",5aceea58.1e4b,1,"authentication",2018-04-12 00:10:48 CDT,3/20320168,0,FATAL,28P0 >>> 1,"password authentication failed for user ""csidba""","Connection matched pg_hba.conf line 84: ""host all all 0.0.0.0/0 md5""",,,,,,,,"" >>> 2018-04-12 00:10:48.841 CDT,"csidba","birstdb",7756,"172.16.20.4:40456",5aceea58.1e4c,1,"authentication",2018-04-12 00:10:48 CDT,3/20320169,0,FATAL,28P0 >>> 1,"password authentication failed for user ""csidba""","Connection matched pg_hba.conf line 84: ""host all all 0.0.0.0/0 md5""",,,,,,,,"" >>> 2018-04-12 00:10:48.957 CDT,"csidba","birstdb",7759,"172.16.20.4:40459",5aceea58.1e4f,1,"authentication",2018-04-12 00:10:48 CDT,3/20320172,0,FATAL,28P0 >>> pg_hba.conf >>> # "local" is for Unix domain socket connections only >>> #local all all peer >>> local all all md5 >>> # IPv4 local connections: >>> #host all all 127.0.0.1/32 ident >>> host all all 0.0.0.0/0 md5 >>> # IPv6 local connections: >>> host all all ::1/128 ident >>> # Allow replication connections from localhost, by a user with the >>> # replication privilege. >>> #local replication postgres peer >>> #host replication postgres 127.0.0.1/32 ident >>> #host replication postgres ::1/128 ident >>> local replication csidba md5 >>> host replication csidba 127.0.0.1/32 md5 >>> host replication csidba 0.0.0.0/0 md5 >>> local replication repuser md5 >>> host replication repuser 127.0.0.1/32 md5 >>> host replication repuser 0.0.0.0/0 md5 >>> local all repuser md5 >>> host all repuser 127.0.0.1/32 md5 >>> host all repuser 0.0.0.0/0 md5 >>> Did I run in somthing similar to a racong condition ? >>> Any ideas ? >> >> Is the process using the correct password? >> >>> Many thanks >>> — Armand >> >> >> -- >> Adrian Klaver >> adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com