Обсуждение: Trying to ugrade from version 16.2 to 17

Поиск
Список
Период
Сортировка

Trying to ugrade from version 16.2 to 17

От
Stanley Pagenel
Дата:
Hello,  can you help me with this error I am receiving when I am trying to do the upgrade from version 16.2  to 17.0

I am using this command 🙂

"E:\Program Files\PostgreSQL\17\bin\pg_upgrade.exe" --old-datadir "E:\Program Files\PostgreSQL\16\data" --new-datadir "E:\Program Files\PostgreSQL\17\data" --old-bindir "E:\Program Files\PostgreSQL\16\bin" --new-bindir "E:\Program Files\PostgreSQL\17\bin"


Exécution de tests de cohérence
-------------------------------
Checking cluster versions                                     ok
Checking database user is the install user                    ok
Checking database connection settings                         ok
Checking for prepared transactions                            ok
Checking for contrib/isn with bigint-passing mismatch         ok
Checking data type usage                                      ok
Creating dump of global objects                               ok
Creating dump of database schemas
                                                              ok

la connexion au serveur sur « localhost » (::1), port 50432 a échoué : FATAL:  authentification par mot de passe échouée pour l'utilisateur  « postgres »


n'a pas pu se connecter au postmaster cible lancé avec la commande :
"E:/Program Files/PostgreSQL/17/bin/pg_ctl" -w -l "E:/Program Files/PostgreSQL/17/data/pg_upgrade_output.d/20250128T143140.774/log/pg_upgrade_server.log" -D "E:/Program Files/PostgreSQL/17/data" -o "-p 50432 -b -c synchronous_commit=off -c fsync=off -c full_page_writes=off -c max_slot_wal_keep_size=-1 " start
Échec, sortie

Thanks,

Stanley

Re: Trying to ugrade from version 16.2 to 17

От
Laurenz Albe
Дата:
On Wed, 2025-01-29 at 14:20 +0000, Stanley Pagenel wrote:
> Hello,  can you help me with this error I am receiving when I am trying to do the upgrade from version 16.2  to 17.0
>
> "E:\Program Files\PostgreSQL\17\bin\pg_upgrade.exe" --old-datadir "E:\Program Files\PostgreSQL\16\data" --new-datadir
"E:\ProgramFiles\PostgreSQL\17\data" --old-bindir "E:\Program Files\PostgreSQL\16\bin" --new-bindir "E:\Program
Files\PostgreSQL\17\bin"
>
> la connexion au serveur sur « localhost » (::1), port 50432 a échoué : FATAL:  authentification par mot de passe
échouéepour l'utilisateur  « postgres » 

Your v17 server does not allow password-less local connections.

Either adjust its "pg_hba.conf" to allow such connections or create a password
file for the connection:
https://www.postgresql.org/docs/current/libpq-pgpass.html

Yours,
Laurenz Albe



RE: Trying to ugrade from version 16.2 to 17

От
Stanley Pagenel
Дата:
Thanks for the answer

Stanley

Pagenel

Administrateur ‑ Base de données

Portefeuille de projets et technologies

1001, boulevard Robert‑Bourassa, 26e étage, Montréal (Québec) H3B 4L4

Tél.:

 

(514) 287‑2464, poste 4173

Cell.:

 

(438) 490‑7826

Suivez, aimez, partagez

exo.quebec

CONFIDENTIALITÉ - Ce courriel est confidentiel et ne s'adresse qu'à son destinataire.

S'il vous a été transmis par mégarde, veuillez le détruire et m'en aviser aussitôt. Merci!

 


De : Laurenz Albe <laurenz.albe@cybertec.at>
Envoyé : mercredi 29 janvier 2025 11:29
À : Stanley Pagenel <spagenel@exo.quebec>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Objet : Re: Trying to ugrade from version 16.2 to 17
 
[Vous ne recevez pas souvent de courriers de laurenz.albe@cybertec.at. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

ATTENTION : Ce courriel provient d'un expéditeur externe. Merci d'être vigilant, particulièrement avec les liens et pièces jointes.

On Wed, 2025-01-29 at 14:20 +0000, Stanley Pagenel wrote:
> Hello,  can you help me with this error I am receiving when I am trying to do the upgrade from version 16.2  to 17.0
>
> "E:\Program Files\PostgreSQL\17\bin\pg_upgrade.exe" --old-datadir "E:\Program Files\PostgreSQL\16\data" --new-datadir "E:\Program Files\PostgreSQL\17\data" --old-bindir "E:\Program Files\PostgreSQL\16\bin" --new-bindir "E:\Program Files\PostgreSQL\17\bin"
>
> la connexion au serveur sur « localhost » (::1), port 50432 a échoué : FATAL:  authentification par mot de passe échouée pour l'utilisateur  « postgres »

Your v17 server does not allow password-less local connections.

Either adjust its "pg_hba.conf" to allow such connections or create a password
file for the connection:
https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.postgresql.org%2Fdocs%2Fcurrent%2Flibpq-pgpass.html&data=05%7C02%7Cspagenel%40exo.quebec%7C324e6e6a801546dfcc6408dd4082292c%7Ca382d496c5bd4725a0fd46f2b72047e6%7C0%7C0%7C638737649990615137%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=rSNzQI9X%2BmeaplMoOByAYkXU3KlG2Xk406JvGsw4NEM%3D&reserved=0

Yours,
Laurenz Albe