Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYGxe-0006ze-TW for pgsql-general@arkaria.postgresql.org; Mon, 11 May 2020 22:31:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYGxc-0000Rf-MY for pgsql-general@arkaria.postgresql.org; Mon, 11 May 2020 22:31:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYGxa-0000Kv-Vn for pgsql-general@lists.postgresql.org; Mon, 11 May 2020 22:31:44 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYGxV-0003dk-Ui for pgsql-general@postgresql.org; Mon, 11 May 2020 22:31:42 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 63AA65C006D; Mon, 11 May 2020 18:31:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 May 2020 18:31:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=O w/1mcHri8faQhFQdD6AK0kvIHXsdw/lbDdABHC6g5o=; b=iFcEMB5SJjU44mcFa CyrckdqHxqYaIEQCdu0WqzJH4dYqmQpSaZ7coI3xszvS46TZn5w6H3B5VTR04xul 0VhnGPh2uLU7jekccroY4K4c6SJBbeG94IK0RmHWId5j7jU/mUJLq8hhH8gW86vz 9IXTzI3Ez58kkpCy9k2vvPTURKmJxLF689K1vhzpsZDPgQLrxRNWgDR96/6SDRbI PBlW8b2/TyLTKuW1tXTT0SXQ8fnPHFrW8zYaCY0MsMDG7PLFXXu6bSUBjGsVSa8K K9+lRFyatskeBJVLLSolU0UlJRLkIVK2CwBFGCg0cz1dCDjgKr8yu0au/ZM6MUlq 1ohaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=Ow/1mcHri8faQhFQdD6AK0kvIHXsdw/lbDdABHC6g 5o=; b=dO5csmm1/ePat+jMmoYasvsFlV6PIeLYz6+n2t6jzidnh66XPl5RXFyUP DkO3p48I4JUk8lhXKS1Tb3f6lFjFjD4PRQmofFE5q26TwNTgW09tKtloCU7rQf2/ qyHRtzReaM4ppBHoCh7Fm3iDGUxXTUJ4KKZET+57r7kIRrj8LAr7SyiQ+WQaDvFv +Oqo6yLcXVjn/I1nhIfnscKTr2ZifTEn/Jquhh3ei/fMWTct0NMm7GnQhwf8fGLz tFRmc5JpZP88e1B9pEaP8NcZpu1DBSOQG/sbqi21JsqxfkhlAG+6fEPRYEd0guu+ JkIKTpnG57YfjM8x12BFXdp+8ZhGQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrledugdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeetvdetgefghf ehjeefjeekiedtgeekvdeuuefhgfefjeehveekfedvtdelieetgeenucffohhmrghinhep phhoshhtghhrvghsqhhlqdgrrhgthhhivhgvrdhorhhgnecukfhppeejhedrudejvddrhe drvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 9A61C30662A6; Mon, 11 May 2020 18:31:34 -0400 (EDT) Subject: Re: Upgrade Process Says "The database server was not shut down cleanly" but it was To: TalGloz , pgsql-general@postgresql.org References: <1588542797966-0.post@n3.nabble.com> <1588543907769-0.post@n3.nabble.com> <1f509a30-e09f-d0bd-e48f-994146a1fb08@aklaver.com> <1589233550808-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <188fe25e-4001-4df3-9287-2f89eea84cfe@aklaver.com> Date: Mon, 11 May 2020 15:31:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <1589233550808-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/11/20 2:45 PM, TalGloz wrote: > Well I tried your steps, both Postgres 10 and 12 are in perfect running > conditions and were shut down using the "systemctl" command. When I execute: > > /usr/pgsql-12/bin/pg_upgrade --old-bindir=/usr/pgsql-10/bin/ > --new-bindir=/usr/pgsql-12/bin/ --old-datadir=/var/lib/pgsql/10/data > --new-datadir=/var/lib/pgsql/12/data --old-options '-c > config_file=/var/lib/pgsql/10/data/postgresql.conf' --new-options '-c > config_file=/var/lib/pgsql/12/data/postgresql.conf' --check The --*-options are redundant as you have already pointed pg_upgrade at them with --*-datadir. Not sure it has anything to do with this, but you might want to take them out just to be sure. Have you run: ps ax| grep post before and between steps to make sure there is not a Postgres instance running? > > I get: > > Performing Consistency Checks > ----------------------------- > Checking cluster versions ok > Checking database user is the install user ok > Checking database connection settings ok > Checking for prepared transactions ok > Checking for reg* data types in user tables ok > Checking for contrib/isn with bigint-passing mismatch ok > Checking for tables WITH OIDS ok > Checking for invalid "sql_identifier" user columns ok > Checking for presence of required libraries ok > Checking database user is the install user ok > Checking for prepared transactions ok > > *Clusters are compatible* > > But if I execute the same command right after that without the "--check" > flag I get: > > Performing Consistency Checks > ----------------------------- > Checking cluster versions ok > > The target cluster was not shut down cleanly. > Failure, exiting > > > Both of the servers were still shut down. If I start form the beginning with > a fresh Prostgres 12 installation and execute the upgrade command right away > without the "--check" flag I get the problem described in my original post. > > Best regards, > TalGlo > > > > -- > Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > -- Adrian Klaver adrian.klaver@aklaver.com