Re: Problem pg_upgradecluster from 9.1 to 9.3 - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: Problem pg_upgradecluster from 9.1 to 9.3
Date
Msg-id 54830B26.7050602@gmx.net
Whole thread Raw
In response to Re: Problem pg_upgradecluster from 9.1 to 9.3  (Matthieu Lejeune <matthieu.lejeune@exxoss.com>)
Responses Re: Problem pg_upgradecluster from 9.1 to 9.3  (Matthieu Lejeune <matthieu.lejeune@exxoss.com>)
List pgsql-admin
On 12/6/14 3:14 AM, Matthieu Lejeune wrote:
> Creating new cluster 9.3/main ...
>   config /etc/postgresql/9.3/main
>   data   /var/lib/postgresql/9.3/main
>   locale C
>   port   5433
> Error: could not symlink configuration file
> Error during cluster dumping, removing new cluster
> pg_ctl: PID file "/var/lib/postgresql/9.1/main/postmaster.pid" does not
> exist
> Is server running?
> Error: could not reload old cluster, please do that manually
> root@p2tstl2mondbm:/var/lib/postgresql#

It's trying to symlink the configuration files into the data directory
before calling pg_upgrade.  I think it complains that the symlinks are
already there, from a previous runs.  Could could try manually removing
them from the data directory.

This was apparently fixed in postgresql-common version 155 (see
https://github.com/petere/postgresql-common/commit/323253ed95ec00faaf042217749e3f4c7e3617b3).
 If you want to, you could also try to get an updated version from
apt.postgresql.org.



pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Does "pg_ctl stop" wait for archiving to complete?
Next
From: Bruce Momjian
Date:
Subject: Re: Missing timeline history file after execution of pg_upgrade