Help

0

Openupgrade migrate database Odoo 10 CE windows to Odoo 11 CE

Avatar
Joan Navarro

Hi,

I try to migrate only the database from v10 to v11.

I make this steps:


1. stop the Odoo service (service odoo stop)

2. Git clone https://github.com/OCA/OpenUpgrade.git brach 11.0

3. Install the newest version of the OpenUpgradeLib (https://github.com/OCA/openupgradelib.git@master)

4.run OpenUpgrade with:

python odoo-bin -d mydatabase --update all --stop-after-init --data-dir=c:\temp -u openpg -w mypassw

5. Install all dependencies that It shows.

6 Finally after install all the dependecies it show me the error:



C:\Program Files (x86)\OpenUpgrade-11.0>python odoo-bin -d BtoBsolutions --update all --stop-after-init --data-dir=c:\temp -u openpg -w #Lmeiqupsfssa360

2020-04-07 15:15:35,642 1080 INFO ? odoo: Odoo version 11.0

2020-04-07 15:15:35,642 1080 INFO ? odoo: addons paths: ['c:\\temp\\addons\\11.0', 'c:\\program files (x86)\\openupgrade-11.0\\odoo\\addons', 'c:\\program files (x86)\\openupgrade-11.0\\addons', 'C:\\

Program Files (x86)\\OpenUpgrade-11.0\\odoo\\addons']

2020-04-07 15:15:35,642 1080 INFO ? odoo: database: default@default:default

2020-04-07 15:15:35,657 1080 INFO ? odoo.sql_db: Connection to the database failed

Traceback (most recent call last):

  File "odoo-bin", line 8, in <module>

    odoo.cli.main()

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\cli\command.py", line 60, in main

    o.run(args)

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\cli\server.py", line 175, in run

    main(args)

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\cli\server.py", line 140, in main

    odoo.service.db._create_empty_database(db_name)

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\service\db.py", line 95, in _create_empty_database

    with closing(db.cursor()) as cr:

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\sql_db.py", line 637, in cursor

    return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\sql_db.py", line 178, in __init__

    self._cnx = pool.borrow(dsn)

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\sql_db.py", line 520, in _locked

    return fun(self, *args, **kwargs)

  File "C:\Program Files (x86)\OpenUpgrade-11.0\odoo\sql_db.py", line 588, in borrow

    **connection_info)

  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\psycopg2\__init__.py", line 127, in connect

    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)

psycopg2.OperationalError


C:\Program Files (x86)\OpenUpgrade-11.0>



I think that probably the error is because it try to connect to a non exist database:

2020-04-07 15:15:35,642 1080 INFO ? odoo: database: default@default:default


Can you help, If I can to make a migration I want to make a tutorial step by step for all the people because the documentaion of openupgrade is not easy to understand.


Thanks in advance

Joan





Avatar
Discard