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 1kdbu6-0002wm-28 for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 16:26:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdbu4-0006nU-U8 for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 16:26:24 +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 1kdbu4-0006nM-MT for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 16:26:24 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdbu0-0006TO-DU for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 16:26:24 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D17895C009C; Fri, 13 Nov 2020 11:26:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 13 Nov 2020 11:26:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=d aBIcOzgaAaXLmFeUM5DPl14BUD3HqGNlSMela4LA9E=; b=jGyfnWcdOqdIHLfZj FoSV38wI23fWYGxUY04f9H598cs1XGD6Xo9YoOfcuAC/14aUpzRzpVLhF7dttlAg asvQgmLQrIwJi4HaXqch/LyHSMXJzFnAucJSEPDSdZfdVCR56hF1Q6Bo2AxepkwB fuegouX9fNcW/0AaXR4u99llyC5/VSnhV0qmCgxJ1MW+Ckt0TAE7iXzD3Y5i2xZz +0Ur/jeN46JNl57vQzeiFINfeZ/OiUABYyYNH+1rkx802QrWu/g6HPxKTR6f+67d MTBYhzRMgKIfe1OwTI9LlwhGqQFQQs8yZSREszjb6xqWmau1E/rytW2cBoBC4th4 jjHeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=daBIcOzgaAaXLmFeUM5DPl14BUD3HqGNlSMela4LA 9E=; b=XmMWnXfNhSQrAJAYd8uR07tiUJl+h4Y+KRln2Nylv7WDs8eUPdf9gy/PU jJBdtfhfWqx86GqcH2YeDpj5Emyxxuk9J1V9/el6Nc+38vam4k4iZ5QoJTriQzA2 BgJKOcIqpK2yCjzWtkTCwjQTIYNYThnQO2cvMh8EUDkmUyTE5mmWF8rUBaBPpJ8G 7We6cJvVB2++ivMQsw2Sc7VsiSa4OzzE2ugZ8repEklchRFOAYM8d75ahBo+PIKj hnLIi/n14ref2gB1H1JbtWQvrQpdSUO0VB7sulfLgY8YladZHVFNxtg1w3hewlFa 9WDpMqXiYDVpj/+Bm8jk2VVA2aZmA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddvhedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeetjedvteffjeeuvdelieeffeehuedthffgvdfhhffh kedvudevgedvjedufefgveenucfkphepjeehrddujedvrdduledrudefleenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.4] (75-172-19-139.tukw.qwest.net [75.172.19.139]) by mail.messagingengine.com (Postfix) with ESMTPA id CC2593280064; Fri, 13 Nov 2020 11:26:17 -0500 (EST) Subject: Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist" To: Jeremy Wilson Cc: Tom Lane , pgsql-general@lists.postgresql.org References: <793E4164-90E9-41F0-B74C-129E1DB76408@clover.co> <5d5bd3f7-8158-97fa-9d6e-064af852f5ec@aklaver.com> <6DBC6B57-422B-4A5C-8116-5615FEBC0DF7@clover.co> <286345.1605280985@sss.pgh.pa.us> <1F006B57-B6A3-40B0-B92D-C31BAEF52CA1@clover.co> <12B3647B-5BE0-4CDA-9EC8-317AB59810CB@clover.co> From: Adrian Klaver Message-ID: <58943bf6-edf8-b5f2-8888-e5595a712ec2@aklaver.com> Date: Fri, 13 Nov 2020 08:26:17 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <12B3647B-5BE0-4CDA-9EC8-317AB59810CB@clover.co> 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 11/13/20 8:19 AM, Jeremy Wilson wrote: > > >> On Nov 13, 2020, at 11:06 AM, Adrian Klaver wrote: >> >> When you manually run the pg_upgrade pg_ctl script the server starts but you cannot connect to any database in it correct? > > Yes. > >> What does pg_upgrade_server.log show when you do above? > > ----------------------------------------------------------------- > pg_upgrade run on Fri Nov 13 10:11:45 2020 > ----------------------------------------------------------------- > > > command: "/usr/pgsql-13/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/var/lib/pgsql/13/data" -o "-p 5432 -b -c synchronous_commit=off -c fsync=off -c full_page_writes=off -c vacuum_defer_cleanup_age=0 -c listen_addresses='' -c unix_socket_permissions=0700 -c unix_socket_directories='/var/run/postgresql'" start >> "pg_upgrade_server.log" 2>&1 > waiting for server to start....2020-11-13 10:12:15.902 EST [204782] LOG: redirecting log output to logging collector process > 2020-11-13 10:12:15.902 EST [204782] HINT: Future log output will appear in directory "log". > done > server started What shows up in the log file in "log" directory when you try to connect to a database? > > > command: "/usr/pgsql-13/bin/pg_ctl" -w -D "/var/lib/pgsql/13/data" -o "" -m fast stop >> "pg_upgrade_server.log" 2>&1 > waiting for server to shut down.... done > server stopped > -- Adrian Klaver adrian.klaver@aklaver.com