Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZHoT-00060l-U1 for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 10 Jan 2018 14:57:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZHoS-0000eL-Uq for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 10 Jan 2018 14:57:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eZHoS-0000eA-Bz for pgsql-pkg-yum@lists.postgresql.org; Wed, 10 Jan 2018 14:57:08 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eZHoO-00050U-Tx for pgsql-pkg-yum@postgresql.org; Wed, 10 Jan 2018 14:57:06 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 453E020E62; Wed, 10 Jan 2018 09:57:01 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Wed, 10 Jan 2018 09:57:01 -0500 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=fm1; bh=8nzdDB 4NTSbV/fl3PqzwjlO9ox35kWS4APmwBr5Ngw8=; b=ht0njt+3gbO7/F+7kXopUs TarT5JfD1SZLJhkjV+v1eqJvJciZevxKone9nMA1uZQyyrk7nhV9aLa2OSW/OwYE aODBpaZKLXFWjPrN0a2jNpR8okSXAwS7xN1z7Rzr0VgjXm4H6116Ai0vVBvmvIaO wu4kjnUwkNNXNywrCS4o0n+xDAxbeJ7EaperRDf93OKQCquXrweFvjit7bEnWjM3 /NG88NUBrcgNxF6BS9hKvR/3JRD6554N1dHDR2E7oahfnqWwobfAxTiqbHtvqjms DZ7GZbSlOqC1hM4aUbwyPh75A0F/sWHdSDkU2AEUZacW1tltOCvHyh4YN2MpQBGA == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id E8DCA7E34B; Wed, 10 Jan 2018 09:57:00 -0500 (EST) Subject: Re: pgbouncer packaging issue To: Christoph Berg , pgsql-pkg-yum@lists.postgresql.org, Brandon Snider , pgsql-pkg-yum@postgresql.org References: <1B26AE81-A323-48BF-BA9D-25E936A35A9E@df7cb.de> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 10 Jan 2018 09:56:59 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1B26AE81-A323-48BF-BA9D-25E936A35A9E@df7cb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/9/18 16:11, Christoph Berg wrote: > Am 9. Januar 2018 19:59:04 MEZ schrieb Peter Eisentraut : >> On 1/9/18 13:47, Brandon Snider wrote: >>> You're installing /usr/lib/tmpfiles.d/pgbouncer.conf to create the >>> /var/run/pgbouncer dir, but the permissions on that dir are too >>> restrictive -- 700 -- for any file to be read by any user except >>> pgbouncer and root. In my situation, for whatever reason my PHP >>> implementation can't read unix sockets in /tmp, >> >> That might need further explanation. > > That's likely systemd at work. By default, each process gets its own /tmp bind-mounted. Right. After further off-list discussion, the actual bug here is that pgbouncer should puts its socket into /var/run/postgresql, which is the standard location on that platform. But that doesn't work because pgbouncer runs under a separate user and doesn't have permission there. This has been previously reported on this list. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services