← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 701104] Re: [6.0 rc2] ERROR module install/upgrade fails on existing db

 

On 10. 01. 11 19:06, Jay (OpenERP) wrote:
> Bogdan,
>
> You never need to supply any password by command line.
> Just make sure these things:
> 1. You have the latest code.
> 2. You started the server with a proper DB user..
>
> Thanks.
>
Jay,

thank you for your help!

however, I did have to provide the pwd (-r switch) otherwise it didn't
advance. It's a pitty the wiki is not really helpful...

still, i get a lot of warnings and the following error:

[2011-01-10 20:28:00,299][bs_assets]
ERROR:addons.base.ir.model.data:Could not delete id: 19 of model res.groups
There should be some relation that points to this resource
You should manually fix this and restart with --update=module
Traceback (most recent call last):
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_model.py",
line 745, in _process_end
    self.pool.get(model).unlink(cr, uid, [res_id])
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/res/res_user.py",
line 582, in unlink
    ', '.join(user_names))
except_osv: ('warning', 'Warning !')
Traceback (most recent call last):
  File "openerp-server.py", line 121, in <module>
    db,pool = pooler.get_db_and_pool(dbname,
update_module=tools.config['init'] or tools.config['update'],
pooljobs=False)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line
47, in get_db_and_pool
    pool.get('ir.actions.report.xml').register_all(cr)
  File
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_actions.py",
line 100, in register_all
    opj('addons',r['report_xml']),
  File "/usr/lib/python2.6/posixpath.py", line 65, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

the good thing is that in the end it works...

thank you!
b

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/701104

Title:
  [6.0 rc2] ERROR module install/upgrade fails on existing db

Status in OpenObject Server:
  Invalid

Bug description:
  following the last changes to the server, I get an error on install/upgrade of any module.
I suppose that this is due to the lack of the field ir_translation.xml_id, which did not exist and it is not created during install upgrade. everything is ok on new db.

i checked several [un]certified modules...

[2011-01-10 17:57:03,429][bs_assets] INFO:i18n:module hr: loading translation file (fr) for language fr_FR
[2011-01-10 17:57:03,430][bs_assets] INFO:i18n:loading /home/openerp/addons/hr/i18n/fr.po
[2011-01-10 17:57:03,443][bs_assets] ERROR:db.cursor:Programming error: column "xml_id" of relation "ir_translation" does not exist
LINE 1: insert into "ir_translation" (id,"lang","src","xml_id","name...
                                                      ^
, in query insert into "ir_translation" (id,"lang","src","xml_id","name","type","value","module","res_id") values (10469,%s,%s,%s,%s,%s,%s,%s,%s)
[2011-01-10 17:57:03,444][bs_assets] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 60, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 885, in load_modules
    processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 774, in load_module_graph
    modobj.update_translations(cr, 1, [mid], None)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/module.py", line 514, in update_translations
    tools.trans_load(cr, f, lang, verbose=False, context=context2)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/translate.py", line 841, in trans_load
    r = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/translate.py", line 928, in trans_load_data
    trans_obj.create(cr, uid, dic)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_translation.py", line 184, in create
    ids = super(ir_translation, self).create(cursor, user, vals, context=context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 3601, in create
    cr.execute('insert into "'+self._table+'" (id'+upd0+") values ("+str(id_new)+upd1+')', tuple(upd2))
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
ProgrammingError: column "xml_id" of relation "ir_translation" does not exist
LINE 1: insert into "ir_translation" (id,"lang","src","xml_id","name...
                                                      ^





References