← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 675802] Re: Constraint error during installation

 

This does not happen normally unless its a problem at your end(2 modules having same certificate).
Thanks.

** Changed in: openobject-server
       Status: Incomplete => Invalid

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

Status in OpenObject Server: Invalid

Bug description:
During installation of 6.0rc1 (15.11.10) I get this error repeatedly:

[2010-11-15 23:47:18,199][openerp] INFO:init:module base: loading objects
[2010-11-15 23:47:18,217][openerp] INFO:init:module base: registering objects
[2010-11-15 23:47:18,488][openerp] INFO:init:module base: creating or updating database tables
[2010-11-15 23:47:34,314][openerp] ERROR:db.cursor:bad query: ALTER TABLE "ir_module_module" ADD CONSTRAINT "ir_module_module_certificate_uniq" unique (certificate)
Traceback (most recent call last):
  File "/home/tbri/iterate/trunk6/openerp/virtual/lib/python2.7/site-packages/openerp-server/sql_db.py", line 122, in execute
    res = self._obj.execute(query, params)
IntegrityError: could not create unique index "ir_module_module_certificate_uniq"
DETAIL:  Table contains duplicated values.

[2010-11-15 23:47:34,315][openerp] WARNING:orm.schema:Table 'ir_module_module': unable to add 'unique (certificate)' constraint !
 If you want to have it, you should update the records and execute manually:
ALTER TABLE "ir_module_module" ADD CONSTRAINT "ir_module_module_certificate_uniq" unique (certificate)
[2010-11-15 23:47:45,268][openerp] INFO:data:storing computed values of fields.function 'global'


I do not know if it has any consequences, but it seems worth investigating.





References