Openupgrade migrate database Odoo 10 CE windows to Odoo 11 CE

Joan Navarro


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 brach 11.0

3. Install the newest version of the OpenUpgradeLib ( 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>


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

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


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


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

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

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

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

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

    self._cnx = pool.borrow(dsn)

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

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

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


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

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


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