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 1h5tNn-0002Zv-RT for pgsql-general@arkaria.postgresql.org; Mon, 18 Mar 2019 14:36:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h5tNm-0007yV-9n for pgsql-general@arkaria.postgresql.org; Mon, 18 Mar 2019 14:36:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5tNl-0007y1-3x for pgsql-general@lists.postgresql.org; Mon, 18 Mar 2019 14:36:54 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5tNh-0007PI-Cq for pgsql-general@lists.postgresql.org; Mon, 18 Mar 2019 14:36:51 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 70FA722164; Mon, 18 Mar 2019 10:36:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 18 Mar 2019 10:36:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Z yRwBkZNfp9HCm3zXv1FsGD6rLBRr2qNhLC9IbSZQXA=; b=RgxSVTY1OIBjqKpf9 plKykz6JEUgm9ksJs7DHm6+JN8X9aBXE0JQNeASmUiNfSm3CHN6hCilXNgiSUybX xxaRHE90ndumUlzwsn3DeySiORzSuRbBJAC4h9Sj3+CqOSghhhE83J9wpjXOn0lk hTWF1jeWbCrs3TRHPl9w84ly36QXHf4EIBjdwnq9AuPuz+v0JHACTVbX3XaRCs34 toJPEBUmI1ODNZdQ2LZ7gvGPHegxcinletVXXCCfAZR9QZpYmu9LZLq47/s96nC6 Zm4qEBskHsbJlBl2zMXRhrR6kNoy3LbjpjpbnDsU6rjNwRhTjYY3ZfR1zToryHmq NpELg== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=ZyRwBkZNfp9HCm3zXv1FsGD6rLBRr2qNhLC9IbSZQ XA=; b=ZvyyVbJhRmpWU6RpuRB27gH/q8J0B5i65n86BUlWB8zZ30s24vX0jAaLu 7UAgSyUZU1ctXFeAtvWLrFTLdFvfLojW0PVCvCaL/sxLrUOSWwVPntlrqL7x8ZNh mQAx8tk1iI8UXZY1pKTomTt8mpxeJvIyHGZ5JT1GeFggeGec33Vz0YoberhC8xrN 6vawacU25Mf5+Ap39txi2z5r0LUI5tKx0c0mHarhMHjWcl9qQgFA6XNRPZsAVrxP Nbvr0IbSqaQNZBK2adl0AJaBMHgS4rJ1zkdC1esP8Cy1QKb5W72E9sLt8u9aVty6 fu+/FH3vdHQlQYMegPz0ENE4qQcTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddriedugdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpshhtrggtkhhovhgvrhhf lhhofidrtghomhenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecu vehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 37D57E4210; Mon, 18 Mar 2019 10:36:47 -0400 (EDT) Subject: Re: postgresql-11 installation errors via deb package on ubuntu 16 To: Vijaykumar Jain , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <4c39b821-b89c-9b52-37a0-905c824e15ae@aklaver.com> Date: Mon, 18 Mar 2019 07:36:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 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 3/18/19 7:24 AM, Vijaykumar Jain wrote: > Hey Guys, > > I do not know if this list is also for asking ubuntu package related queries. > > We have been recently getting a lot of below errors, as a result of > which the entire postgresql installation gets broken. > the config folder /etc/postgresql/* is empty, initdb fails to > initialize the db and we cannot move forward. > > the problem is this is happening only on a certain set of servers, but not all. > so i do not know if this is an issue with the package or anything else? > maybe bad mirror? Per the package below the servers are all Xenial, correct? More below. > > i came across a similar issue but this is ages back. > https://stackoverflow.com/questions/2748607/how-to-thoroughly-purge-and-reinstall-postgresql-on-ubuntu > and it was marked close for some reasons. > i get the part that removing everything and reinstalling the package > resolves the issue, > > > 24 service postgresql stop > 25 rm -rf /etc/postgresql* > 26 rm -rf /var/lib/postgresql* > 27 rm -rf /var/run/postgresql* > 28 rm /var/cache/apt/archives/postgresql-* > 29 apt-get purge postgresql-11 > 30 apt-get purge postgresql-client-common > 31 rm -rf /var/log/postgresql* > 32 puppet agent -t --debug --verbose (this takes care of installation) So what is Puppet actually doing? Do you have Postgres clusters that exist before you try the initial install? > > and then things are fine from here on. > > > > error messages from /var/log/apt/term.log > > > Preparing to unpack .../postgresql-11_11.2-1.pgdg16.04+1_amd64.deb ... > Unpacking postgresql-11 (11.2-1.pgdg16.04+1) ... > Processing triggers for postgresql-common (199.pgdg16.04+1) ... > Building PostgreSQL dictionaries from installed myspell/hunspell packages... > Removing obsolete dictionary files: > Setting up postgresql-11 (11.2-1.pgdg16.04+1) ... > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Unescaped left brace in regex is deprecated, passed through in regex; > marked by <-- HERE in m/(? /usr/sbin/pam_getenv line 78. > Configuring already existing cluster (configuration: > /etc/postgresql/11/main, data: /var/lib/postgresql/11/main, owner: > 112:118) > Error: move_conffile: required configuration file > /var/lib/postgresql/11/main/postgresql.conf does not exist > Error: could not create default cluster. Please create it manually with > > pg_createcluster 11 main --start > > ---- > all installation happen via > deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 11 > > this has been really painful to debug, coz i do not know how randomly > we get these errors and sometimes not. > > > > Regards, > Vijay > > -- Adrian Klaver adrian.klaver@aklaver.com