"La migration 0017_postgresql_9p6_to_11 a échoué"

Bonjour,

J’ai une erreur sur la migration 4.0 vers Buster avec le message : La migration 0017_postgresql_9p6_to_11 a échoué avec l’exception Command ‘pg_upgradecluster -m upgrade 9.6 main’ returned non-zero exit status 1 : annulation

Mon log : https://paste.yunohost.org/raw/ahelapiruj

Je suis sur un serveur VPS OVH.
J’ai migré depuis la dernière version 3.8
J’ai accès au serveur en SSH et en Webadmin.

J’ai créé un Topic car mon erreur n’est pas le même que celles que j’ai déjà vu sur le forum.

Merci d’avance pour votre aide.

Eduardo

Salut,

pas sur de comprendre pourquoi tu parles de :

alors que l’erreur dans le log est :

“PostgreSQL 9.6 is installed, but not postgresql 11‽ Something weird might have happened on your system :(…”

Tu saurais expliquer ? :s

Bonjour Aleks,
J’ai copié/collé l’erreur en début de log :
ended_at: 2020-08-03 09:39:40.770682
error: “La migration 0017_postgresql_9p6_to_11 a \xE9chou\xE9 avec l\u2019exception
\ PostgreSQL 9.6 is installed, but not postgresql 11\u203D Something weird might
\ have happened on your system :(… : annulation”
operation: tools_migrations_migrate_forward
started_at: 2020-08-03 09:39:40.690350
success: false
yunohost_version: 4.03

Cela doit être l’erreur quand j’ai migré je pense

Et la deuxième partie c’est quand j’ai lancé dans Webadmin la migration sur postgresql :

2020-08-03 11:39:40,697: INFO - Exécution de la migration 0017_postgresql_9p6_to_11…
2020-08-03 11:39:40,769: ERROR - La migration 0017_postgresql_9p6_to_11 a échoué avec l’exception PostgreSQL 9.6 is installed, but not postgresql 11‽ Something weird might have happened on your system :(… : annulation
Traceback (most recent call last):
File “/usr/lib/moulinette/yunohost/tools.py”, line 899, in tools_migrations_migrate
migration.run()
File “/usr/lib/moulinette/yunohost/data_migrations/0017_postgresql_9p6_to_11.py”, line 26, in run
raise YunohostError(“migration_0017_postgresql_11_not_installed”)
YunohostError: PostgreSQL 9.6 is installed, but not postgresql 11‽ Something weird might have happened on your system :(…

Je suppose c’est ça.

J’ai testé toutes mes applications et elles fonctionnent apparemment.
Mais c’est juste un test rapide et si les application n’a pas besoin de postgresql c’est sûrment normal.

Cordialement,

Eduardo

Oui c’est ça, c’est le log quand je lance dans Webadmin, je viens de refaire un test :

2020-08-03 12:10:10,246: INFO - Exécution de la migration 0017_postgresql_9p6_to_11…
2020-08-03 12:10:10,329: ERROR - La migration 0017_postgresql_9p6_to_11 a échoué avec l’exception PostgreSQL 9.6 is installed, but not postgresql 11‽ Something weird might have happened on your system :(… : annulation
Traceback (most recent call last):
File “/usr/lib/moulinette/yunohost/tools.py”, line 899, in tools_migrations_migrate
migration.run()
File “/usr/lib/moulinette/yunohost/data_migrations/0017_postgresql_9p6_to_11.py”, line 26, in run
raise YunohostError(“migration_0017_postgresql_11_not_installed”)
YunohostError: PostgreSQL 9.6 is installed, but not postgresql 11‽ Something weird might have happened on your system :(…

Cordialement,

Eduardo

Installation manuelle de Postgres 11, vérification que le cluster 9.6 est bien lancé et relance les parties de migrations en pending …

Voir les commandes pour réussir la migration 17 : https://forum.yunohost.org/t/yunohost-4-0-buster-release-sortie-de-yunohost-4-0-buster/

1 Like

Merci patient1
Les commandes de ppr m’ont permis de terminer la migration vers YunoHost 4.0 :+1:

apt install postgresql-11
apt update
apt dist-upgrade
pg_ctlcluster 11 main start
yunohost tools migrations migrate
2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.