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 1kdcF1-0003il-8e for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 16:48:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdc6Y-00035y-7T for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 16:39:18 +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 1kdc6X-00035r-VN for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 16:39:17 +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 1kdc6V-0006a9-Vs for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 16:39:17 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AA4A45C01B5; Fri, 13 Nov 2020 11:39:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 13 Nov 2020 11:39:14 -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=Y 3FAt8s1fsNaIl6bmDZN76Bx1WPs+AoIsvmGGWcyUHw=; b=VCubbHYnicx3fAQ7t 3Uy8GUrOqeg+X1+noFg2Z3eLPU2HC9WHH2Oi+ovzFhBthrlj+4F5/iDxuoQ/sWbA TotxWNwad2kqUFKucVyIVI5wL+VG8rsqe0PfXXoJlyRhKSV539mb4SW0tpNsN2jz kAAa0eYCy3dHtBvsiH/s/HtTTflTMt1Rb90regXZJ/YhL0yFp2/t+fhrsXzanaY5 /fXPW1l7WXseWLSlNAlUhI8z6+vcf65nY9aJVqzqA+E0tw4b9JUcTcVXcFyUIw9u 2FenucQwtpaoDDuxKrO9VAqqyNuhKPamj10gTBKr1ncdv+wUSqaP2k37rBqr4p32 6cSiw== 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=Y3FAt8s1fsNaIl6bmDZN76Bx1WPs+AoIsvmGGWcyU Hw=; b=RtsYTM45rpReTY+pLie8/OEKzPR9B74XNYh5QV4jxSGUVLImEZM87HECw SxfBAkf0QWrkqTEM0AQHsBLWnpl04+mtup2IaiJmmZB4KiigDluQEM+UPlwh5nKF wbpQ/KVSv2ihhru8B1TRLhRmk8gJqYiWy/v0EKLYj7zfSZKYpg2RIRztaqYjuobK AyYfX7TClyyXd+SdWsGwM0xLbQJjAwhB9ZYKA9GrkaxYI/njrDOw2cbYo24ura+w GcOHlJaFuo91SqjBlBF0S1MyU+KiWNxAr/KZ+K28yKS1Rc4d0uiZ2GeE6A5cdsEu /54rIJecXIwTBE4XTtrpd2liiva1A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddvhedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeehrddujedvrdduledrudefleenucevlhhush 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 BE31A328005D; Fri, 13 Nov 2020 11:39:13 -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> <38423984-6dfd-b243-316c-6c8391d68959@aklaver.com> <7B8F6746-E0E5-48DD-B3EF-E4A520838C11@clover.co> From: Adrian Klaver Message-ID: Date: Fri, 13 Nov 2020 08:39:12 -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: <7B8F6746-E0E5-48DD-B3EF-E4A520838C11@clover.co> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/13/20 8:37 AM, Jeremy Wilson wrote: > > >> On Nov 13, 2020, at 11:35 AM, Adrian Klaver wrote: >> >> 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? > > No, strictly from running pg_upgrade. > > Here’s the additional logs from manually running it: > > 2020-11-13 11:36:35.976 EST [205733] 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:36:35.976 EST [205733] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" > 2020-11-13 11:36:35.981 EST [205735] LOG: database system was shut down at 2020-11-13 11:30:06 EST > 2020-11-13 11:36:35.989 EST [205733] LOG: database system is ready to accept connections > This does not show trying to connect to a database. It would help to list the commands run and then the corresponding log portions. -- Adrian Klaver adrian.klaver@aklaver.com