It was asked once. Wrong, and Odoo raises AccessDenied, check_output raises CalledProcessError, nothing catches it, and the migration dies on a traceback. After an hour of version bumps that is a steep price for one letter. Ten attempts now. Only a refused PASSWORD is asked again. Any other failure stops and is shown: asking ten times in front of an unreachable database would hide the real fault behind a prompt, and one would hunt for a password. AccessDenied is matched on the class, never on its message, which is translated. The attempt is probed with --list, which changes nothing. Validating here avoids failing half-way, once the database has already been dropped. --- FR --- Il était demandé une fois. Faux, et Odoo lève AccessDenied, check_output lève CalledProcessError, rien ne l'attrape, la migration meurt sur une trace. Après une heure de paliers, c'est cher payé pour une lettre. Dix essais désormais. Seul un MOT DE PASSE refusé fait reposer la question. Tout autre échec arrête et s'affiche : dix invites devant une base injoignable cacheraient la panne, et l'on chercherait un mot de passe. AccessDenied se reconnaît à la CLASSE, jamais au message, qui est traduit. L'essai est éprouvé sur --list, qui ne modifie rien. Valider là évite d'échouer à mi-parcours, une fois la base déjà supprimée. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .. | ||
| migrate | ||
| compare_backup.py | ||
| compare_database_application.py | ||
| db_drop_all.py | ||
| db_restore.py | ||
| delete_production.sh | ||
| download_remote.py | ||
| download_remote.sh | ||
| fix_mariadb_sql_example_1.py | ||
| get_module_list_from_database.py | ||
| get_repo_from_backup.py | ||
| get_repo_from_module.py | ||
| image_db.py | ||
| list_remote.py | ||
| mariadb_sql_example_1.sql | ||
| migrate_prod_to_test.sh | ||
| README.base.md | ||
| README.fr.md | ||
| README.md | ||
| restore_mariadb_sql_example_1.sh | ||
Database
This section is for code generator database migrator.
This configuration is for development environnement.
You need to install script ./script/install/install_dev_extra_ubuntu.sh.
Restore database
Run script to restore database:
./script/database/restore_mariadb_sql_example_1.sh