Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fK7K4-00014w-F9 for pgsql-general@arkaria.postgresql.org; Sat, 19 May 2018 19:15:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fK7K3-0001SZ-6l for pgsql-general@arkaria.postgresql.org; Sat, 19 May 2018 19:15:19 +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 1fK7K1-0001Ri-CG for pgsql-general@lists.postgresql.org; Sat, 19 May 2018 19:15:18 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fK7Jw-0007SF-Aa for pgsql-general@postgresql.org; Sat, 19 May 2018 19:15:16 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D680422110; Sat, 19 May 2018 15:15:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 19 May 2018 15:15:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.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=fm2; bh=3t0HBMUwz8tZ5fvwSiHH7XYLCiGhy YyvhPU6e5HxySU=; b=MR5CEojyF5cFdMotMHWmTuRW0m5g92ECbcmI7Op6faezD o7UP0GXjQbqDv93GTONDp8YvDDOzY3el2fU0Uq4zvIO/VXRqQ2XNgX4do/a4me+0 iU4nLy/ivAlxxxwRiqdcyfJTlFzkcwIg47Rjec32VBzGIykMzbWh6VuOK5YN3pfG nX/jGuNKnX3VOZ1U48aKdSSpGP4e5RusqeARPtUsuv4Tnr0tUjFugwtKyhqhhaAA a2oDyfUyTcLc3zm0FtuPELmSpfzXwSI81Ao0ttVdT0Tumop/GHFv5uH7FenibhtG n656N9SuuuNDz84M1ABWpFCqN4dCY8gAWpGYmQfHg== 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=fm2; bh=3t0HBM Uwz8tZ5fvwSiHH7XYLCiGhyYyvhPU6e5HxySU=; b=VXfEYupJ+vcBeV9m+WvZQI 6FwxOpv+8c9s0OI1tm8AtdeX9zsipJm4qDyOkYjS4WpfJHskzTtujCzA25culQdD 72ISzcQvbtOkuDJYzF81mVVNJG5qPUSTbMig6s75KL21DGTlVhRfFQ5BmUukHA/r JdUm4i5IpSpegUa65Pn+VHuTnJRu6x3MGpe5uWldfYehUEuJcEZG+GtK3MTXd7yc +86WUBhJKBAs85PAiM5IEiHDEF4KsQJnlef3hFDbFvAMcbvJMvjTLhu4BRl9Nc8L nHTwbxvc4f5yjKGe/nG/8TITQTlVt0ry4NmRoHKPvW+ayE9xIkPh9IrNtyaaH5bg == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 23C8BE4EEF; Sat, 19 May 2018 15:15:08 -0400 (EDT) Subject: Re: initdb failing (10.4 centos7) To: Michael Nolan , "pgsql-general@postgresql.org" References: From: Adrian Klaver Message-ID: <6c034453-bc77-a261-635e-e605c3574ea3@aklaver.com> Date: Sat, 19 May 2018 12:15:07 -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: 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: Precedence: bulk On 05/19/2018 12:10 PM, Michael Nolan wrote: > initdb is failing on Centos 7 with 10.4 because the install procedure > does not change the ownership of the /usr/local/pgsql directory to > postgres. > > Changing the ownership fixes the problem, but the install procedure > should do this. Did you follow the below?: https://www.postgresql.org/download/linux/redhat/ " For RHEL / CentOS / SL / OL 7 or Fedora 27 and later derived distributions: postgresql-setup initdb systemctl enable postgresql.service systemctl start postgresql.service " If you did, what user did you do it as? > -- > Mike Nolan -- Adrian Klaver adrian.klaver@aklaver.com