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 1kdc2i-0003Km-3g for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 16:35:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdc2h-00050w-2t for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 16:35:19 +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 1kdc2g-00050p-RR for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 16:35:18 +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 1kdc2e-0006YD-RW for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 16:35:18 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 596B75C0130; Fri, 13 Nov 2020 11:35:15 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 13 Nov 2020 11:35:15 -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=S 7nvO064nBuseJAO/mDgecvNIwLXfUWM/Zr4kOMcIo0=; b=pgfAlmMrDn6KLJXPd 4sOjy44Fr9JFc7v2h4ZPc5W5CdH6XKsN/eBqndZ6SHVGwVDnBx9J40B3ZxRW6ufU V8Qi1PKARMVE0zDav+U7tdIcDSt93l5VBCxiPZ+3HGi+X3B8NZfpJ234Ljp+uF3E OVybU8+MzGIVVn7BZkR8LWykNR/U/uME7uok16Ocaai4FEo3cAJdlgTkwvLh23ua Gvn8hcJPNEGuM+eDJgQ76fZun5c6oTjazMkTHX9fQJ0rnFLwi14HeEnf7jmL8yX4 iWnodL5lIaIU+lLyatBFqr3tg1VOf/ymxn7RLrysxWBKfZD61rmJZNxfcC0eDyHN 1xsig== 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=S7nvO064nBuseJAO/mDgecvNIwLXfUWM/Zr4kOMcI o0=; b=TqxGQARb4uRjU9Y/FPtrWPox3D+AnpXGcSrLk+pXcj6+/SseF36r0VDuM Im062NG35lZCGVzEWElo8OCB8Eox9vJFNfHvNISN4riOVDrdejjyD6FWYHMW+Xr4 FB//Ga1BZcECFtNGkqFavZgnOcOjt5QwAgTZKJDVWkditTwAy735XlBGuOzCe+1g wRzpTBszCbT+p2tOs67coCMIlDEc/ZUj9R915/JGOuAWr6I9e6V9pIEauemMyAOl yx1/J1kjwd3kHgfRURn70dMvTZmMOJsvfzaQ1pozOoTAMbO3lk48g5oKqVdNlnml eH0F/FpizC498qZw2pNMHvOgVx81Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddvhedgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeetjedvteffjeeuvdelieeffeehuedthffgvdfhhffh kedvudevgedvjedufefgveenucfkphepjeehrddujedvrdduledrudefleenucevlhhush htvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhl 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 90921328005E; Fri, 13 Nov 2020 11:35:14 -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> <58943bf6-edf8-b5f2-8888-e5595a712ec2@aklaver.com> <7C14FAD0-775D-4F13-8E3C-97B66284BFFC@clover.co> From: Adrian Klaver Message-ID: <38423984-6dfd-b243-316c-6c8391d68959@aklaver.com> Date: Fri, 13 Nov 2020 08:35:13 -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: <7C14FAD0-775D-4F13-8E3C-97B66284BFFC@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:31 AM, Jeremy Wilson wrote: > > >> On Nov 13, 2020, at 11:26 AM, Adrian Klaver wrote: >> >> What shows up in the log file in "log" directory when you try to connect to a database? > > I did a completely fresh initdb to get clean logs: Was the below from starting using the pg_upgrade version of pg_ctl start? > > bash-4.4$ cat 13/data/log/postgresql-Fri.log > 2020-11-13 11:29:44.744 EST [205647] LOG: starting PostgreSQL 13.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5), 64-bit > 2020-11-13 11:29:44.744 EST [205647] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" > 2020-11-13 11:29:44.748 EST [205649] LOG: database system was shut down at 2020-11-13 11:29:19 EST > 2020-11-13 11:29:44.755 EST [205647] LOG: database system is ready to accept connections > free(): invalid pointer > 2020-11-13 11:29:45.771 EST [205647] LOG: received smart shutdown request > 2020-11-13 11:30:05.292 EST [205647] LOG: server process (PID 205659) was terminated by signal 6: Aborted > 2020-11-13 11:30:05.292 EST [205647] LOG: terminating any other active server processes > 2020-11-13 11:30:05.295 EST [205647] LOG: abnormal database system shutdown > 2020-11-13 11:30:05.306 EST [205647] LOG: database system is shut down > 2020-11-13 11:30:06.136 EST [205704] LOG: starting PostgreSQL 13.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5), 64-bit > 2020-11-13 11:30:06.136 EST [205704] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" > 2020-11-13 11:30:06.141 EST [205706] LOG: database system was shut down at 2020-11-13 11:30:05 EST > 2020-11-13 11:30:06.148 EST [205704] LOG: database system is ready to accept connections > 2020-11-13 11:30:06.195 EST [205712] FATAL: database "template1" does not exist > 2020-11-13 11:30:06.200 EST [205704] LOG: received fast shutdown request > 2020-11-13 11:30:06.201 EST [205704] LOG: aborting any active transactions > 2020-11-13 11:30:06.204 EST [205704] LOG: background worker "logical replication launcher" (PID 205711) exited with exit code 1 > 2020-11-13 11:30:06.204 EST [205707] LOG: shutting down > 2020-11-13 11:30:06.219 EST [205704] LOG: database system is shut down > -- Adrian Klaver adrian.klaver@aklaver.com