Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xxssb-0006VN-JV for pgsql-admin@arkaria.postgresql.org; Mon, 08 Dec 2014 07:37:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xxssb-0008QY-3e for pgsql-admin@arkaria.postgresql.org; Mon, 08 Dec 2014 07:37:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XxssZ-0008QR-Ut for pgsql-admin@postgresql.org; Mon, 08 Dec 2014 07:37:12 +0000 Received: from mx2.exxoss.com ([109.69.220.67]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XxssW-0007tV-69 for pgsql-admin@postgresql.org; Mon, 08 Dec 2014 07:37:10 +0000 Received: from 217.64.252.174.mactelecom.net ([217.64.252.174] helo=[10.21.0.3]) by mx2.exxoss.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XxssR-0005fM-JQ; Mon, 08 Dec 2014 08:37:05 +0100 Message-ID: <5485551F.9080407@exxoss.com> Date: Mon, 08 Dec 2014 08:37:03 +0100 From: Matthieu Lejeune User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Peter Eisentraut , pgsql-admin@postgresql.org References: <5481838E.6020409@exxoss.com> <54827D54.6010907@gmx.net> <5482BAF2.70307@exxoss.com> <54830B26.7050602@gmx.net> In-Reply-To: <54830B26.7050602@gmx.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 217.64.252.174 X-SA-Exim-Rcpt-To: pgsql-admin@postgresql.org, peter_e@gmx.net X-SA-Exim-Mail-From: matthieu.lejeune@exxoss.com X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on taupeman X-Spam-Level: X-Spam-Status: No, score=-102.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP,USER_IN_WHITELIST autolearn=ham version=3.3.1 Subject: Re: Problem pg_upgradecluster from 9.1 to 9.3 X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:26:47 +0000) X-SA-Exim-Scanned: Yes (on mx2.exxoss.com) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi, I have upgraded the postgresql-common and postgresql-client-common : ii postgresql-9.1 9.1.14-1.pgdg70+1 amd64 object-relational SQL database, version 9.1 server ii postgresql-9.3 9.3.5-1.pgdg70+1 amd64 object-relational SQL database, version 9.3 server ii postgresql-client-9.1 9.1.14-1.pgdg70+1 amd64 front-end programs for PostgreSQL 9.1 ii postgresql-client-9.3 9.3.5-1.pgdg70+1 amd64 front-end programs for PostgreSQL 9.3 ii postgresql-client-common 163 all manager for multiple PostgreSQL client versions iF postgresql-common 163 all PostgreSQL database-cluster manager But I got the same error : root@p2tstl2mondbm:/var/lib# pg_upgradecluster 9.1 main --method=upgrade Disabling connections to the old cluster during upgrade... Restarting old cluster with restricted connections... Stopping old cluster... Creating new cluster 9.3/main ... config /etc/postgresql/9.3/main data /var/lib/postgresql/9.3/main locale C Flags of /var/lib/postgresql/9.3/main set as ---------------C port 5433 Error: could not create symlink /var/lib/postgresql/9.1/main/pg_ident.conf Re-enabling connections to the old cluster... 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# Thanks a lot for your help Matthieu Le 6/12/14 14:56, Peter Eisentraut a écrit : > 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. > > > -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin