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 1kihCw-00084h-O6 for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 17:06:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kihCv-0005yu-E9 for pgsql-general@arkaria.postgresql.org; Fri, 27 Nov 2020 17:06:53 +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 1kihCv-0005ym-6I for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 17:06:53 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kihCo-0004LX-Ee for pgsql-general@lists.postgresql.org; Fri, 27 Nov 2020 17:06:52 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C24885C0078; Fri, 27 Nov 2020 12:06:44 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 27 Nov 2020 12:06:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=U oIxXu+0ORnLUe9uY22GL3Np8GnUTKR/ADSK8bfVH/M=; b=JOGcLuK+8vB4AKd0Q LGZOfsb5uwf2wHBcWih+o/Po79KNdQL/+T/3Ld2ZjucJlB4+ZAgLrXTyoV9k6vOK G/eV74J2htmW/CcOzCv+R0EolhwF7goEMh2USG5ok5QslPTj0JvA6YSbASEn+2FL 7TOtSeakWS8ZfuFbSiWnMX2jDIVd72ENxewNqPPD45kqtk7EYd/v8yY77foSFtNC iggXLTjnN0zFELPHmcLlvxnEUxKizqmeS/mKw5jMtdSc9hS5EWQsq/4E/TWtk/qJ MwJSjxCho5qdgkZ8IjpJDhTTkDPMNS1ENDXfYcdDFRdEJW1m5dEYhYJJifHUVndC HrXDQ== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=UoIxXu+0ORnLUe9uY22GL3Np8GnUTKR/ADSK8bfVH /M=; b=XDguQx1JDClOs0I1iQYcaNosybFPUPNMP6N6AHmjRvh1r9SUo7L316BAE oKncPKnIAys3Qa0j8CnPlWY5rVBfv3Rchacfk9MpODt7c/xUh7TRXWwzZH1GbLPH xPtQAWOejZ1va+gYSXUwCG3Y6xXbBKrglAYxUxJddBZ8iz21Q/doguUSSI6f3xqh X8WYCTkjlHO/zmWBppL2GiSbCpGpWtaz66f7IgddgR5vsE8QJlLdYpTstMs/CHb5 IzXriIdkvrIEVX4eln6a/dIaFg1owYsEL9CbiK6lCnpG7EQQa1P7KpV/9LX4YwZb 718KpXU/PsMSE4iwArstk7ZdvBrEA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudehgedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeeghfejudduuefgleevudfgieffvddvuddtjeetueeh fffhiefgueetuedtuddvjeenucffohhmrghinheptddrtddrtddrtddpuddvjedrtddrtd druddptgihsggvrhhtvggtqdhpohhsthhgrhgvshhqlhdrtghomhenucfkphepjeehrddu jedvrdduledrudefleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.4] (75-172-19-139.tukw.qwest.net [75.172.19.139]) by mail.messagingengine.com (Postfix) with ESMTPA id D2E483064AAF; Fri, 27 Nov 2020 12:06:43 -0500 (EST) Subject: Re: How to debug authentication issues in Postgres To: Hemil Ruparel , Laurenz Albe Cc: "pgsql-generallists.postgresql.org" References: <5a5ca12d399ce798d027575f1271e831a482e9be.camel@cybertec.at> <555b511d7047970c9f940f6da62b91416831a73e.camel@cybertec.at> From: Adrian Klaver Message-ID: Date: Fri, 27 Nov 2020 09:06:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 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 11/27/20 12:37 AM, Hemil Ruparel wrote: > The log says: > > FATAL:  password authentication failed for user "centos" > > DETAIL:  Connection matched pg_hba.conf line 88: "host    user > password 0.0.0.0/0               scram-sha-256" To me that looks like a strange line for pg_hba.conf and I don't see it in the pg_hba.conf file you sent earlier. What is line 88 in your pg_hba.conf? > > I can't understand where is the problem as both psql and pgadmin connect > without problems using the same password > > On Fri, Nov 27, 2020 at 1:46 PM Hemil Ruparel > > wrote: > > Sorry. This was the replication section: > local   replication     all                                     peer > host    replication     all 127.0.0.1/32 >      scram-sha-256 > host    replication     all             ::1/128 > scram-sha-256 > > On Fri, Nov 27, 2020 at 1:41 PM Laurenz Albe > > wrote: > > On Fri, 2020-11-27 at 13:34 +0530, Hemil Ruparel wrote: > > I have restarted postgres quite a few times to try making > configuration changes and it > >  is always back up. I don't know how. Feels weird to me. I > didn't add the line > >  "local replication all". It was there by default > > I don't believe that. > > This is how it looks by default: > > # Allow replication connections from localhost, by a user with the > # replication privilege. > local   replication     all >  trust > host    replication     all 127.0.0.1/32 >           trust > host    replication     all             ::1/128 >  trust > > Yours, > Laurenz Albe > -- > Cybertec | https://www.cybertec-postgresql.com > > -- Adrian Klaver adrian.klaver@aklaver.com