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 1jYKlD-0007Js-DZ for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2020 02:35:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYKlC-0003eO-5G for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2020 02:35:10 +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 1jYKlB-0003bH-0u for pgsql-general@lists.postgresql.org; Tue, 12 May 2020 02:35:09 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYKl6-0006kL-KY for pgsql-general@postgresql.org; Tue, 12 May 2020 02:35:08 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B49035C0199; Mon, 11 May 2020 22:35:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 11 May 2020 22:35:02 -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=b hCycPoNF20WpHuw2eNzZO1loK5d8oxBIeO5fjOGEHs=; b=mCDBrEnARUHMPAPrF WFD7vcyXvw8PKRwUJrRkDPuaH1VdWMHQlEDT1/uGnlv0ZKARIEA4YXABTNP6HLqw KrL5bSBYtTY44SvpG0QsWNzwycENn5wAtTLtFHDYVnvdve5MB0yM/HT5htNQoN3P PbOdXfblP4bJY2nxpRIRywUIrPkWxFBT4YYYvLWI2P4o+9SOjweIkL9oyIAFWErV axQmZaNVhPmD0CB6GB0h7zuUha90h/7I/ySqNz2YsBN+Stbfw2pRknkMmuUtg54G TrKV+QtsGyxnW1m9oSJ9WiKpf6aVKy3xJ6oyRluGqHGm6hJLNrCafcys0OoFjZ0K FrNbw== 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=bhCycPoNF20WpHuw2eNzZO1loK5d8oxBIeO5fjOGE Hs=; b=XPaOjlScsDhI2GMLhHtv9jTiOQn6A6KrhMQbDRF8DWMb1Ti6JR6thZQDQ sLWdRIapm4aJa2OWKZMFW2I1OED/1ZFOpO58OH7Ay5GCo5qfprtmOUnBfsPJkAuB zlbo3FcTxwi/G8V4XlhyMoABovSXxqkq9BSRI4wa8TSAvMPZRy5w+m5lrUZk0ANf urmzrbjSNv38EDhEqsEuh0z4AJ2XJRDqjnDqp15OVJnRJp0NQ2Ce8cQk7qMZdIjT jAkg4mtdiD9kKKNnIjYSMcBxUDbfgC5R2NTuBXjR1gll22hWYDgUlRbvksTUtlRX M/WKCotUNXJqzNZBUCfAL8mLnAnOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrledugdeiudcutefuodetggdotefrodftvf 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 C8FF83280064; Mon, 11 May 2020 22:35:01 -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: <7156bf5e-ab7c-2156-8f66-c529b96141eb@aklaver.com> Date: Mon, 11 May 2020 19:35:01 -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 > > 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. How are you installing Postgres? Are the 10 and 12 packages coming from the same location? > > Best regards, > TalGlo > > > > -- > Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > -- Adrian Klaver adrian.klaver@aklaver.com