[6.1.trunk] Error when creating new database ir_module_module_certificate_uniq

Bug #923793 reported by Yann Papouin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP's Framework R&D

Bug Description

Server's log displays:

[2012-01-30 15:31:38,392][?] INFO:werkzeug:80.14.194.230 - - [30/Jan/2012 15:31:38] "POST /web/database/progress HTTP/1.1" 200 -
[2012-01-30 15:31:38,765][lun_30_01_2012] 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/decindus/private/tools/openerp-trunk/server/openerp/sql_db.py", line 214, in execute
    res = self._obj.execute(query, params)
IntegrityError: could not create unique index "ir_module_module_certificate_uniq"
DÉTAIL : Table contains duplicated values.

[2012-01-30 15:31:38,766][lun_30_01_2012] 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)

affects: openobject-addons → openobject-server
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Yann Papouin ,

I have checked this issue with trunk
and I think this problem occurs due to the
uncertified module in your addons branch.
So would you please check it again.

Thanks and waiting for reply!

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
Yann Papouin (yann-papouin) wrote :

I will check this, it would be nice if the error message could report both module names

Amit Parik (amit-parik)
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Wishlist
status: Incomplete → Confirmed
Revision history for this message
D. Hille (dhille) wrote :

While initializing the db modules with certificates == str'' manage to get loaded in the db

here is a patch to revno 4228 in branch 6.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.