Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
7 Răspunsuri
9375 Vizualizări

Hi everyone,

I want to migrate my V16 database to V17, I'm encountering some difficulties.

Steps taken to migrate from Odoo 16 to Odoo 17:

  • I restored my V16 database to a V17 version
  •  I downloaded the openupgrade_scripts module
  •  I created a migration_scripts folder, adding the openupgrade_scripts module, and then added the path to my addons.
  • I installed the openupgradelib package
  • and called my instance with the command: ./odoo-bin --database=DEMO-MIGRATION --upgrade-path=/mnt/extra-addons/migration_scripts/openupgrade_scripts/scripts
  • mistake: 

​Usage: odoo-bin server [options] 

​odoo-bin server: error: option --upgrade-path: the path '/mnt/extra- ​ ​ ​ ​addons/migration_scripts/openupgrade_scripts/scripts' is not a valid upgrade  ​directory

I tried the second option:

[options]

upgrade_path = /mnt/extra-addons/migration_scripts/openupgrade_scripts/scripts

I have followed the recommendations given here 👇

https://github.com/OCA/OpenUpgrade/tree/17.0/openupgrade_scripts#:~:text=%5Boptions%5D%0Aupgrade_path%20%3D%20/PATH_TO_openupgrade_scripts_MODULE/scripts/


There's no error, but my database hasn't been migrated

Am I missing something?

Thank you for your help and suggestions

Imagine profil
Abandonează
Cel mai bun răspuns

OpenUpgrade v17 is not yet ready. You can check the progress here: https://github.com/OCA/OpenUpgrade/issues/4124

Imagine profil
Abandonează

In that case what is alternative?

Could you kindly provide an update on the Open Upgrade v17?. Is it ready or not yet ready ?

Cel mai bun răspuns

To migrate your Odoo 16 database to Odoo 17, ensure you have the correct setup and dependencies. Start by cloning the OpenUpgrade repository’s 17.0 branch using:

git clone --branch 17.0 https://github.com/OCA/OpenUpgrade.git /mnt/extra-addons/migration_scripts.

Next, confirm the scripts directory exists at /mnt/extra-addons/migration_scripts/openupgrade_scripts/scripts. Install the openupgradelib package using pip install openupgradelib. Update your odoo.conf file by adding:

[options] addons_path = /path_to_your_addons,/mnt/extra-addons/migration_scripts upgrade_path = /mnt/extra-addons/migration_scripts/openupgrade_scripts/scripts

Once configured, run the migration command: ./odoo-bin -d DEMO-MIGRATION -u all. If your database isn’t migrated or errors occur, check the logs by enabling debug mode in the odoo.conf file (log_level = debug). Ensure your migration scripts are complete and compatible for all modules, including custom and third-party ones. Verify data integrity post-migration by logging into the system and running consistency checks like ./odoo-bin -d DEMO-MIGRATION --check-xml. Following these steps should resolve migration issues and ensure a smooth transition to Odoo 17.


Imagine profil
Abandonează
Cel mai bun răspuns

Are you able to upgrade from v16 to v17 using Open upgrade script ? Kindly update..

Imagine profil
Abandonează
Cel mai bun răspuns

did you manage to solve it?

Imagine profil
Abandonează
Cel mai bun răspuns

Odoo 17 is so new, that no OpenUpgrade scripts have been published yet.
There are analysis.txt files in the subdirectories of openupgrade_scripts/scripts, but no pre-*.py or post-*.py files.
If Odoo does not find those, it says that the scripts directory is not a valid upgrade directory.

So, a bit of patience will help (I'm in the same boat)
(I don't have enough karma yet to post links yet, so visit the OpenUpgrade documentation site to find out more)

Imagine profil
Abandonează
Cel mai bun răspuns

you can try with bellow option

python  ./odoo-bin -d database_name --config=/odoo/odoo17_migration/odoo/debian/odoo.conf --upgrade-path=/odoo/odoo17_migration/OpenUpgrade-17.0/openupgrade_scripts/scripts -u all


Before running, Make sure config file path and configuration is updated or not 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
mai 25
2299
2
mai 25
5665
1
mar. 25
1504
4
mar. 25
4282
3
feb. 25
5269