← Back to team overview

credativ team mailing list archive

[Bug 908722] Re: [6.1 trunk] [server] database cannot be updated

 

*** This bug is a duplicate of bug 908069 ***
    https://bugs.launchpad.net/bugs/908069

** This bug has been marked a duplicate of bug 908069
   KeyError: 'serialization_field_id'

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/908722

Title:
  [6.1 trunk] [server] database cannot be updated

Status in OpenERP Server:
  New

Bug description:
  hello,

  after updating the server (and client) to the latest revs, the update
  process stops with error.

  [2011-12-26 10:15:41,403][bs_02] ERROR:root:Failed to initialize database `bs_02`.
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/EGG-INFO/scripts/openerp-server", line 92, in preload_registry
      db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=config['init'] or config['update'], pooljobs=False)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/pooler.py", line 33, in get_db_and_pool
      registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/modules/registry.py", line 138, in get
      update_module, pooljobs)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/modules/registry.py", line 160, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/modules/loading.py", line 299, in load_modules
      loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/modules/loading.py", line 171, in load_module_graph
      init_module_models(cr, package.name, models)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/modules/module.py", line 287, in init_module_models
      result = obj._auto_init(cr, {'module': module_name})
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/osv/orm.py", line 2747, in _auto_init
      self._field_create(cr, context=context)
    File "/usr/local/lib/python2.7/dist-packages/openerp-6.1beta-py2.7.egg/openerp/osv/orm.py", line 817, in _field_create
      if cols[k][key] != vals[key]:
  KeyError: 'serialization_field_id'

  i noticed that rev 3915 introduced some new concepts; apparently the
  statement in /oenerp/addons/base/base.sql:52

  ALTER TABLE ir_model_fields ADD column serialization_field_id int
  references ir_model_fields on delete cascade;

  does not get executed early enough (if at all) or else.

  thank you,
  Bogdan

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/908722/+subscriptions


References