Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
7 Odpovědi
9376 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit

In that case what is alternative?

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

Nejlepší odpověď

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.


Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

did you manage to solve it?

Avatar
Zrušit
Nejlepší odpověď

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)

Avatar
Zrušit
Nejlepší odpověď

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 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
kvě 25
2303
2
kvě 25
5668
1
bře 25
1506
4
bře 25
4283
3
úno 25
5271