Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TwPB1-0002kR-Nu for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Jan 2013 03:33:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TwPB0-0008SP-Nc for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Jan 2013 03:33:02 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TwPAy-0008SH-T0 for pgsql-bugs@postgresql.org; Sat, 19 Jan 2013 03:33:00 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TwPAw-0006L6-KY for pgsql-bugs@postgresql.org; Sat, 19 Jan 2013 03:33:00 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1TwPAv-0007Q9-IF; Fri, 18 Jan 2013 22:32:57 -0500 Date: Fri, 18 Jan 2013 22:32:57 -0500 From: Bruce Momjian To: giomac@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7815: Upgrading PostgreSQL from 9.1 to 9.2 with pg_upgrade/postgreql-setup fails - invalid status retrieve Message-ID: <20130119033257.GC2857@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, Jan 18, 2013 at 10:19:48PM +0000, giomac@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 7815 > Logged by: George Machitidze > Email address: giomac@gmail.com > PostgreSQL version: 9.2.2 > Operating system: Fedora 18 Linux > Description: > > https://bugzilla.redhat.com/show_bug.cgi?id=896161 > Upgrading PostgreSQL from 9.1 to 9.2 with pg_upgrade/postgreql-setup fails > with invalid message "There seems to be a postmaster servicing the old > cluster". Looks like pg_upgrade is checking pid file too early without > waiting for master process to exit: > > open("/var/lib/pgsql/data-old/postmaster.pid", O_RDONLY) = 5 How are you shutting down the postmaster? Are you use pg_ctl -w stop? If not, you have to wait for the server to actually shut down before starting pg_upgrade. pg_upgrade is not going to do that waiting. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs