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 1oBLNb-0002gw-2l for pgsql-general@arkaria.postgresql.org; Tue, 12 Jul 2022 19:17:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oBLNZ-0000dp-B5 for pgsql-general@arkaria.postgresql.org; Tue, 12 Jul 2022 19:17:05 +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 1oBLNZ-0000dd-0w for pgsql-general@lists.postgresql.org; Tue, 12 Jul 2022 19:17:05 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oBLNU-0004AZ-Qg for pgsql-general@lists.postgresql.org; Tue, 12 Jul 2022 19:17:04 +0000 Received: by mail-wr1-x42b.google.com with SMTP id r10so6359554wrv.4 for ; Tue, 12 Jul 2022 12:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=z8R/7+BohghHqo6osE0TBEX0tWuaw/9PijqTWtY2vDo=; b=JTF3kyZ8YhMJ2wLiy1BLjClRUh0DTwP0eoOiS4cn+JSwDtAfIpk6QGltq6RRi8SkKt SQ/39Q7g13NKrfvS2Oyfgv9QmcsVu5aVm9y59LNUX8qLCQVl2tX/992W2S6l7myKf4vV wLbY7ASYMzX2ggRvGU1j343n3Nk/iwEvdLb1SDK2kMAlr2olBRtJSsTq9nX7PUDeQT5Y 6D5MxfUx/RDKQSnKI7cSBxbgq4r0AxPySnrcypmAthclISzRc9Xw5+kXjmAwIXdR6xPY 1XYHD96D+I7ZwVaKOELZ+ZPYEIeCdocBcUpKmk4LeTIwartEZRTOCXXtRS4Rbgv5wX7Y mTqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=z8R/7+BohghHqo6osE0TBEX0tWuaw/9PijqTWtY2vDo=; b=CSgmBg7ESk3K1unfI3zaFZIefnl7+pvFZvEL1saSohKFDQ7q4Astno1riypg1XM8Dn fg1eVicq+1sVRZvkc/QuTYU2xjJxKbxBppJFq0hWmjEM6VQFOLVaFsE1dC7xiungsPny 5IrtRBDv66b9NOk4OboYUC4Q2FJA4BuAe7TwczLG75Ap0przktWUXuhcXjDKMW2YckyU 62zB6OZoSc1wb4vytd+ud53I8aGNyXFJIEuHeROu4F5HLn0jdN+7QLIw6Jy7tsVVl0fX h666yfMXpn+Nx/kYCNZYkiv6JVTwrQo1AH1a8NhX6Wi8p8nGxmtB4XVmqG503PC7YegN nHFA== X-Gm-Message-State: AJIora/aCoihdf8ggbC7dRHsOtAj3KBiG5+BzaLXauSvt6lMcoxdBXbo RjMtPDQWkz5NujedUtwqaiC7ztdY0/NzNQ== X-Google-Smtp-Source: AGRyM1u1t70kL594WzI20xepl2qbovfPdBm7XXfMHzQ3DbJpjEQiZGOJxwZhuii0NDdOjxTSIyFu7w== X-Received: by 2002:adf:eec9:0:b0:21d:7ab0:340 with SMTP id a9-20020adfeec9000000b0021d7ab00340mr24800714wrp.673.1657653419608; Tue, 12 Jul 2022 12:16:59 -0700 (PDT) Received: from localhost.localdomain (91-115-145-89.adsl.highway.telekom.at. [91.115.145.89]) by smtp.gmail.com with ESMTPSA id o2-20020adfeac2000000b0021d68e1fd42sm9070559wrn.89.2022.07.12.12.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 12:16:58 -0700 (PDT) Message-ID: Subject: Re: Problem upgrading from 10 to 14 with pg_upgrade: unexpected error upgrading "template1" database for some clusters From: Laurenz Albe To: Ken Yeung , "pgsql-general@lists.postgresql.org" Date: Tue, 12 Jul 2022 21:16:58 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2022-07-11 at 05:37 +0000, Ken Yeung wrote: > In the course of upgrading a bunch of database clusters from 10 to 14 using pg_upgrade tool, some databases result in the following error recorded in pg_upgrade_dump_1.log, such that cluster upgrade > fails. > FATAL:  password authentication failed for user "postgres" > > This was done on Microsoft Windows 11. > PostgreSQL 10 and 14 used are built using Visual Studio 2015. > Only a small number of database clusters has this problem, around 2 of 200. > It appears these database are used from earlier cluster upgrade from 9.4 to 10 as well. > > It would be very helpful if there is any possible workaround to overcome this problem. > > I attached a sample pg_upgrade_dump_1.log reported this error. You configured "pg_hba.conf" so that a local login without password is not possible. The easiest solution is to change the "pg_hba.conf" entries for "localhost" in IPv4 and IPv6 to "trust" for the duration of the upgrade. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com