Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 577711C3D1F for ; Tue, 20 Dec 2011 11:11:52 -0400 (AST) Received: from mail-we0-f174.google.com ([74.125.82.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rd1M3-0001Eu-Uz for pgsql-admin@postgresql.org; Tue, 20 Dec 2011 15:11:52 +0000 Received: by werm1 with SMTP id m1so2054045wer.19 for ; Tue, 20 Dec 2011 07:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=47ExTH5KM7lShBbUTgRpblabNIBs7XzZZcV2hRgbRI0=; b=Aos+IO3QSa9kiYAKrVpDAEci8XrG9zPNza4ZXYL92RVqWbI4HRbOyk12ohNVv17eZr tu/ISC1eOazAVnJ7aSrHXAtYBmTiZEHQK5zxjow7wmyS5/wgqo3Mgsr8fAzbvcqWs1se AdqdHm39AVRSmPV3Ul8dHIJ8Kk3xM0z+K/Ntg= Received: by 10.216.131.152 with SMTP id m24mr1623639wei.56.1324393895104; Tue, 20 Dec 2011 07:11:35 -0800 (PST) Received: from zeus.local (88-149-210-234.dynamic.ngi.it. [88.149.210.234]) by mx.google.com with ESMTPS id u5sm2314361wbm.2.2011.12.20.07.11.33 (version=SSLv3 cipher=OTHER); Tue, 20 Dec 2011 07:11:34 -0800 (PST) Message-ID: <4EF0A59B.9080202@gmail.com> Date: Tue, 20 Dec 2011 16:11:23 +0100 From: Alexander Fortin User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Can't get pg_upgrade work for 8.4 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201112/102 X-Sequence-Number: 38860 Hi folks. I've been struggling a while with 9.1.2 pg_upgrade on Ubuntu 10.04.3, but I can't find a way out so I've subscribed to this ML, I hope it's the right place. So, I've got an 8.4 (Ubuntu packaged) postgresql cluster that needs to be upgraded to 9.1 I can't use the Ubuntu packaged v9.1.1 because of a bug with pg_upgrade (cfr http://postgresql.1045698.n5.nabble.com/Problem-with-pg-upgrade-9-0-gt-9-1-td4813453.html) so I'm going with a compiled 9.1.2, but seems there's another problem, but because of pg_ctl this time. This is what happens: postgres@box:~/8.4/main$ /usr/local/postgresql-9.1.2/bin/pg_upgrade --old-bindir=/usr/lib/postgresql/8.4/bin/ --new-bindir=/usr/local/postgresql-9.1.2/bin/ --check --old-datadir=/var/lib/postgresql/8.4/main/ --new-datadir=/var/lib/postgresql/8.4/main/main9.1/ --link --logfile=/tmp/logging_pgupgrade --old-port=5432 --new-port=15432 --verbose Running in verbose mode Performing Consistency Checks on Old Live Server ------------------------------------------------ Checking current, bin, and data directories ok Checking cluster versions ok Checking database user is a superuser ok Checking for prepared transactions ok Checking for reg* system oid user data types ok Checking for contrib/isn with bigint-passing mismatch ok Checking for large objects ok "/usr/local/postgresql-9.1.2/bin/pg_ctl" -w -l "/tmp/logging_pgupgrade" -D "/var/lib/postgresql/8.4/main/main9.1" -o "-p 15432 -b" start >> "/tmp/logging_pgupgrade" 2>&1 Checking for prepared transactions ok Checking for presence of required libraries ok *Clusters are compatible* "/usr/local/postgresql-9.1.2/bin/pg_ctl" -w -l "/tmp/logging_pgupgrade" -D "/var/lib/postgresql/8.4/main/main9.1" stop >> "/tmp/logging_pgupgrade" 2>&1 This works, but only if I previously started up the 8.4 cluster. Than, I want to run it without the --check options. So I stop the 8.4 cluster (otherwise pg_upgrade will complain), and this is where I get stuck: postgres@box:~/8.4/main$ /usr/local/postgresql-9.1.2/bin/pg_upgrade --old-bindir=/usr/lib/postgresql/8.4/bin/ --new-bindir=/usr/local/postgresql-9.1.2/bin/ --old-datadir=/var/lib/postgresql/8.4/main/ --new-datadir=/var/lib/postgresql/8.4/main/main9.1/ --link --logfile=/tmp/logging_pgupgrade --old-port=5432 --new-port=15432 --verbose Running in verbose mode Performing Consistency Checks ----------------------------- Checking current, bin, and data directories ok Checking cluster versions ok "/usr/lib/postgresql/8.4/bin/pg_ctl" -w -l "/tmp/logging_pgupgrade" -D "/var/lib/postgresql/8.4/main" -o "-p 5432 -c autovacuum=off -c autovacuum_freeze_max_age=2000000000" start >> "/tmp/logging_pgupgrade" 2>&1 There were problems executing "/usr/lib/postgresql/8.4/bin/pg_ctl" -w -l "/tmp/logging_pgupgrade" -D "/var/lib/postgresql/8.4/main" -o "-p 5432 -c autovacuum=off -c autovacuum_freeze_max_age=2000000000" start >> "/tmp/logging_pgupgrade" 2>&1 pg_ctl failed to start the old server Failure, exiting Now, the 8.4 cluster actually does get started by the above pg_ctl command, but seems that the -w option is somehow broken (note that the packaged Ubuntu postgresql 8.4 doesn't use pg_ctl but pg_ctlcluster instead), causing pg_upgrade to fail. Any suggestion on how to fix this? Thank you very much for you time, best wishes -- Alexander Fortin http://about.me/alexanderfortin/