Skip to Content
Menu
This question has been flagged
7 Replies
9136 Views

Hi all,

I'm using OpenUpgrade for migration Odoo 10 to version 11. And I got the error when migrate database:

2018-06-25 04:16:18,253 8127 WARNING dev_migrated odoo.modules.loading: Transient module states were reset
2018-06-25 04:16:18,254 8127 ERROR dev_migrated odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
  File "/media/vu/data/11.0/server/odoo/modules/registry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/media/vu/data/11.0/server/odoo/modules/loading.py", line 442, in load_modules
    force, status, report, loaded_modules, update_module, models_to_check, upg_registry)
  File "/media/vu/data/11.0/server/odoo/modules/loading.py", line 328, in load_marked_modules
    upg_registry=upg_registry,
  File "/media/vu/data/11.0/server/odoo/modules/loading.py", line 170, in load_module_graph
    registry.init_models(cr, model_names, {'module': package.name})
  File "/media/vu/data/11.0/server/odoo/modules/registry.py", line 314, in init_models
    models[0].recompute()
  File "/media/vu/data/11.0/server/odoo/models.py", line 4910, in recompute
    target._write(dict(vals))
  File "/media/vu/data/11.0/server/odoo/models.py", line 3191, in _write
    cr.execute(query, params + (sub_ids,))
  File "/media/vu/data/11.0/server/odoo/sql_db.py", line 155, in wrapper
    return f(self, *args, **kwargs)
  File "/media/vu/data/11.0/server/odoo/sql_db.py", line 232, in execute
    res = self._obj.execute(query, params)
psycopg2.DataError: invalid input syntax for integer: "926-20180430044500"
LINE 1: ...ite_date"=(now() at time zone 'UTC') WHERE id IN ('926-20180...
                                                             ^
2018-06-25 04:16:18,256 8127 CRITICAL dev_migrated odoo.service.server: Failed to initialize database `dev_migrated`.
Traceback (most recent call last):
  File "/media/vu/data/11.0/server/odoo/service/server.py", line 925, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "/media/vu/data/11.0/server/odoo/modules/registry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/media/vu/data/11.0/server/odoo/modules/loading.py", line 442, in load_modules
    force, status, report, loaded_modules, update_module, models_to_check, upg_registry)
  File "/media/vu/data/11.0/server/odoo/modules/loading.py", line 328, in load_marked_modules
    upg_registry=upg_registry,
  File "/media/vu/data/11.0/server/odoo/modules/loading.py", line 170, in load_module_graph
    registry.init_models(cr, model_names, {'module': package.name})
  File "/media/vu/data/11.0/server/odoo/modules/registry.py", line 314, in init_models
    models[0].recompute()
  File "/media/vu/data/11.0/server/odoo/models.py", line 4910, in recompute
    target._write(dict(vals))
  File "/media/vu/data/11.0/server/odoo/models.py", line 3191, in _write
    cr.execute(query, params + (sub_ids,))
  File "/media/vu/data/11.0/server/odoo/sql_db.py", line 155, in wrapper
    return f(self, *args, **kwargs)
  File "/media/vu/data/11.0/server/odoo/sql_db.py", line 232, in execute
    res = self._obj.execute(query, params)
psycopg2.DataError: invalid input syntax for integer: "926-20180430044500"
LINE 1: ...ite_date"=(now() at time zone 'UTC') WHERE id IN ('926-20180...

I tested with empty Db (just fresh install some modules) and it works fine, but not with my current database


Avatar
Discard

Did you read your error message?

Best Answer

"Failed to load registry" is a generic error. Look further down to see the specific reason why.

Avatar
Discard
Best Answer

Vu Huynh có thể chỉ mình cách fix lỗi  này được không?

Avatar
Discard

English please?

I believe: "Vu Huynh, can you show me how to fix this error?"

Author Best Answer

I fixed it, thank you

Avatar
Discard

Please share your solution so that others who came here can benefit from your experience.