From: Christoph Berg <myon@debian.org>
To: Vijaykumar Jain <vjain@opentable.com>
Cc: pgsql-pkg-debian@postgresql.org
Subject: Re: postgresql-11 installation errors via deb package on ubuntu 16
Date: Tue, 19 Mar 2019 11:04:57 +0100
Message-ID: <20190319100457.GC23312@msg.df7cb.de> (raw)
In-Reply-To: <CAE7uO5iYDWe4rcH+rDw6NOd_HX75sUaggouL-5FjzjZGbBgqYA@mail.gmail.com>
References: <CAE7uO5iYDWe4rcH+rDw6NOd_HX75sUaggouL-5FjzjZGbBgqYA@mail.gmail.com>
Re: Vijaykumar Jain 2019-03-18 <CAE7uO5iYDWe4rcH+rDw6NOd_HX75sUaggouL-5FjzjZGbBgqYA@mail.gmail.com>
> Hey Guys,
>
> I hope this is the right dist.
Hi,
it is, thanks for the report.
> we are having issues reported similar to
> https://stackoverflow.com/questions/2748607/how-to-thoroughly-purge-and-reinstall-postgresql-on-ubun...
> which was ages back :) , but it is repeated.
> 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/(?<!\\)\${ <-- HERE ([^}]+)}/ at
> /usr/sbin/pam_getenv line 78.
(This is a bug in the pam package, not in postgresql-*.)
> 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
This happens when you didn't fully remove the old cluster and
/var/lib/postgresql/11/main is still present:
$ sudo pg_createcluster 11 foo
$ sudo rm -rf /etc/postgresql/11/foo/
$ sudo pg_createcluster 11 foo
Configuring already existing cluster (configuration: /etc/postgresql/11/foo, data: /var/lib/postgresql/11/foo, owner: 111:118)
Error: move_conffile: required configuration file /var/lib/postgresql/11/foo/postgresql.conf does not exist
To fix, simply delete the data directory.
Christoph
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-pkg-debian@postgresql.org
Cc: myon@debian.org, vjain@opentable.com
Subject: Re: postgresql-11 installation errors via deb package on ubuntu 16
In-Reply-To: <20190319100457.GC23312@msg.df7cb.de>
References: <CAE7uO5iYDWe4rcH+rDw6NOd_HX75sUaggouL-5FjzjZGbBgqYA@mail.gmail.com> <20190319100457.GC23312@msg.df7cb.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox