pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ken Yeung <Ken.Yeung@rib-software.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Problem upgrading from 10 to 14 with pg_upgrade: unexpected error upgrading "template1" database for some clusters
Date: Tue, 12 Jul 2022 21:16:58 +0200
Message-ID: <dc63068e6648d3cb23d001bf1716d5dcf1bb5afa.camel@cybertec.at> (raw)
In-Reply-To: <VI1PR01MB4926A72FAD40EE99A353E7B7C0879@VI1PR01MB4926.eurprd01.prod.exchangelabs.com>
References: <VI1PR01MB4926A72FAD40EE99A353E7B7C0879@VI1PR01MB4926.eurprd01.prod.exchangelabs.com>

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





view thread (6+ messages)  latest in thread

Message-ID: <dc63068e6648d3cb23d001bf1716d5dcf1bb5afa.camel@cybertec.at>
Permalink:  ../dc63068e6648d3cb23d001bf1716d5dcf1bb5afa.camel@cybertec.at/
Also on:    postgresql.org/message-id/dc63068e6648d3cb23d001bf1716d5dcf1bb5afa.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, Ken.Yeung@rib-software.com
  Subject: Re: Problem upgrading from 10 to 14 with pg_upgrade: unexpected error upgrading "template1" database for some clusters
  In-Reply-To: <dc63068e6648d3cb23d001bf1716d5dcf1bb5afa.camel@cybertec.at>
  References: <VI1PR01MB4926A72FAD40EE99A353E7B7C0879@VI1PR01MB4926.eurprd01.prod.exchangelabs.com> <dc63068e6648d3cb23d001bf1716d5dcf1bb5afa.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox