Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAbGd-0004lP-8r for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 14:49:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAbGb-00036c-4y for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 14:49:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAbGa-00036T-RM for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 14:49:12 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAbGU-0003tr-29 for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 14:49:12 +0000 Received: from [188.174.81.245] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1iAbGS-0005CL-5a; Wed, 18 Sep 2019 16:49:04 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id x8IEn2kZ003158 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 18 Sep 2019 16:49:03 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id x8IEn27D003157; Wed, 18 Sep 2019 16:49:02 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 18 Sep 2019 16:49:01 +0200 From: Matthias Apitz To: Adrian Klaver Cc: Marco Ippolito , pgsql-general@lists.postgresql.org Subject: Re: Installed PostgreSQL-11 in Ubuntu 18.04.02 Server Edition: No existing local cluster is suitable as a default target Message-ID: <20190918144901.GA3103@c720-r342378> Reply-To: Matthias Apitz References: <20190918131106.GA167414@sh4-5.1blu.de> <793c3697-dc15-973b-575e-e269cf3b0cad@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <793c3697-dc15-973b-575e-e269cf3b0cad@aklaver.com> X-Operating-System: FreeBSD 13.0-CURRENT r342378 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.11.1 (2018-12-01) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.81.245 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El día miércoles, septiembre 18, 2019 a las 07:41:41a. m. -0700, Adrian Klaver escribió: > On 9/18/19 6:13 AM, Marco Ippolito wrote: > > Thanks Matthias, > > very kind. Hopefully I will get some hints on how to solve my problem. > > You should probably take a look at: > > https://help.ubuntu.com/lts/serverguide/postgresql.html > > FYI, you should set the permission son /usr/lib/postgresql back to root > and use: > > sudo pg_ctl NAK. In my understanding, the dir above the data dir of the cluster should be owned by 'postgres' and the pg_ctl run as 'postgres': # mkdir /data/postgresql11 # chown postgres /data/postgresql11 # su - postgres $ LANG=de_DE.UTF-8 export LANG $ /usr/local/sisis-pap/pgsql/bin/pg_ctl -D /data/postgresql11/data initdb This is stolen from the pages mentioned, i.e. https://www.postgresql.org/docs/11/runtime.html (chapter 18. Server Setup and Operation) and worked out of the box fine for me. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Mientras haya voluntad de lucha habrá esperanza de vencer.