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 1mDSzc-0005J4-Gh for pgsql-general@arkaria.postgresql.org; Tue, 10 Aug 2021 14:44:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mDSzb-0001zW-EZ for pgsql-general@arkaria.postgresql.org; Tue, 10 Aug 2021 14:44:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDSza-0001zN-FW for pgsql-general@lists.postgresql.org; Tue, 10 Aug 2021 14:44:35 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDSzT-0003pI-Ls for pgsql-general@lists.postgresql.org; Tue, 10 Aug 2021 14:44:34 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7F1485C01D4; Tue, 10 Aug 2021 10:44:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 10 Aug 2021 10:44:25 -0400 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=fm3; bh=V ZyFhzE05PnRbpUoQIRckfO6xPCoTBAQufG+bmyF8PQ=; b=k8bivrmoyjiYwuZiz I6DDsMGqliUYAfoNGts9EJvkGi44Uq9psvLMWnAkJf6Ssq1YD+lmuw9W6zGZCFSj aGkBPDByIHtu27sIIF8fuYIGju95YAqDXJhZcGkorpgbyDCON/oxojI/lb2QJt8/ giP2zejvXMm6COx43B0IDl7RjQBnday6edItY+s84GxMajhX+QUgjgF/tlc8yxUJ FWnYKyhydNcc3G0tXjDO3TToj44XevmY0H/JnjlIuaSGdJliBokimvF4UW3hkvGj GD2C3hRNaIF8MujurAVsss3UmA1vVgBGpQB/Iup1W/HJrA7BLZGH13KyeyruwpKI 221LQ== 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=fm3; bh=VZyFhzE05PnRbpUoQIRckfO6xPCoTBAQufG+bmyF8 PQ=; b=ccjFa8igYdrwGdHN3+n0rqS8ZDlX9Vtmrq+LL64PQ3bvx1hdQ1uH+wU83 7mVS0/BNCVeF0QsR0+KH79/cxyDvdZWtNVaXah1o4tUxbYPTJovzbzBSQ8TAPB8y r6IQiqOlJoeMgbPBzbnDkN8M9D1Bh17NT7C9AvEAyLJE2XaWt3KgjZrB3Txbv2vM 2UDNiqPorB4mJrk5zmz9db7uC/olg/4ADv5kKsZK2pe6FATDd8ZTkDmjXoENGscQ sCBpvD+EeL24ByIq9cNxceCUVj+P6MmO6utZ79JwclBxgFCdEZModXS2bnQTUW9z ewd90mUZ9WIOVzz8+pAhHsCdzAILg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrjeelgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetjedvteffje euvdelieeffeehuedthffgvdfhhffhkedvudevgedvjedufefgveenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 Aug 2021 10:44:24 -0400 (EDT) Subject: Re: php connection failure To: ourdiaspora Cc: "pgsql-general@lists.postgresql.org" References: <79e859dc-9e70-cb72-85f8-e31786ad224d@aklaver.com> From: Adrian Klaver Message-ID: <5ae56ed6-ca48-b809-1e2d-85c36ca42f3e@aklaver.com> Date: Tue, 10 Aug 2021 07:44:23 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/10/21 1:59 AM, ourdiaspora wrote: > > On Sunday, August 8th, 2021 at 1:51 AM, Adrian Klaver wrote: > >> 1. Get rid of the first local line . >> 2. Then for the remaining local line below change peer to trust and >> >> restart Postgres. > > Thank you, but repeat error occurred: > > sudo sudo service postgresql restart > [ ok ] Restarting PostgreSQL 9.6 database server: main. > > psql -d cpacweb -U cpaca > psql: FATAL: Peer authentication failed for user "cpaca" Then either: 1) There is another local line with peer that you missed. 2) You changed the wrong pg_hba.conf file. What was the path of the file you changed? What is returned when you do?: ps ax | grep postgres What do you see in: sudo vi /var/log/postgresql/postgresql-9.6-main.log when you do a restart? -- Adrian Klaver adrian.klaver@aklaver.com