Fin de migration 4.2

bonjour,

j’ai effectué la mise à jour de mon Yunohost 3.8/5/7 vers la version 4.2.5/3 il me reste des migrations à faire

malheureusement j’ai une erreur qui apparait :
Erreur: "400" Bad Request
Action: "PUT" /yunohost/api/migrations/run?accept_disclaimer

Auriez-vous une idée ?
Merci

Bonjour, as-tu lancé la commande qui apparaît dans Action depuis un terminal par exemple ?

Il y a eu un correctif pour ça mais je crois qu’il n’est pas encore publié.
En attendant tu peux lancer manuellement:

yunohost tools migration migrate --accept-disclaimer

voici le resultat :

~$ sudo yunohost tools migration migrate --accept-disclaimer
usage: yunohost tools
{adminpw,maindomain,postinstall,update,upgrade,shell,shutdown,reboot,regen-conf,versions,migrations}

[-h]
yunohost tools: error: argument {adminpw,maindomain,postinstall,update,upgrade,shell,shutdown,reboot,regen-conf,versions,migrations}: invalid choice: ‘migration’ (choose from ‘adminpw’, ‘maindomain’, ‘postinstall’, ‘update’, ‘upgrade’, ‘shell’, ‘shutdown’, ‘reboot’, ‘regen-conf’, ‘versions’, ‘migrations’)

j’ai rajouté un “s” à “migration” :wink:

voici le nouveau résultat

~$ sudo yunohost tools migrations migrate --accept-disclaimer
Warning: ‘yunohost tools migrations migrate’ is deprecated and will be removed in the future, use ‘yunohost tools migrations run’ instead
Warning: ‘yunohost tools migrations migrate’ is deprecated and will be removed in the future, use ‘yunohost tools migrations run’ instead
Info: Running migration 0017_postgresql_9p6_to_11…
Error: Migration 0017_postgresql_9p6_to_11 did not complete, aborting. Error: a bytes-like object is required, not ‘str’
Info: The operation ‘Run migrations’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20210614-101704-tools_migrations_migrate_forward’ to get help
Info: Running migration 0019_extend_permissions_features…
Info: Creating a backup of LDAP database and apps settings prior to the actual migration.
Info: Updating LDAP schema…
Warning: slapcat: error writing output.
Info: Add new attributes for permissions in LDAP database
Info: Migrating legacy permission settings…
Info: The operation ‘Create permission ‘opensondage’’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20210614-101707-permission_create-opensondage’ to get help
Warning: Could not migrate… trying to roll back the system.
Info: System rolled back.
Error: Migration 0019_extend_permissions_features did not complete, aborting. Error: Domain ‘rv.mondmaine.io’ unknown
Info: The operation ‘Run migrations’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20210614-101704-tools_migrations_migrate_forward’ to get help
Error: Run these migrations: ‘0019_extend_permissions_features’, before migration 0020_ssh_sftp_permissions.

Et y a quoi dans ce log concernant opensondage (il est aussi accessible via la webadmin)?

Est-ce que tu peux donner des détails sur ton setup : est-ce que tu as déjà restauré des choses ? est-ce que tu as déplacé opensondage d’url …

Bon, j’ai désinstallé l’application, j’ai supprimé le domaine dans Yunohost.

j’ai recréé mon domaine et réinstalle l’application “opensondage”

Cela me génère toujours une erreur à l’installation.
En revanche j’ai vu quel etait le soucis :slight_smile: mon domaine est rv.mon-domaine.io lors de l’installation il me dit que le domaine “rv.mon.domaine.io” n’existe pas… bref il a remplacé le tiret par un point…

https://paste.yunohost.org/raw/ayiyixitor

Maintenant, comment résoudre cela ?

(je ne sais pas comment trouver le fichier de log mentionné)

Tu as plusieurs migrations qui échouent, certaines sont corrigées en 4.2.6.

Pour l’histoire du domaine qui n’existe pas, essaies nano /etc/yunohost/apps/opensondage/settings.yml

Là tu devrais trouver protected_regex , tente de remettre le tiret.

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